Solved

is it possible to add the property readonly in RadioGroup ?

Posted on 2014-09-26
5
232 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Printing problem 2 80
LAN or WAN ? 11 82
Convert a string into a TDateTime 5 50
TEMBEDDEDWB how can i change its user agent ? 8 49
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now