Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bring to Front and Send to Back problem
#7
Hi Alexandre,

Yes, IWRegion.Invalidate makes AsyncClick work:

procedure TIWForm1.IWButton1AsyncClick(Sender: TObject);
begin
  IWRegion1.ZIndex := 1000;
  IWRegion1.Invalidate;
  IWRegion2.ZIndex := 2000;
  IWRegion2.Invalidate;
end;

procedure TIWForm1.IWButton2AsyncClick(Sender: TObject);
begin
  IWRegion1.ZIndex := 2000;
  IWRegion1.Invalidate;
  IWRegion2.ZIndex := 1000;
  IWRegion2.Invalidate;

end;

Works better than with onclick. It's a lot faster.

NB! You say: It's already fixed in our code base and it will be available in the next release.
Does it mean the OnAsyncClick will work without the Invalidate method from the next release ?

Regards
Soren
Reply


Messages In This Thread
RE: Bring to Front and Send to Back problem - by SorenJensen - 10-13-2019, 08:15 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)