Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Tooltips in CXTPStatusBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tooltips in CXTPStatusBar

 Post Reply Post Reply
Author
Message
grudy View Drop Down
Groupie
Groupie


Joined: 02 November 2004
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote grudy Quote  Post ReplyReply Direct Link To This Post Topic: Tooltips in CXTPStatusBar
    Posted: 08 December 2006 at 3:39pm
Seems like a simple item, but how do I set the text and display a tooltip when I hover over the panes of a CXTPStatusBar control?  Looks like I can use "GetPane(x)->SetTooltip( )", but I don't ever see the tooltip - what do I have to call to enable it to popup?
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2007 at 5:05am
Did you get a reply or find a solution?
Simon HB9DRV
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 13 February 2007 at 7:29am
Hm. strange.
 
I opened Customthemes sample, added
m_wndStatusBar.GetPane(1)->SetTooltip("hi");
 
and see tooltip under "CAP" item...
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2007 at 8:49am
Originally posted by oleg oleg wrote:

Hm. strange.
 
I opened Customthemes sample, added
m_wndStatusBar.GetPane(1)->SetTooltip("hi");
 
and see tooltip under "CAP" item...
 
How about adding a tooltip to the icon in the StatusBar sample?
Simon HB9DRV
Back to Top
grudy View Drop Down
Groupie
Groupie


Joined: 02 November 2004
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote grudy Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2007 at 9:08am
The "adding tooltip to the icon" issue is closer to what we have. I too can see tooltips if I just use SetIndicators to create the items, but we are placing buttons onto the status bar with code that looks like the following...
 
if ( wndButtonOut.Create( "", WS_CHILD, CRect(0,0,0,0), this, IDTR_OutputSetButton ) )
 {
  wndButtonOut.SetFontEx( GetFont() );
  AddIndicator( IDTR_OutputSetButton, 1 );
  int nIndex = CommandToIndex( IDTR_OutputSetButton );
  if ( nIndex != -1 )
  {
   SetPaneWidth( nIndex, 60 );
   wndButtonOut.SetXButtonStyle( BS_XT_XPFLAT | BS_XT_HILITEPRESSED, TRUE );
   AddControl( &wndButtonOut, IDTR_OutputSetButton, FALSE );
  }
 }
 
 
It works fine to create the buttons, and everything works, except that the tooltips don't show, just like the tooltips for the icon in StatusBar.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 13 February 2007 at 9:16am
Don't use CXTPStatusBarIconPane/CXTPStatusBarLogoPane they are quite obsolete.
 
Here code you can use instead:
 
 int iIndex = m_wndStatusBar.GetPaneCount();
 CXTPStatusBarPane* pPane = m_wndStatusBar.AddIndicator(ID_INDICATOR_ICON, iIndex);
 m_wndStatusBar.GetImageManager()->SetIcon(IDR_STATUS_ICON, IDR_STATUS_ICON);
 pPane->SetIconIndex(IDR_STATUS_ICON);
 pPane->SetText(NULL);
 pPane->BestFit();
 pPane->SetTooltip(_T("Icon"));
 
 
Need to update sample :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2007 at 9:18am
Originally posted by oleg oleg wrote:

Need to update sample :(
Thanks
Simon HB9DRV
Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2007 at 10:39am

We are placing a CAnimateCtrl on a CXTPStatusBar with a style of ACS_TRANSPARENT using the AddControl function.  Is there a way to do this so the control will have theme support?  Currently the ACS_TRANSPARENT color shows up as gray instead of the theme color.

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.047 seconds.