Solved

is it possible to add the property readonly in RadioGroup ?

Posted on 2014-09-26
5
278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

687 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