![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
jgold
Moderator Group
Moderator Joined: December 29 2003 Location: United States Status: Offline Points: 48 |
Post Options
Thanks(0)
Quote Reply
Topic: Z-order of controls on formPosted: October 23 2017 at 10:13am |
|
I haven't been able to find any documentation on the Z-Order or Zorder of controls on the form. I've been trying to use frames to cover controls that are not applicable. The problem has been that the controls were showing through the frame like it was opaque.
I discovered that the lower the control is on the control hierarchy the higher it is on the Z-order. That is to say, if the control is lower on the hierarchy it covers up any controls higher up. So, if you want a frame to cover other controls you have to have the frame lower on the control hierarchy. This is just an FYI in case anyone is searching on it in the future. |
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: October 23 2017 at 7:09pm |
|
Exactly correct. The zorder is based on the order the controls are created, and they are created in the order shown in the project tree.
|
|
![]() |
|
GeoffG
Groupie
Joined: August 02 2005 Location: Australia Status: Offline Points: 43 |
Post Options
Thanks(0)
Quote Reply
Posted: October 24 2017 at 4:52pm |
|
Why not HIDE the controls instead of covering them? - much neater
|
|
![]() |
|
jgold
Moderator Group
Moderator Joined: December 29 2003 Location: United States Status: Offline Points: 48 |
Post Options
Thanks(0)
Quote Reply
Posted: October 24 2017 at 7:34pm |
|
I had about 8 separate controls that needed to be hidden. The control that's hiding them has a message stating that they don't apply to the current options so I always have to hide and unhide it. It was easier to just do that than to also hide/unhide the other 8.
Now that you mention it though, I forgot to check to see if you could still tab into the hidden controls. I think you can so I'm probably going to have to disable them anyway. Unless when you disable a frame it disables all the controls an a frame. I'll have to check that. |
|
![]() |
|
GeoffG
Groupie
Joined: August 02 2005 Location: Australia Status: Offline Points: 43 |
Post Options
Thanks(0)
Quote Reply
Posted: October 25 2017 at 5:40pm |
|
Yes, if you disable or hide a frame it disables/hides the controls in it.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |