17 auto mf =
new TGMainFrame(0, 400, 300);
18 mf->SetWindowName(
"Foo");
20 hp =
new TGPack(mf, mf->GetWidth(), mf->GetHeight());
21 hp->SetVertical(kFALSE);
23 b =
new TGTextButton(hp,
"Ailaaha"); hp->AddFrame(b);
25 vp =
new TGPack(hp, hp->GetWidth(), hp->GetHeight());
26 b =
new TGTextButton(vp,
"Blaaaaa"); vp->AddFrameWithWeight(b, 0, 5);
27 b =
new TGTextButton(vp,
"Blooooo"); vp->AddFrameWithWeight(b, 0, 3);
28 b =
new TGTextButton(vp,
"Bleeeee"); vp->AddFrameWithWeight(b, 0, 5);
29 hp->AddFrame(vp,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
31 b =
new TGTextButton(hp,
"Cilnouk"); hp->AddFrame(b);
33 mf->AddFrame(hp,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));