Hi,
I would like to use TGTableLayout/TGTableLayoutHints; however, I could not
find out the documents about how to use them, especially parameters of
TGTableLayoutHints constructor.
Thanks,
Yukio Okuda
Hi,
I would like to use TGTableLayout/TGTableLayoutHints; however, I could not
find out the documents about how to use them, especially parameters of
TGTableLayoutHints constructor.
Thanks,
Yukio Okuda
Hi Yukio,
Sorry for the delay of this answer - I was absent last two weeks.
I have updated the class description with the missing information in svn trunk. Because the current version of the ROOT Reference Guide does not contain it, I am including below the description about TGTableLayout and TGTableLayoutHints. You can see the large use of these classes in the method TEditQueryFrame::Build(…) at root.cern.ch/root/html/src/TSess … r.cxx.html
[code] TGTableLayout
A layout manager, which places child frames in a table arranged in
rows and columns, making it easy to align many widgets next each to
other horizontally and vertivally. It uses TGTableLayoutHints
(not TGLayoutHints!!!) and works like TGMatrixLayout with the
addition that:
TGTableLayoutHints
This class describes layout hints used by the TGTableLayout class.
It specifies the column/row division number on which to attach the
child frame. This number starts from 0 and goes to #_columns/#_rows
respectively (0 indicates the first row/column).
Below are described all parameters of TGTableLayoutHints constructor
attach_left - the column to the left of the widget;
attach_right - the column to the right of the widget;
attach_top - the row above the widget;
attach_bottom - the row below the widget;
hints - layout hints (combination of ELayoutHints)
The next parameters determine the extra padding added around the
child frame. By default these are 0.
padleft - determines the extra padding added on the left
padright - determines the extra padding added on the right
padtop - determines the extra padding added on the top
padbottom - determines the extra padding added on the bottom [/code]
Cheers, Ilka
Ilka-san,
Thank you very much. The sample code helped me to enjoy MS-Excel like
charts by TGTableLayout not TGMatrixLayout.
Thanks, Yuki