Solved

is it possible to add the property readonly in RadioGroup ?

Posted on 2014-09-26
5
260 Views
Last Modified: 2014-09-26
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
Comment
Question by:hidrau
  • 3
  • 2
5 Comments
 
LVL 13

Accepted Solution

by:
akb earned 500 total points
ID: 40347030
You can use the following:
SetWindowLong(RadioGroup1.Handle, GWL_STYLE, GetWindowLong(RadioGroup1.Handle, GWL_STYLE) or WS_DISABLED);
0
 
LVL 1

Author Closing Comment

by:hidrau
ID: 40347038
Thanks very much, it worked very well.
0
 
LVL 1

Author Comment

by:hidrau
ID: 40347041
0
 
LVL 13

Expert Comment

by:akb
ID: 40347058
That is this thread!
0
 
LVL 1

Author Comment

by:hidrau
ID: 40347062
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question