Customized tooltip description |
Post Reply |
Author | |
JamesP
Groupie Joined: 07 January 2009 Location: United Kingdom Status: Offline Points: 73 |
Post Options
Thanks(0)
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Why you can't edit resources ?
You can find control and call its pControl->SetDescription method
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
JamesP
Groupie Joined: 07 January 2009 Location: United Kingdom Status: Offline Points: 73 |
Post Options
Thanks(0)
|
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!)
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |