Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check box readonly
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00032786
Message ID:
00032922
Views:
35
>>Is there a reason that the checkbox control doesn't have a readonly property? Is there a way to simulate one in my checkbox class? .Enabled would work for most of my implentations, but it would be nice to be able to issue a SETALL readonly to .T. and have the checkboxes included.
>
>I haven't tried this, but: Could you add a 'readonly' property to the checkbox, and then in the Refresh() or getfocus() or some other method put
> if this.readonly
> this.enabled = .f.
> else
> this.enabled = .t.
> endif
>
>The setall() would adjust the property, and the code do the rest.
>
>HTH
>Barbara

You could also take a cue from the .SetAllProp method of the txtbtns class in WIZSTYLE.VCX (source of much of my inspiration) and say:
THIS.disabledforecolor = THIS.forecolor
THIS.disabledbackcolor = THIS.backcolor
or something like that, so that your checkboxes will look like your other controls with a built-in readonly property.
Previous
Reply
Map
View

Click here to load this message in the networking platform