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

Toolbar Checked Color

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar Checked Color
    Posted: 24 October 2006 at 6:48am
Hello,

I've a toolbar with some checked buttons.
But one button will wrong paint, if it is checked.
Why ???

    Jimmy

Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2006 at 6:51am
There is no way to upload an image.
Can't upload image ????

    Jimmy

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: 24 October 2006 at 9:45am
Hello,
 
Please try again. Was available to upload only for admins.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 25 October 2006 at 7:46am

first and second button are checked.
No mouse over the buttons.

Why is 2. button not orange ??

    Jimmy

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: 25 October 2006 at 9:26am
Hello,
 
in ToolkitPro and in standard MFC toolbars pCmdUI->SetCheck can be called with parameter 0 - unchecked, 1 - checked and 2 - indeterminate
 
obviously that you call it with parameter 2.
 
check Update handler for this Id - may be code looks like
pCmdUI->SetCheck(bChecked)  but bChecked is 2.
 
replace is to
pCmdUI->SetCheck(bChecked ? 1 : 0);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.125 seconds.