Update an object when clicking on another object on an interactive preview
While on the preview of an interactive report on FastReports 4, I wish to act on an checkbox object other than the one being clicked and have that change show on the preview as well.
//---------------------------------------------------------------------------------------
procedure CheckBox1OnPreviewClick(Sender: TfrxView;
Button: TMouseButton;
Shift: Integer;
var Modified: Boolean);
begin
TfrxCheckBoxView( Sender ).Checked := NOT TfrxCheckBoxView( Sender ).Checked ; Modified := True ; IF TfrxCheckBoxView( Sender ).Checked Then CheckBox2.Checked := False ;
end;
With this code, the state of CheckBox1 does change immediately on the preview. Not so checkbox2.
Any ideas how to change checkbox2 when checkbox1 is clicked on a FastRepor4 interactive report?
Comments
See a small demo project in the attach
Is your sample compatible with FastReports Ver 4?
I don't think I have property PreviewPages on TfrxReport class.
Yes. It works with FR 4