Print Page | Close Window

Toolbar Checked Color

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=5349
Printed Date: 03 July 2024 at 4:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar Checked Color
Posted By: jimmy
Subject: Toolbar Checked Color
Date 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




Replies:
Posted By: jimmy
Date Posted: 24 October 2006 at 6:51am
There is no way to upload an image.
Can't upload image ????

    Jimmy



Posted By: Oleg
Date Posted: 24 October 2006 at 9:45am
Hello,
 
Please try again. Was available to upload only for admins.


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


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



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



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