Print Page | Close Window

How to set the tooltip context in CXTPToolbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5570
Printed Date: 04 March 2025 at 5:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set the tooltip context in CXTPToolbar
Posted By: mgampi
Subject: How to set the tooltip context in CXTPToolbar
Date 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



Replies:
Posted By: mgampi
Date 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!
 


Posted By: mgampi
Date Posted: 23 November 2006 at 8:19am
Hi;
 
is really no one out there who hit the same problem and solved it?


Posted By: Oleg
Date 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


Posted By: mgampi
Date 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


Posted By: Oleg
Date 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


Posted By: mgampi
Date 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


Posted By: Oleg
Date 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


Posted By: mgampi
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net