![]() |
How to set the tooltip context in CXTPToolbar |
Post Reply ![]() |
Author | |
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Hi;
In my first post I forgot to mention that I mean the tooltip appearance and NOT the toolbar appearance itself!
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Hi;
is really no one out there who hit the same problem and solved it?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, Right, need to determine site - It is the window that will receive all messages.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg;
Once again: What kind of messages are received from command bars and what can they be used for?
Martin
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Hello Oleg; Thank you, I always searched for window messages. I didn' look at the variables section of the command bars class.
![]() Martin
|
|
![]() |
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 |