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 General Discussion » Problem with SubclassAllControlsDynamically Collapse All
Subject Author Date
Jonas Gauffin Aug 8, 2006 - 5:08 AM

I’m using skins and I am running the SubclassAllControlsDynamically method in my InitDialog (just before "return TRUE;").

All controls are not being drawn correctly:
http://www.progga.se/other/skin_withmethod.JPG

This is how it looks without the method:
http://www.progga.se/other/skin_womethod.JPG

Got any suggestions?

Technical Support Aug 8, 2006 - 5:36 AM

You are using group boxes and this means the proper tab order for controls on the dialog template is essential. This is because the Prof-UIS group box has a non-transparent background. 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.

Jonas Gauffin Aug 8, 2006 - 5:45 AM

Thanks for the quick reply. Works like a charm!