Print Page | Close Window

Customized tooltip description

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13103
Printed Date: 04 December 2024 at 9:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Customized tooltip description
Posted By: JamesP
Subject: Customized tooltip description
Date Posted: 07 January 2009 at 10:09am

Does anyone know if there is a way of customizing the title and description of a tooltip, beyond editing the resources.

We would lilke the tooltip description to have multiple lines and dffierent to that which appears in the Statusbar.
 
Thanks.



Replies:
Posted By: Oleg
Date Posted: 07 January 2009 at 2:44pm
Hi,
Why you can't edit resources ?
 
You can find control and call its pControl->SetDescription method


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


Posted By: JamesP
Date Posted: 08 January 2009 at 6:40am
I can't edit the resources because I want the Statusbar to show a different description to that displayed in the tooltip.
 
Initially I tried:
pCommandBars->FindControl(xtpControlButton,ID_FILE_NEW,...)pControl->SetTooltip(...)
pControl->SetDescription(...)
 
This only changed the toolbar item and not the menu item.
 
I found that you can call a function:
pCommandBars->EnableActions()
 
and get the control with the call:
pCommandBars->GetActions()->FindAction(ID_FILE_NEW)
 
setting the Tooltip and description now effects both menu and toolbar items, but I still have the problem that the status bar reflects the change to the description, showing new line characters as squares (yuk!)
 
 



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