#include #include #include void test3() { TGMainFrame* fMain = new TGMainFrame(gClient->GetRoot(), 200, 200); //THE MAIN VERTICAL FRAME TGVerticalFrame* fVFMain = new TGVerticalFrame(fMain, 200, 200); fMain->AddFrame(fVFMain, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 1, 1, 1, 1)); //THE TGBUTTONGROUP TGButtonGroup* br = new TGButtonGroup(fVFMain, "Type", kVerticalFrame); fVFMain->AddFrame(br, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 0,0,0,0)); TGRadioButton* fCBGT[3]; fCBGT[0] = new TGRadioButton(br, new TGHotString("&Radio 1")); fCBGT[1] = new TGRadioButton(br, new TGHotString("&Radio 2")); fCBGT[2] = new TGRadioButton(br, new TGHotString("&Radio 3")); br->Show(); fCBGT[0]->SetState(kButtonUp); fCBGT[1]->SetState(kButtonDisabled); fCBGT[2]->SetState(kButtonDisabled); fMain->SetWindowName("Test"); fMain->MapSubwindows(); fMain->Resize(fMain->GetDefaultSize()); fMain->MapWindow(); }