This macro gives an example of different buttons' layout.
private:
public:
~MyMainFrame() override;
};
{
2, 0, 2, 2));
2, 2, 2, 2));
gClient->GetColorByName(
"yellow", yellow);
help->ChangeBackground(yellow);
2, 2, 2, 2));
3, 2, 2, 2));
3, 2, 2, 2));
exit =
new TGTextButton(cframe2,
"&Exit ",
"gApplication->Terminate(0)");
2, 0, 2, 2));
SetWindowName("Buttons' Layout");
Resize(GetDefaultSize());
MapWindow();
}
MyMainFrame::~MyMainFrame()
{
Cleanup();
}
void buttonsLayout()
{
new MyMainFrame(
gClient->GetRoot(), 350, 80);
}
#define ClassDef(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t SetWMSizeHints
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
Yield an action as soon as it is clicked.
A composite frame that layout their children in vertical way.
ROOT GUI Window base class.