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 » 2x10 CExtToolControlBar disposition Collapse All
Subject Author Date
Emmanuel Verguet Sep 15, 2006 - 9:10 AM

Hi,

First question, I have a floating toolbar with 20 buttons, but I want it to be on 2 rows and 10 lines (fixed). For a CToolBar I used TBBS_WRAPPED, but which is the equivalent for your control ?

Second question, do you have a method in CExtToolControlBar to draw an arrow on a button (I want to display an another toolbar from the first toolbar, where the user press a button).

Thanks.

Technical Support Sep 18, 2006 - 1:40 AM

We follow the same approach. The CExtToolControlBar::GetButtonsCount() method returns the number of buttons in the toolbar. The CExtToolControlBar::GetButton() method returns a pointer to the CExtBarButton object, which is the toolbar button. And pExtBarButton->SetWrap( CExtBarButton::__EVT_FLOAT, true ) sets the wrap flag for a particular button when the toolbar is floating.

Emmanuel Verguet Sep 18, 2006 - 4:11 AM

Thanks. In fact m_bPaletteMode = true was missing too ;-)