Print Page | Close Window

Toolbar Tooltip

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=8358
Printed Date: 16 November 2024 at 5:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar Tooltip
Posted By: Makarand
Subject: Toolbar Tooltip
Date Posted: 09 October 2007 at 7:39am
Hi Oleg,

I have one toolbar which is created at runtime.
I used following code to design the toolbar.

m_wndAgentToolBar=(CCmcCustomToolBar*)pCommandBars->Add(_T(g_cmcagent),xtpBarTop,RUNTIME_CLASS(CCmcCustomToolBar));
m_wndAgentToolBar->SetContextMenuPresent(FALSE);
m_wndAgentToolBar->ShowExpandButton(FALSE);
m_wndAgentToolBar->SetButtons(ButtonCmdID, nButtonCount);
//Setting Icon
if(!XTPImageManager()->SetIcons(imlIcons,ButtonCmdID,nButtonCount,TBImgSizeHI))
       {
           TRACE0("Failed to set agent toolbar icon\n");
           bRtn = FALSE;
           goto lCleanup;
       }

How can I set the tooltip to the buttons?



Replies:
Posted By: Oleg
Date Posted: 09 October 2007 at 2:51pm
HI,
 
try this
m_wndAgentToolBar->GetControl(i)->SetTooltip("new Tip");

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net