.NET MFC Question

littletemple

Golden Member
Sep 18, 2001
1,359
0
0
How do you "gray out" an UI element? Like when the user clicks on the check box, a slider is "grayed out" and unable to use the slider element.
 

littletemple

Golden Member
Sep 18, 2001
1,359
0
0
Originally posted by: shutterFly
Have you tried:

Element.Enabled = false;

Element.EnableWindow(false) just disables the use of the "slider bar", but it doesn't gray out the slider bar.
 

DJFuji

Diamond Member
Oct 18, 1999
3,643
1
76
i'm sure you can look in object properties and set color to a shade of gray...
 

littletemple

Golden Member
Sep 18, 2001
1,359
0
0
I want to "gray it out", meaning that the element is disabled. Like a check box is disabled meaning you can't click it and change it.
 

Titan

Golden Member
Oct 15, 1999
1,819
0
0
I think there is a .disable function, or an Enable(false) that you use. Look it up in the MSDN.