Print Page | Close Window

Tooltips in dynamic toolbars

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=797
Printed Date: 15 May 2024 at 8:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tooltips in dynamic toolbars
Posted By: yoavo
Subject: Tooltips in dynamic toolbars
Date Posted: 30 May 2004 at 11:17pm

Hi,

I have created a dynamic toolbar (not loaded from resources), using SetButtons & SetIcons methods (of CXTPToolbar and ImageManager). My question is how do I add tooltips for my commands (assuming I have the text for each command)

Before using the Xtreme package, I did it like this:

BOOL CMainFrame::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)

{

LPNMHDR nmhdr;

nmhdr = (LPNMHDR)lParam;

int aCommandId = nmhdr->idFrom;

switch (nmhdr->code)

{

case TTN_NEEDTEXT:

... // here I set the relevant tooltip

}

But in Xtreme it seems that I do not get the OnNotify event of the CMainFrame.

Can someone please explain ?

 

 

 




Replies:
Posted By: Oleg
Date Posted: 01 June 2004 at 3:54am
pToolBar->GetControl(i)->SetTooltip(..)

-------------
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