Solved

Change items in RadioGroup?

Posted on 1998-04-11
3
233 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

728 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

15 Experts available now in Live!

Get 1:1 Help Now