Professional UI Solutions
Site Map   /  Register


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 » How do I insert spacing between controls in toolbars Collapse All
Subject Author Date
Alastair Watts Feb 16, 2011 - 4:47 AM

I’ve got a CExtToolControlBar containing labels, edit-boxes & check-boxes.  How do I insert space inbetween some of these controls to improve the look?

Alastair Watts Feb 17, 2011 - 10:43 AM



Technical Support Feb 16, 2011 - 1:10 PM

This is not a good solution because each CExtLabel object eats one HWND handle. You can insert CExtBarLabelButton toolbar buttons instead. Or you can override the CExtToolControlBar::OnCreateBarCommandBtn() virtual method and instantiate your own toolbar button objects which implement the CExtBarButton::CalculateLayout() virtual method for reserving additional space.

Alastair Watts Feb 16, 2011 - 9:19 AM

Never mind, I’ve created a number of blank CExtLabel objects ... unless theres a better way?