TG
2011-01-11 03:25:09 UTC
I have been struggling with this for a while and have not found a
reliable solution. Here is the idea;
1. Mainform From1 is created when app starts
2. Form1 can become fullscreen (ie set border to none and maximize).
3. From2 has various buttons (like a toolbar) that needs to always be
on top of Form1 but not other apps.
4. I want Form2 to always stay on top of Form1.
After trying various StayOnTop etc code and much trial and error I
cannot get it to work as expected.
Bugs;
1. Form2 sometimes (no logic to the steps) goes behind Form1 so the
user has no buttons.
2. Form2 sometimes goes in front of all other Windows apps. So you
click to Windows Explorer and Form2 is in front. Clicking back and
forth a few times resolves the Z-Order.
Does anyone really know how to lock a form to another form in the
Delphi app alone? This is not for a system-wide stay on top form,
just for the single app. When form2 is visible it always must be
higher in the Z-Order than form1.
Thanks for any help. This is driving me mad.
TG
reliable solution. Here is the idea;
1. Mainform From1 is created when app starts
2. Form1 can become fullscreen (ie set border to none and maximize).
3. From2 has various buttons (like a toolbar) that needs to always be
on top of Form1 but not other apps.
4. I want Form2 to always stay on top of Form1.
After trying various StayOnTop etc code and much trial and error I
cannot get it to work as expected.
Bugs;
1. Form2 sometimes (no logic to the steps) goes behind Form1 so the
user has no buttons.
2. Form2 sometimes goes in front of all other Windows apps. So you
click to Windows Explorer and Form2 is in front. Clicking back and
forth a few times resolves the Z-Order.
Does anyone really know how to lock a form to another form in the
Delphi app alone? This is not for a system-wide stay on top form,
just for the single app. When form2 is visible it always must be
higher in the Z-Order than form1.
Thanks for any help. This is driving me mad.
TG