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

Leave a Comment