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 » Combo box in toolbar Collapse All
Subject Author Date
Mike Van Duzee Feb 13, 2006 - 2:37 PM

I have a combo box in one of my toolbars and it works fine until I dock it on either side of my application. The combo box turns into a button, which I would expect, but the command handler for that button is never called. Am I doing something wrong? Should this work?

Thanks

Technical Support Feb 14, 2006 - 6:25 AM

The command handler should be invoked if you correctly handle the button command. Please note that you can use a flag indicating whether the window associated with the button on the vertically docked toolbar should be visible. You can do this with CExtBarButton::SetCtrlVisibleVertically():

pTBB->SetCtrlVisibleVertically( true )
Please take a look at the ProfStudio sample and find two toolbars Standard and Web. In the first toolbar the Find edit box is visible when the toolbar is docked vertically. In the second toolbar the URL combo box is not visible when it is docked vertically but the command handler works OK.