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 » Add Tooltip to the items in the ProfUIS Tab Control Collapse All
Subject Author Date
ven rag Jun 16, 2006 - 8:29 AM

Iam using CExtTabbedToolControlBarOneNote Tab control.

I have placed bitmaps in the Tab Control.
for eg:
====

In one Tab I have Bitmap for Cut,Copy,pastes.In the next Tab I have option for Open,SaveAs and Close.

When I move the Mouse over the Cut image I have to get "Cut" Tooltip.
How to add tooltip to it.

Thank u

Technical Support Jun 17, 2006 - 11:37 AM

Please specify tooltip and status tip text for each command in the toolbar resources (the Promt field in the resource editor).

You can use the following code to load you toolbar into a tab page

CExtToolControlBar * pToolBar = _wndTabbedBar.BarInsert( strToolBarName );
ASSERT_VALID( pToolBar );
pToolBar->LoadToolBar( ... )

ven rag Jun 20, 2006 - 12:10 AM

I have used the ProfUIS Sample TabbedBars .
In that we have One Note Tabbed Bar.

When u click that u have Common Controls in the First Tab,next tab I have Tools etc..
I the Common controls tab we have Open,SaveAs,About etc..
This common controls are displayed using the Bitmap IDB_BITMAP_TOOLS_COMMON_CONTROLS
I want to know How to Add a "ToolTip" for each controls in the Common Control Tab.
For example:
I have Open,SaveAs,About etc ..
When I click Open I get the Open Dialog.When I Move Cursor Over the Open Image in the Bitmap placed in the Tabbed Bar, I need a tooltip.
How to get it.
The First Tab in the One Note TabbedBars is Common Control.It starts with
static UINT g_nGroupCC_FirstCmdID = 7000;
Open -->7000
SaveAs-->7001
AboutBox-->7002
"how to set the Tool tip".

Thank u

Technical Support Jun 20, 2006 - 8:10 AM

In the TabbedBars sample we used some arbitrary command identifiers and bitmaps loaded from bitmap resources. When creating your real application, you need to create a toolbar resource, specify all the parameters for buttons like image, tooltip and status text. Then you need to insert your toolbar as we told you in our previous post.

CExtToolControlBar * pToolBar = _wndTabbedBar.BarInsert( strToolBarName );
ASSERT_VALID( pToolBar );
pToolBar->LoadToolBar( ... ) 
The second way is to register command identifiers in the command manager and manually specify the tooltip text in the corresponding CExtCmdItem object.
LPCTSTR strCommandProfileName =

g_CmdManager->ProfileNameFromWnd( hWnd );

ASSERT( strCommandProfileName != NULL && _tcslen(strCommandProfileName) > 0 ); 

 

CExtCmdItem * pCmdItem =

            g_CmdManager->CmdAllocPtr(

                        strCommandProfileName,

                        nCmdID

                        );

ASSERT( pCmdItem != NULL );

pCmdItem->m_sTipTool = _T("...");