![]() |
XTP_IDS_CLR_AUTOMATIC |
Post Reply ![]() |
Author | |
Ark42 ![]() Senior Member ![]() ![]() Joined: 20 October 2003 Status: Offline Points: 291 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Ark42 ![]() Senior Member ![]() ![]() Joined: 20 October 2003 Status: Offline Points: 291 |
![]() ![]() ![]() ![]() ![]() |
Yes, they are 9948 and 9949 in the *.XCB and in resource.h as they have always been from before.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, Can you attach xcb file? I will try it with our sample ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Ark42 ![]() Senior Member ![]() ![]() Joined: 20 October 2003 Status: Offline Points: 291 |
![]() ![]() ![]() ![]() ![]() |
Well, xcb files don't support CXTPControlPopupColor, CXTPControlButtonColor, and CXTPControlColorSelector so those I have dynamically changed at the end of CMainFrame::LoadFrame()
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Ark42 ![]() Senior Member ![]() ![]() Joined: 20 October 2003 Status: Offline Points: 291 |
![]() ![]() ![]() ![]() ![]() |
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? |
|
![]() |
|
Ark42 ![]() Senior Member ![]() ![]() Joined: 20 October 2003 Status: Offline Points: 291 |
![]() ![]() ![]() ![]() ![]() |
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!
|
|
![]() |
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 |