Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bring to Front and Send to Back problem
#4
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
Reply


Messages In This Thread
RE: Bring to Front and Send to Back problem - by SorenJensen - 10-10-2019, 05:12 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)