Link to home
Start Free TrialLog in
Avatar of dmetzler
dmetzler

asked on

Button overlay on group box?

I have a dialog where I want to overlay a pushbutton across the 3D frame of a group box.  However, sometimes the group box paints across the pushbutton.  Is there any way to change the z-order of child controls in a dialog?
Avatar of mandhjo
mandhjo
Flag of United States of America image

Try this:

Set the tab order such that the group box is the very last.  Next, remove the group box from being a tab stop (setting on the properties dialog).  Just a guess.
Avatar of dmetzler
dmetzler

ASKER

Yes - I have tried that.  It did not work.

Don
I supposed you could get a pointer to the group box and call the SetWindowPos function to move it to the bottom of the z-order (see the help for SetWindowPos).
Tried that too, and tried moving the button to the top of the Z-order.  Also tried changing the clip windows and clip siblings flag of the dialog.  Neither of those worked either.

Don
What sequence of events causes the group box to overlay the button?
Sounds like you've tried everything...did you try putting the group box first in the tab order?
Yes - I did that too.  Seems like the group box may be the problem.
ASKER CERTIFIED SOLUTION
Avatar of NickRepin
NickRepin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Not the answer I had hoped for, but thanks for pointing me in the right direction.