pack.C: Demonstrates usage of class TGPack.
// @(#)root/eve:$Id: triangleset.C 26568 2008-12-01 20:55:50Z matevz $
// Author: Matevz Tadel
// Demonstrates usage of class TGPack.
TGPack *hp = 0;
TGPack *vp = 0;
TGTextButton* b = 0;
void pack()
{
TGMainFrame* mf = new TGMainFrame(0, 400, 300);
mf->SetWindowName("Foo");
hp = new TGPack(mf, mf->GetWidth(), mf->GetHeight());
hp->SetVertical(kFALSE);
b = new TGTextButton(hp, "Ailaaha"); hp->AddFrame(b);
vp = new TGPack(hp, hp->GetWidth(), hp->GetHeight());
b = new TGTextButton(vp, "Blaaaaa"); vp->AddFrame(b);
b = new TGTextButton(vp, "Blooooo"); vp->AddFrame(b);
b = new TGTextButton(vp, "Bleeeee"); vp->AddFrame(b);
hp->AddFrame(vp, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
b = new TGTextButton(hp, "Cilnouk"); hp->AddFrame(b);
mf->AddFrame(hp, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
mf->Layout();
mf->MapSubwindows();
mf->MapWindow();
}
Last change: Wed Dec 17 10:56:27 2008
Last generated: 2008-12-17 10:56
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.