Delphi Tips&Tricks News   Tips   .NET Software   VCL Software   Search   Contacts
Special Offer!

Ultimate Pack  hot!
Image Editor  new!
Runtime Fusion
Form Designer
Object Inspector
Print Suite Pro
Commented Image
Delphi Toys
WinDowse
Delphi Bonus
TMS Scripter Studio
Form Designer VB
Form Designer .NET

...get more...
for Delphi.NET, C#, VB.NET
for Delphi VCL, BCB 3-6

WinAPI Online
Unix Manual Pages
MegaDetailed.NET
in3steps.com

Blogspot  greatis.blogspot.com

 See more ads about delphi programming →


Delete/add item in RadioGroup - Components - Tips & Tricks - Greatis Delphi Pages

Use Delete and Add procedures of the RadioGroup.Items for removing and adding item.
If you want add item in RadioGroup to a defined place, then use Exchange procedure after Add procedure.


procedure TForm1.Button1Click(Sender: TObject);
begin
  RadioGroup1.Items.Delete(2);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  with RadioGroup1 do
  begin
    Items.Add('  New'+IntToStr(Items.Count-2));
    Items.Exchange(2, Items.Count-1);
  end;
end;
For more
Delphi Help

Download source


 See more ads about delphi components →