Forum Discussion

mnsam's avatar
mnsam
Contributor
9 years ago

how to support SysTreeView32 as a grid

TC10.30

Windows7

JavaRCP application,  widget is SysTreeView32. However there are grid lines, showing it as Grid in UI, there is actually no Root item.

1. SWTObject("Tree", "").getColumnCount

2. SWTObject("Tree", "").getItemCount, this is similar to rowCount
3. SWTObject("Tree", "").columns.Items(0).text, gives the first column name
4. SWTObject("Tree", "").items.Items(0).strings.Items(3).OleValue . gives the cell text of First Row and Fourth column
 not be able to click on cell, since there are no "Bounds" properties to build a rectangle.

Any help would be appreciated.

2 Replies