10-13-2019, 08:15 PM
(This post was last modified: 10-13-2019, 08:16 PM by SorenJensen.
Edit Reason: I forgot the question.
)
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
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

