Re: Change Box Color on CheckBox Control

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks, but I am not trying to add a third state to the control. It is
more simple than that. I would simply like to make the little white
box on the control become gray, but still function normally in regards
to just a checked or unchecked state.

I wrote an application that uses 30 checkboxes to set the configuration
of a device. The device is constantly polled, and its response is
decoded and reported in a mirror battery of another set of 30
checkboxes. Therefore, the app is broken down into 1 grouping of
checkboxes that represent your desired state, and another grouping of
checkboxes that reports current actual state (these may differ for
various reasons). I used the checkboxes such that if the box is
checked it represents a true for that state.

It all work just fine, but the customer freaked out because they keep
wanting to access and click the "current state" group of checkboxes.
No matter how I seperate them into groups on different parts of the
app. What they demanded is to leave the functionality of the
checkboxes as is, but to simply gray the boxes on the "current states"
to make them easier to distinguish.

Thanks!


Jan Hyde wrote:
schaefty@xxxxxxxxxxx's wild thoughts were released on 17 Aug
2006 16:53:41 -0700 bearing the following fruit:

Hi,

I have the requirement to slightly gray out the box on a CheckBox
Control to seperate it from standard checkboxes. I just want the box
to look like it does when you set enabled to false, but still be able
to use the control and have the check and text still black. I have
been searching around but haven't figured out a way to do this yet. I
imagine I will have to make a new control class and inherit controlbox
control and then make my modifications there. Unfortunately, I cannot
figure this out. I would prefer to just add code to my application (as
it is already done) that would gray the box on 30 boxes and then leave
the rest alone.

Can someone help? TIA - Raoul

It sounds like your trying to add a third state to your
checkbox? is this the case? Are you aware of the vbGrayed
setting for a checkbox?





Jan Hyde (VB MVP)

--
Antelope: Why Grandpa won't forgive Uncle! (Gunjan Saraf)

.



Relevant Pages

  • RE: Dynamic Checkbox problem when added in render method &checked=true
    ... control and the other is a layers control. ... thus I can create the checkboxes to turn layers on and off. ... boxes the first time through because mobjTest is nothing. ... This will end up running the load event again. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Unbound Checkboxes need to trigger event
    ... The event doesn't happen because the checkboxes aren't ... Every control has a tag. ... Now look for the option 'Tag'. ... an Option Group can only have one thing selected in it. ...
    (microsoft.public.access.formscoding)
  • RE: Users want Check Boxes for entry
    ... simply create an Option Group control. ... delete the buttons and their labels, and replace them with checkboxes. ... If multiple reasons may be checked, ...
    (microsoft.public.access.forms)
  • Re: ActiveX checkbox resizing
    ... Actually the checkboxes under the Forms Toolbar are checkable controls as ... > using the control toolbox to insert the check box control, ... > enough to change font size, ...
    (microsoft.public.word.docmanagement)
  • Re: WM_CUT, WM_COPY, WM_PASTE and ID_EDIT_*
    ... control, and if it isn't, I punt to the superclass. ... BOOL cancopy; ... a pop-up menu is shown with the Cut/Copy/Paste functions ... either gray or not gray. ...
    (microsoft.public.vc.mfc)