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 » No continuos tooltips on CExtButton in CExtToolControlBar Collapse All
Subject Author Date
Filippo Murroni Aug 5, 2008 - 11:31 AM

Hi,


I have a serious problem with tooltips for common controls, created dynamic at run time, insiede an object derived from the CExtToolControlBar class.


Using the property "SetTooltipText", I can see the correct tooltips, for e ctrl like CExtButton , inside objects based on statusbar ed ccontrolbar, but not on toolbar !!!


In a toolbar I can see the tooltip only if the mouse pointer is stopped in most exetern site of the box !!! If the pointer is inside the box a can’t see any tooltips !!!


Can you help me? Please...


Thanks a lot for the help!

Filippo Murroni Aug 11, 2008 - 2:25 AM

Thanks a lot for your help...


I know that in toolbar I can use the CExtBarButton, infact I use also these objects in my App.


But we need to insert CExtButton in toolbar, dialog and status to be compatible with components of the old versions!!!


Can we help me? please...

Technical Support Aug 18, 2008 - 4:36 AM

Thank you for your report. This is fixed. Please contact us via email so we can provide you with the update.

Filippo Murroni Sep 4, 2008 - 1:27 AM

I have sent 2 emails to the support (support@prof-uis.com), but I don’t have received any reply with the update.... Sorry, but I need it...

Technical Support Sep 4, 2008 - 8:18 AM

We are sorry but we did not receive your emails. Please send it again. Our alternative address is profuis at gmail.com.

Technical Support Aug 9, 2008 - 12:14 PM

What is the reason of using CExtButton inside the toolbar buttons? The ordinary toolbar CExtBarButton button should fit all your needs. Moreover it is better for performance. When you are using CExtBarButton buttons, the CExtToolControlBar control does not use any windows/controls inside. It paints the buttons directly on its surface. Each button is an instance of the CExtBarButton class. The buttons generally know only their command identifiers. The images, tooltips and other text are stored as command descriptions in the command manager and as a result, the images you can see on command buttons in toolbars are automatically displayed in the same command items in menus because Prof-UIS menus are also based on the command manager. You can get a CExtCmdItem command description object by its command identifier using CExtCmdManager::CmdGetPtr().

Here is how you can set the tooltip text for the toolbar button with nButtonIndex index.

CExtToolControlBar & wndToolBar = . . .
INT nButtonIndex = . . .
CExtBarButton * pTBB = wndToolBar.GetButton( nButtonIndex );
    if( pTBB == NULL )
        return . . . // if nButtonIndex specifies invalid index
    ASSERT_VALID( pTBB );
    if( pTBB->IsSeparator() )
        return . . . // if toolbar button at nButtonIndex position is separator
UINT nCommandID = pTBB->GetCmdID( false );
    if( ! nCommandID::IsCommand( nCommandID ) )
        return . . . // if some specific toolbar button
CExtCmdItem * pCmdItem = g_CmdManager->CmdGetPtr( g_CmdManager->ProfileNameFromWnd( wndToolBar.GetSafeHwnd() ), nCommandID );
    if( pCmdItem == NULL )
        return . . . // if command is not registered in the command manager (normally this should not occur)
    pCmdItem->m_sTipTool = _T("This is the tooltip text");