This TableTest class is a simple example of how to use a TGSimpleTable that creates and owns it's own TGSimpleTableInterface.
TableTest inherits from TGMainFrame to create a top level frame to embed the TGTable in. First the data needed is created. Then the TGSimpleTable is created using this data. In the end, the table is added to the TGMainFrame that is the TableTest and the necessary calls to correctly draw the window are made. For more information about the use of TGSimpleTable see it's documentation.
#include <iostream>
private:
public:
};
private:
public:
void DoExit();
};
fData(nullptr),
{
Connect("CloseWindow()", "TableTest", this, "DoExit()");
DontCallClose();
fData[i][
j] = 10 * i +
j;
}
}
SetWindowName("TGSimpleTable Test");
Resize(GetDefaultWidth() + 20, 600);
MapWindow();
};
TableTest::~TableTest()
{
delete[] fData[i];
}
delete[] fData;
Cleanup();
}
void TableTest::DoExit()
{
DeleteWindow();
}
{
}
int Int_t
Signed integer 4 bytes (int)
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
double Double_t
Double 8 bytes.
#define ClassDefOverride(name, id)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
To provide a simple class to visualize an array of doubles, the class TGSimpleTable is provided.
ROOT GUI Window base class.
RooCmdArg Layout(double xmin, double xmax=0.99, double ymin=0.95)
- Author
- Roel Aaij 13/07/2007
Definition in file simpleTableTest.C.