Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - XTP_IDS_CLR_AUTOMATIC
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTP_IDS_CLR_AUTOMATIC

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

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Topic: XTP_IDS_CLR_AUTOMATIC
    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.

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: 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
Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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.
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: 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
Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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()
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: 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
Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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!

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.152 seconds.