Hello and thanks in advance for the help.

Is there a simple way to make OptionGroup controls readonly?

Does anyone know why they don't have a readonly property (because they are
container perhaps)?

Thanks,

Jeff

Re: Making OptionGroups ReadOnly by Andrew

Andrew
Tue Mar 22 10:31:41 CST 2005

OptionGroup is designed as a selector - being ReadOnly is of no value. What
you want is probably the Enabled property.

If you do not like the Greying then you can change the DisabledBackColor and
DisabledForeColor settings for the options in the OptionGroup. And you can
of course, use your newly aquired knowledge of SetAll to do this for each
option simultaneously.

Andrew R.


"Jeff Grippe" <jgrippe@hilldun.com> wrote in message
news:1140gpj4ue7tbdf@news.supernews.com...
: Hello and thanks in advance for the help.
:
: Is there a simple way to make OptionGroup controls readonly?
:
: Does anyone know why they don't have a readonly property (because they are
: container perhaps)?
:
: Thanks,
:
: Jeff
:
:



Re: Making OptionGroups ReadOnly by Bernhard

Bernhard
Wed Mar 23 06:45:56 CST 2005

Hello Jeff,

> Is there a simple way to make OptionGroup controls readonly?
- Subclass the OptionGroup, name it as you like, perhaps OptionGroupRO
- Add a property READONLY to the new subclass
- give this property an assign method
- in the assign method do all the things that are necessary do switch to read
only state and back. See the suggestions of Andrew R.

Now use this new OptionGroupRO instead of the nativ OptionGroup and the
setall("ReadOnly"...) will also find your OptionGroupRO.

Regards
Bernhard Sander