Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Controls go behind the group box Collapse All
Subject Author Date
Chris Anderson Apr 20, 2007 - 3:58 PM

Hi,
I have a form with Control Group Box, Button, Radio Buton, etc. These are created dynamically. The Group Box overlaps the other controls. When I click within the group box area, then the control will be displayed. The problem might be due to the order of creation or the tab order set. Is there a way to send the group box to the back always?

Thanks

Technical Support Apr 22, 2007 - 9:07 AM

You should create a group boxe before you create any other controls in it. Alternatively, you can move the group boxe to the bottom Z-order using the SetWindowPos() API with HWND_BOTTOM parameter or CWnd::SetWindowPos() method with the &wndBottom parameter.

Suhai Gyorgy Apr 22, 2007 - 6:06 AM

From Support’s FAQ:
If you put controls on a dialog template, make sure they are assigned the proper tab order. Since the Prof-UIS group box has a non-transparent background, the tab order is essential. Windows paints controls on the dialog step by step starting from the control with the highest tab order number to the control with the lowest number. So, ensure your group box is assigned the highest tab order number.

In your case, it means you should create the Group box as the last control.