Solved

Change items in RadioGroup?

Posted on 1998-04-11
3
248 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
[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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

691 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