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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RadioGroup in Borland Builder

Status
Not open for further replies.

shilpashetty27

Technical User
Apr 12, 2007
32
CA
Hi,

Does anyone know how I can make one of the 'Items' of a 'RadioGroup' component in Borland invisible.

To be more specific, my RadioGroup has 4 items, one of which must become invisble in response to an event. I'd appreciate it if anyone could tell me how I can go about doing this.

thanks in advance!

cheers,
Shilpa
 
I'm not certain about invisible but you could
1) make it inactive or,
2) programmically change the number of items available.


James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
Instead of adding the radio buttons as Items, why not actually place RadioButtons onto your radio group box. Then say you have RadioButton1..4 and you want to make RadioButton3 invisible, just do:

Code:
RadioButton3->Visible=false;

Or with items, you'll need to delete the item that you no longer want visible and/or add one in again that you want to make visible:

Code:
// Delete an Item
RadioGroup1->Items->Delete(IndexOfItemToDelete);

// Insert an Item
RadioGroup1->Items->Insert(IndexToInsert,"Radio Description");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top