Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP7 - How to 'dim' checkbox when readonly
Message
 
To
04/02/2003 13:22:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00748931
Message ID:
00748976
Views:
30
Tracy,

That is a relief!
I thought that it was *just me* that couldn't get the color to change.
Seriously, after midnight I sometimes wonder :(.

>I haven't tested this in VFP8 yet, so I wonder if the limitations are the same? It is something that has always 'bugged' me. Perhaps someone has tested the checkbox and can post it or a question can be posted under the VFP8 section...
>
>tracy
>
>>Tracy,
>>
>>Here's another checkbox anomoly...
>>Regardless of the setting of enabled or readonly I can't seem to change the color of the 'checkmark' (eg to blue).
>>
>>
>>>Barring any other means to dim it, (hopefully someone will come up with another solution!), I do not see how you can make the checkbox readonly and 'dim' it without also disabling it.
>>>
>>>
>>>>Tracy,
>>>>
>>>>Basically the scenario is a 'master file maintenance' type of form.
>>>>Certain fields will not be able to be edited after the record is saved.
>>>>For other controls, eg textbox, the control is 'readonly' after the initial save but still 'enabled'.
>>>>This allows the end-user to still access the control (for ctrl/c).
>>>>Are you suggesting that I disable the checkbox instead of making it 'readonly' as in the other controls? After all, who would want to do a ctrl/c on a checkmark?
>>>>
>>>>>Yep, you are correct. Changing enabled to .F. does the trick.
>>>>>
>>>>>Tracy
>>>>>
>>>>>>Tracy,
>>>>>>
>>>>>>Nothing that I can see in terms of the control being 'readonly'.
>>>>>>However, when I 'disable' the control, it dims.
>>>>>>
>>>>>>
>>>>>>>What happens if you make the DisabledForeColor=0,0,1 in the property sheet?
>>>>>>>
>>>>>>>
>>>>>>>>I have been trying, in vain, to have a checkbox (in VFP7) 'dim' when it is read-only.
>>>>>>>>
>>>>>>>>I have changed * all * of the properties containing colors to 236,233,216 in the control, readonly to .t. and enabled to .f.
>>>>>>>>However, the checkbox itself still remains white.
>>>>>>>>When it is clicked on, it 'dims' until the mouse is released.
>>>>>>>>
>>>>>>>>I would like this control to be consistent with other controls in my app that dim when readonly.
>>>>>>>>
>>>>>>>>Thank you in advance.
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Previous
Reply
Map
View

Click here to load this message in the networking platform