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 » Is it possible to accurately postion an icon on a toolbar Collapse All
Subject Author Date
delu qiu May 8, 2006 - 12:03 PM

Hi,

How to accurately postion an icon on a toolbar,
I want to place a icon align right of the toolbar, and place other icons align left.

Thanks

Technical Support May 10, 2006 - 4:21 AM

Simply override the CExtToolControlBar::_RecalcPositions() virtual method. Your method should invoke the parent method and then shift some buttons to the right. Please note that, if there is no room to make all the toolbar buttons visible then some of them at the right side get hidden and available only from the popup menu displayed when you click the chevron button. The last toolbar button is the chevron button, so do not shift to the right. The CExtToolControlBar::GetButtonsCount(), CExtToolControlBar::GetButton(), CExtBarButton::Rect(), and CExtBarButton::SetRect() methods allows you handy for what you need.

delu qiu May 12, 2006 - 9:59 AM

wow, It’s works, thank you.