Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to set the tooltip context in CXTPToolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to set the tooltip context in CXTPToolbar

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: How to set the tooltip context in CXTPToolbar
    Posted: 21 November 2006 at 8:50am
Hi;
 
My application sets the tooltip context of the commandbars object to xtpToolTipOffice2007.
Additionally I created a CXTPToolbar as a child of a docking pane child window.
The main toolbar uses the Office style but the manually created toolbar of the docking pane window does not.
 
So my question is, how to enable Office style toolbars in this case?
I looked at the tooltipcontext sample but I'm not shure whether this effort is really necessary since CXTPToolbar is derived from CXTPCommandBar...
 
Any help is very welcome!
 
Martin
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2006 at 8:53am
Hi;
 
In my first post I forgot to mention that I mean the tooltip appearance and NOT the toolbar appearance itself!
 
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 23 November 2006 at 8:19am
Hi;
 
is really no one out there who hit the same problem and solved it?
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: 24 November 2006 at 4:11am

you can create some CommandBars object, set its tooltipcontext, attach this commandbars to ToolBar:

create:
m_pCommandBars = (CXTPCommandBars*)CXTPCommandBars::CreateObject();
 
destroy:
m_pCommandBars->InternalRelease();
 
attach _before Create_:
m_wndToolBar.SetCommandBars(m_pCommandBars);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2006 at 3:07am
Hi Oleg;
 
Many thanks for your response. The solution workks, but I had to call also the SetSite() function of the CommandBars object.
 
This leads to another question:
 
What is the site object used for? I tried to find any documentation about this issue, but of no avail.
 
Kind regards
 
Martin
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: 27 November 2006 at 5:26am

Hello,

Right, need to determine site - It is the window that will receive all messages.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2006 at 6:06am
Hi Oleg;
 
Once again: What kind of messages are received from command bars and what can they be used for?
 
Martin
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: 27 November 2006 at 11:54am
Hi,
 
WM_XTP_TOOLBARVISIBLECHANGED, WM_XTP_CONTROLRBUTTONUP, WM_XTP_COMMANDBARKEYDOWN, WM_XTP_INITCOMMANDSPOPUP, WM_XTP_TOOLBARCONTEXTMENU, WM_XTP_UNINITCOMMANDSPOPUP, WM_XTP_BEFORECREATECONTROL, WM_XTP_AFTERCREATECONTROL, etc.
 
They all in help file.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2006 at 2:44am

Hello Oleg;

Thank you, I always searched for window messages. I didn' look at the variables section of the command bars class.
 
Martin
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.