10-10-2019, 05:12 AM
Hi all,
Just to follow up on this issue.Kudzu was (of course) right and Zindex do the trick.
I changed the buttons events to the following and made IWButton1 and -4 point to IWButton1OnClick, and IWButton2 and -3 point to the IWButton2OnClick event like this:
procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
IWRegion1.ZIndex := 1000;
IWRegion2.ZIndex := 2000;
end;
procedure TIWForm1.IWButton2Click(Sender: TObject);
begin
IWRegion1.ZIndex := 2000;
IWRegion2.ZIndex := 1000;
end;
And I did set the property zindex to 1000 on the IWRegion1, as I want it be on top when the program starts, and set the IWRegion2 zindex property to 2000.
NOTE THOUGH: It does not function with the ASyncOnClick event. Only the OnClick event !!
Regards
Soren
Just to follow up on this issue.Kudzu was (of course) right and Zindex do the trick.
I changed the buttons events to the following and made IWButton1 and -4 point to IWButton1OnClick, and IWButton2 and -3 point to the IWButton2OnClick event like this:
procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
IWRegion1.ZIndex := 1000;
IWRegion2.ZIndex := 2000;
end;
procedure TIWForm1.IWButton2Click(Sender: TObject);
begin
IWRegion1.ZIndex := 2000;
IWRegion2.ZIndex := 1000;
end;
And I did set the property zindex to 1000 on the IWRegion1, as I want it be on top when the program starts, and set the IWRegion2 zindex property to 2000.
NOTE THOUGH: It does not function with the ASyncOnClick event. Only the OnClick event !!
Regards
Soren