|Re: Nesting SWT Tables [message #639446 is a reply to message #638805]
||Tue, 16 November 2010 14:48
| Grant Gayed
Registered: July 2009
You would simplify your task greatly if you could change your UI to have a |
separate Table beside the Tree, and change the Table's content as needed
whenever a TreeItem was selected.
In the absence of this, trying to give an swt TreeItem the appearance of a
child Table is likely to be painful. The basic approach would be to give
the TreeItem enough empty child items to reserve the appropriate amount of
vertical space for the child table, and then when that TreeItem is expanded
by the user, you would put an ON_TOP Shell containing the Table at the
position where the TreeItem's first child would appear. This may work
reasonably well for a simple Tree, but once details come up like making the
Table's Shell adjust to Tree scrolling and clipping, you may be wishing you
hadn't gone down this route.
Nebula's Grid control may be a bit more helpful with some of this, I'm not
sure. If you want to investigate this see
"Arun Kumar Simhadri" <ArunSimha@hcl.in> wrote in message
> I am planning to implement a Tree Table in which if one of the node
> is expanded, the expanded node should display a inner table with it's own
> Column header.
> Any inputs are welcome!!!
Powered by FUDForum
. Page generated in 0.02297 seconds