>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only