CAA RADE Dialog Radio Buttons

Radio buttons are instantiated based on the syntax below. They are mutually exclusive with all radio buttons assigned to the same parent object. This means that in the example below, if you click the Ellipse Radio Button, the Rectangle and Triangle will be deselected (if they were selected in the first place). However, the Extrude, Loft, and Subtract Radio Buttons will be unaffected because they are children of a separate object.


void TSTDialogFromScratch::Build ()

{

CATDlgFrame * Frame1 = new CATDlgFrame(this,"Shape", NULL);
this->Attach4Sides(Frame1);

CATDlgRadioButton *pRadButt1 = new CATDlgRadioButton(Frame1,"Ellipse",NULL);
pRadButt1->SetState(CATDlgCheck,1);
CATDlgRadioButton *pRadButt2 = new CATDlgRadioButton(Frame1,"Rectangle",NULL);
pRadButt2->SetState(CATDlgUncheck,1);
CATDlgRadioButton *pRadButt3 = new CATDlgRadioButton(Frame1,"Triangle",NULL);
pRadButt3->SetState(CATDlgUncheck,1);
CATDlgFrame * Frame2 = new CATDlgFrame(this,"Method", NULL);
this->Attach4Sides(Frame2);

CATDlgRadioButton *pRadButt4 = new CATDlgRadioButton(Frame2,"Extrude",NULL);
pRadButt4->SetState(CATDlgCheck,2);
CATDlgRadioButton *pRadButt5 = new CATDlgRadioButton(Frame2,"Loft",NULL);
pRadButt5->SetState(CATDlgUncheck,2);
CATDlgRadioButton *pRadButt6 = new CATDlgRadioButton(Frame2,"Subtract",NULL);
pRadButt6->SetState(CATDlgUncheck,2);


 

this->SetVisibility(CATDlgShow);


}