Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enabled / disabled checkbox in a grid with only 1 contr
Message
From
28/03/2011 14:09:55
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01505221
Message ID:
01505250
Views:
42
>>>>(5) the checkbox column should have a DynamicCurrentControl based on the value of the field in (1)
>>>>You better add a DynamicBackColor showing whether the checkbox is enabled
>>>
>>>What BackColor do you suggest to show clearly enabled / disabled status?
>>>
>>>Thanks again.
>>
>>Why don't you create two check boxes, one enabled, another disabled and switch them using DynamicCurrentControl?
>>You mentioned before that you wanted to avoid multiple controls, but sometimes I put more than five controls in one column and switch them depending on the values in the view. This way the sky is the limit, you can even put sometimes labels, image, textboxes etc into the column and create your own container controls as well.
>>
>>This technique has helped me to create interfaces that are really intuitive and more interesting looking.
>
>I did already. I was thinking we should also set DynamicBackColor. We can, of course, use different colors for the checkboxes. My question was what are these colors, e.g. what color should I set for disabled (enabled) checkbox to clearly show when they are enabled and when disabled?

Is the checkbox not already greyed out when it's disabled? I wonder why you want to change the backcolor as well. I tried it and if I change the backcolor it does not change the backcolor for a disabled checkbox, it only looks kind of strange. I also tried it with the DisabledBackcolor, but the result is the same. I think playing with backcolor property in a grid often gives undesired results.
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform