Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read only radio group or decorative equivalent - possible?

Status
Not open for further replies.

CHeighlund

Programmer
Jun 11, 2007
163
US
I'm working on a project to create a Delphi equivalent to a number of paper forms, so that the people who are supposed to fill these forms out can do it on the system and then submit the results directly to the database (and their superiors, via email).

I've been attempting to match the structure of the forms as much as possible. One of them has a grading scale shown on the back for scoring. I'm now doing the scoring in-system, but I'm trying to figure out a way to keep the 'show score options' block, given that I haven't been specifically requested to remove it.

I'd thought about using a Radiogroup box there (closest match to original style), but I don't want the user to be able to change the options. Disabling (Enabled := False) causes the text to gray out, so that's not a good way around that problem.

Does anyone know of a good way to make the selected item in a radiogroup static? Or, absent that, is there some way I can create a simply decorative item that looks like a radiogroup box?
 

what about a simple image of a radio and a label?



Steve (Delphi 2007 & XP)
 
@aaronjme:

I tried that in a test run, and it worked. However, when I set it up that way in the original project, it failed. More specifically, disabling the panel the radiogroup was on disabled the group as well. (The original, apparently working version was done with a radiogroup as well.)

I was requested to build this project on the back of an older one in use before I started here; I believe the older project was done in CLX. Is it likely this would cause the disable effect to fail? And if so, do you (or does anyone else) know of a good workaround?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top