Demonstrates usage of class TGPack.
void pack()
{
mf->SetWindowName("Foo");
hp =
new TGPack(mf, mf->GetWidth(), mf->GetHeight());
mf->Layout();
mf->MapSubwindows();
mf->MapWindow();
}
virtual void AddFrameWithWeight(TGFrame *f, TGLayoutHints *l, Float_t w)
Add frame f at the end with given weight.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame f at the end with default weight.
void SetVertical(Bool_t x)
Sets the vertical flag and reformats the back to new stacking direction.
- Author
- Matevz Tadel
Definition in file pack.C.