Re: Change Box Color on CheckBox Control
- From: schaefty@xxxxxxxxxxx
- Date: 18 Aug 2006 08:30:22 -0700
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)
.
- Follow-Ups:
- Re: Change Box Color on CheckBox Control
- From: Larry Serflaten
- Re: Change Box Color on CheckBox Control
- From: Rick Rothstein \(MVP - VB\)
- Re: Change Box Color on CheckBox Control
- From: Ken Halter
- Re: Change Box Color on CheckBox Control
- References:
- Change Box Color on CheckBox Control
- From: schaefty
- Re: Change Box Color on CheckBox Control
- From: Jan Hyde
- Change Box Color on CheckBox Control
- Prev by Date: Re: simple winsock query
- Next by Date: Re: Return a value to Windows
- Previous by thread: Re: Change Box Color on CheckBox Control
- Next by thread: Re: Change Box Color on CheckBox Control
- Index(es):
Relevant Pages
|