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 » dynamic resizable button on CExtToolControlBar Collapse All
Subject Author Date
Istvan Horgos Jun 23, 2005 - 6:16 PM

Hello,


I placed an CExtToolControlBar on the top of my dialog window with variable number of buttons on the left side (a,b,c,..) and one button on the right side (z). I would like to place one automatic resizable button (x) between this two groups of buttons. Dialog toolbar is allways resized on dialog size and this is good so. For example:


| a b c d e | <- x is dynamic -> | z |


how can I do this?


Thanks!


Istvan

Technical Support Jun 24, 2005 - 7:17 AM

Please use your own CExtToolControlBar-derived class and override the CExtToolControlBar::_RecalcPositionsImpl() internal virtual method. Your method should invoke the parent method and then recompute location of last two buttons by calling the CExtBarButton::SetRect() method.

Kirby Zhang Jul 10, 2005 - 6:59 PM

Can you tell me how you got your "button z" to show on the right side? Is it automaticly right-justified?

Technical Support Jul 11, 2005 - 10:29 AM

We guess you mean the chevron button which is the last button in a toolbar. This button is an instance of the CExtBarContentExpandButton class and its location is adjusted by the CExtToolControlBar window automatically