ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pack.C File Reference

Demonstrates usage of class TGPack. More...

Go to the source code of this file.

Detailed Description

Demonstrates usage of class TGPack.

eve_pack.png
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());
b = new TGTextButton(hp, "Ailaaha"); hp->AddFrame(b);
vp = new TGPack(hp, hp->GetWidth(), hp->GetHeight());
b = new TGTextButton(vp, "Blaaaaa"); vp->AddFrameWithWeight(b, 0, 5);
b = new TGTextButton(vp, "Blooooo"); vp->AddFrameWithWeight(b, 0, 3);
b = new TGTextButton(vp, "Bleeeee"); vp->AddFrameWithWeight(b, 0, 5);
b = new TGTextButton(hp, "Cilnouk"); hp->AddFrame(b);
mf->Layout();
mf->MapWindow();
}
Author
Matevz Tadel

Definition in file pack.C.