Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Customized tooltip description
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Customized tooltip description

 Post Reply Post Reply
Author
Message
JamesP View Drop Down
Groupie
Groupie
Avatar

Joined: 07 January 2009
Location: United Kingdom
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesP Quote  Post ReplyReply Direct Link To This Post Topic: Customized tooltip description
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
JamesP View Drop Down
Groupie
Groupie
Avatar

Joined: 07 January 2009
Location: United Kingdom
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesP Quote  Post ReplyReply Direct Link To This Post 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!)
 
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.