# TGTableContainer- TGTableFrame contains a composite frame that uses a TGMatrixLayout to Layout the frames it contains. TGTableHeaderFrame implements a frame used to display TGTableHeaders in a TGTable. Both classes are for internal use in TGTable only. TGTableFrame 继承 TQObject TGTableHeaderFrame 继承 TGCompositeFrame ## class **TGTableFrame** ```cpp TGTableFrame(const TGWindow *p, UInt_t nrows, UInt_t ncolumns); /// Create the container used to view TGTableCells. p. virtual ~TGTableFrame() { delete fFrame; } TGFrame *GetFrame() const { return fFrame; } void SetCanvas(TGCanvas *canvas) { fCanvas = canvas; } void HandleMouseWheel(Event_t *event);/// Handle mouse wheel to scroll. virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);/// Draw a region of container in viewport. ``` **TGTableHeaderFrame** ```cpp TGTableHeaderFrame(const TGWindow *p, TGTable *table = 0, UInt_t w = 1, UInt_t h = 1, EHeaderType type = kColumnHeader, UInt_t option = 0); ~TGTableHeaderFrame() {} virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);/// Draw a region of container in viewport. ```