• Welcome to Valhalla Legends Archive.
 

Need Help

Started by OuTLawZGoSu, August 01, 2003, 08:19 PM

Previous topic - Next topic

Grok

Quote from: Camel on August 13, 2003, 12:54 PM
Same thing in vb. The .enabled property when set to false disables the checkbox, meaning you cannot check it. The .value property when set to 2 just turns it gray, but it can still be checked. IIRC, both methods will show the previous state of the checkbox (checked or unchecked).

Do you make this up as you go along, or do you open VB and test what you're saying?

Check1.Enabled = False
Check1.Value = 0
Check1.Value = 2


The checkbox is initially enabled, unchecked, and that code makes it disabled, THEN grayed and checked.

Check1.Value = 1
Check1.Value = 2


Despite it still being disabled, that code still shows grayed and checked.

As I said in my previous post, show me how you are displaying a box GRAYED and UNCHECKED at the same time?

Adron

To make a box gray and unchecked, the way these people have been saying, all you have to do is:


   Check1.Enabled = False
   Check1.Value = 0


Of course, the grayed state is a totally different state, since it usually means that some of the child checkboxes are checked and some aren't.

Differentiate between graying because it's disabled and graying because it's neither checked nor unchecked. The not checked, not unchecked state is called grayed, and happens to look a little similar to a disabled checked box. They are actually different shades of gray.

Grok

Quote from: Adron on August 13, 2003, 05:11 PM
To make a box gray and unchecked, the way these people have been saying, all you have to do is:


   Check1.Enabled = False
   Check1.Value = 0


Of course, the grayed state is a totally different state, since it usually means that some of the child checkboxes are checked and some aren't.

Differentiate between graying because it's disabled and graying because it's neither checked nor unchecked. The not checked, not unchecked state is called grayed, and happens to look a little similar to a disabled checked box. They are actually different shades of gray.


That is not what all these people were saying however.  Read the posts and in each instance Camel was saying the 2-grayed state of a checkbox would reflect the 0-unchecked or 1-checked condition of the checkbox, matching the value it had just before being set to 2-grayed.

It is that to which I was responding, and you know it but love to argue!

Camel

Quote from: Grok on August 13, 2003, 04:48 PM
Quote from: Camel on August 13, 2003, 12:54 PM
Same thing in vb. The .enabled property when set to false disables the checkbox, meaning you cannot check it. The .value property when set to 2 just turns it gray, but it can still be checked. IIRC, both methods will show the previous state of the checkbox (checked or unchecked).

Do you make this up as you go along, or do you open VB and test what you're saying?

I said IIRC, which obviously I didn't. Everything else I said is correct.

Adron

Quote from: Grok on August 13, 2003, 07:39 PM
It is that to which I was responding, and you know it but love to argue!

Yes, of course, and I wasn't directly posting to argue with you. I just tried to explain why they were lost - what they were doing, compared to what you were doing. When I reply to someone in particular, I virtually always quote his post to make the reply clear.

UserLoser

#35
How can a question about a value of a checkbox possibly last for THREE pages?!

Camel

Quote from: UserLoser on August 14, 2003, 05:03 PM
How can a question about a value of a checkbox possibly last for THREE pages?!

Want to make it four!?!

Adron

No, four would be a bit too much. Better stop it now before it grows to that.

|