Folks
I am using BCB6 to code a dialog box which pops up
when a drop down menu option is clicked. I have chosen a dynamic
modeless form to be the dialog box. This will offer the user multiple
mutually exclusive choices.
This looks easy enough to do on the main form with
radio buttons in a Radio Button Group, but my form is dynamic.
and wil look something like this
Do I have to programatically create the instances of TRadioGroup & TRadioButton or is there a simpler way to create dynamic forms containing components, using the component palette ?
johnp
I am using BCB6 to code a dialog box which pops up
when a drop down menu option is clicked. I have chosen a dynamic
modeless form to be the dialog box. This will offer the user multiple
mutually exclusive choices.
This looks easy enough to do on the main form with
radio buttons in a Radio Button Group, but my form is dynamic.
and wil look something like this
Code:
//mainmenu event handler
void __fastcall TForm1::createdialog1(TObject *Sender)
{
TForm* Form2 = new TForm(this) ;
Form2->ShowModal();
//code to size and position the form
//code to create & display "close dialog box" button
//code to display radio buttons giving user one choice
only
//code to detect which is radio button user selects
delete Form2 ;
Form2 = NULL ; //safe way to release memory
}
Do I have to programatically create the instances of TRadioGroup & TRadioButton or is there a simpler way to create dynamic forms containing components, using the component palette ?
johnp