27 virtual ~MyMainFrame();
35void MyMainFrame::DoSave()
37 Printf(
"Save in progress...");
87 save->
Connect(
"Clicked()",
"MyMainFrame",
this,
"DoSave()");
88 save->
SetToolTipText(
"Click on the button to save the application as C++ macro");
100 SetWindowName(
"Vertical Splitter");
101 SetWMSizeHints(350, 200, 600, 400, 0, 0);
103 Resize(GetDefaultSize());
109MyMainFrame::~MyMainFrame()
116void MyMainFrame::CloseWindow()
123void splitterVertical()
126 new MyMainFrame(
gClient->GetRoot(), 350, 200);
#define ClassDef(name, id)
void Printf(const char *fmt,...)
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual UInt_t GetDefaultWidth() const
virtual UInt_t GetDefaultHeight() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
virtual void CloseWindow()
Close and delete main frame.
Yield an action as soon as it is clicked.
A composite frame that layout their children in vertical way.
ROOT GUI Window base class.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.