• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

is it possible to add the property readonly in RadioGroup ?

Hello guys

The only way today to turn the radioGroup readonly is setting the enable to false, but this turn the radioGroup in deactive color. Is there any way to have a readonly property on it so that the user cannot change the option and the radioGroup doesn't appear to be disabled.

thanks
Alex
0
hidrau
Asked:
hidrau
  • 3
  • 2
1 Solution
 
akbCommented:
You can use the following:
SetWindowLong(RadioGroup1.Handle, GWL_STYLE, GetWindowLong(RadioGroup1.Handle, GWL_STYLE) or WS_DISABLED);
0
 
hidrauAuthor Commented:
Thanks very much, it worked very well.
0
 
hidrauAuthor Commented:
0
 
akbCommented:
That is this thread!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now