Print Page | Close Window

XTP_IDS_CLR_AUTOMATIC

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=8961
Printed Date: 18 May 2024 at 3:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTP_IDS_CLR_AUTOMATIC
Posted By: Ark42
Subject: XTP_IDS_CLR_AUTOMATIC
Date Posted: 29 November 2007 at 10:07pm

In 11.2.1, XTP_IDS_CLR_AUTOMATIC and XTP_IDS_CLR_MORE on my command bar no longer work. They are never enabled, and in fact, the function set with ON_UPDATE_COMMAND_UI(XTP_IDS_CLR_AUTOMATIC, OnUpdateAutomatic) is never even called at all. It used to work with 11.1.3 just fine. The text is also now left aligned instead of centered too.




Replies:
Posted By: Oleg
Date Posted: 30 November 2007 at 1:15am
Hi,
 
hm, if Update handler never called, may be you have defines for them that set some wrong id.
 
Check if the have have these ids:
 
#define XTP_IDS_CLR_AUTOMATIC           9948
#define XTP_IDS_CLR_MORE                9949


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Ark42
Date Posted: 30 November 2007 at 1:42am
Yes, they are 9948 and 9949 in the *.XCB and in resource.h as they have always been from before.


Posted By: Oleg
Date Posted: 30 November 2007 at 4:44am

Hi,

Can you attach xcb file? I will try it with our sample ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Ark42
Date Posted: 30 November 2007 at 11:13am
Well, xcb files don't support CXTPControlPopupColor, CXTPControlButtonColor, and CXTPControlColorSelector so those I have dynamically changed at the end of CMainFrame::LoadFrame()


Posted By: Oleg
Date Posted: 30 November 2007 at 1:32pm
It have to be something in your code. Our CustomThemes sample works right. Double check you have right id.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Ark42
Date Posted: 30 November 2007 at 2:36pm
That sample uses IDs ID_TEXT_AUTO 131 and ID_TEXT_MORE 134, not the predefined 9948/9949 ones. I changed the IDs in my XCB and code to use new IDs (now 1389 and 1390) and it works now with one difference from your sample:



Your sample, when torn-off has a flat background, while all other tear-offs in your sample have the same gradient background that mine gets. How do you set that special option so the color tear-off has a flat background?



Posted By: Ark42
Date Posted: 30 November 2007 at 4:22pm
I found it, in OnCreateCommandBar, I called EnableDocking(xtpFlagFloating); to prevent docking, which causes the background to be drawn flat. Unfortunately, that also disables the ability to dock the tear-off toolbar!




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