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 » Tooltip disappears with combo in toolbar Collapse All
Subject Author Date
Michael Clapp Mar 21, 2007 - 12:21 PM

My app is using a CExtTabbedToolControlBar . In one of the tabbed toolbars I am inserting both a static text box, and a combo box and am explicly setting the tooltip text for both. The tooltip appears as expected in the static.

When the tabbedcontrol bar is shown in a vertical orientation, the combo tip appears (however the combo box is replaced by square button). When the tabbedcontrol bar is docked horizontal or floating, the combo tip does not appear. I’ve also tried this with an owner draw combo..

My code to set the tooltip is as follows:

pCmdItem = g_CmdManager->CmdGetPtr(theApp.m_pszProfileName,IDC_REFERENCE_LAYER);
if (!pCmdItem)
pCmdItem = g_CmdManager->CmdAllocPtr( theApp.m_pszProfileName,IDC_REFERENCE_LAYER);
pCmdItem->m_sTipTool = _T("my tooltip");

Technical Support Mar 22, 2007 - 12:37 PM

You can assign tooltip text for a CExtComboBox window using CExtComboBoxBase::SetTooltipText(), because this class has its own implementation of tooltip. To make the combo box visible, use CExtCmdItem::StateSetCtrlVisibleVertically(). You should configure its parent button in a way that the combo box is visible when the toolbar is docked vertically.