This macro gives an example of how to create a horizontal splitter.
To run it do either:
.x splitterHorizontal.C
.x splitterHorizontal.C++
public:
virtual ~MyMainFrame();
void DoSave();
};
void MyMainFrame::DoSave()
{
Printf(
"Save in progress...");
}
{
3, 0, 0, 0));
3, 0, 0, 0));
3, 2, 2, 2));
save->
Connect(
"Clicked()",
"MyMainFrame",
this,
"DoSave()");
save->
SetToolTipText(
"Click on the button to save the application as C++ macro");
2, 0, 2, 2));
SetWindowName("Horizontal Splitter");
SetWMSizeHints(300, 250, 600, 600, 0, 0);
MapSubwindows();
Resize(GetDefaultSize());
MapWindow();
}
MyMainFrame::~MyMainFrame()
{
Cleanup();
}
void MyMainFrame::CloseWindow()
{
delete this;
}
void splitterHorizontal()
{
new MyMainFrame(
gClient->GetRoot(), 300, 250);
}
- Author
- Ilka Antcheva 1/12/2006
Definition in file splitterHorizontal.C.