Solved

is it possible to add the property readonly in RadioGroup ?

Posted on 2014-09-26
5
218 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
Comment Utility
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
Comment Utility
Thanks very much, it worked very well.
0
 
LVL 1

Author Comment

by:hidrau
Comment Utility
0
 
LVL 13

Expert Comment

by:akb
Comment Utility
That is this thread!
0
 
LVL 1

Author Comment

by:hidrau
Comment Utility
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

7 Experts available now in Live!

Get 1:1 Help Now