Solved

Change items in RadioGroup?

Posted on 1998-04-11
3
241 Views
Last Modified: 2010-04-06
How can I change (dynamic) the items in a RadioGroup? I want to do this in the program itselve.
Thanx very much.
Stefan van Roosmalen
roosiedb@worldaccess.nl
0
Comment
Question by:roosiedb
3 Comments
 
LVL 4

Expert Comment

by:itamar
ID: 1361409
Hi Stefan

What do you mean by change the items ? Its caption, number of items, what ?

Give us more details, so we can help further.

Regards,
Itamar
0
 

Author Comment

by:roosiedb
ID: 1361410
When you have the next radiogroup:

choose options:
O  turn off computer
O  turn off monitor
O  turn off screensavers

and you want to change the "turn OFF screensaver" into "turn ON screensavers" how do you do that?
0
 
LVL 5

Accepted Solution

by:
inter earned 10 total points
ID: 1361411
Hi,

Assume we have a radio group named RG. To add the items in run time:
RG.Add('turn off computer');
RG.Add('turn off monitor');
RG.Add('turn OFF screensavers');
To change, say, the 3rd item in run time:
RG.items[2] := 'turn ON screensavers';

Regards,
Igor
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

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…
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…

829 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