Community
Participate
Working Groups
For layout issues we need a first fixed row in rwt-jface table- & treeviewer. The use case here is to place control widgets inside the regarding column (like filter etc) - it should not be possible to scroll & hide these controls by the user. (As a workaround we created a table/treewidget composed by 2 viewerwidgets - but it is not very reliable)
A control placed in a tree/table will not scroll with the content in any case. Therefore it should suffice to just have the first row empty, or am I missing something?
(In reply to Tim Buschtoens from comment #1) > A control placed in a tree/table will not scroll with the content in any > case. I didn´t notice this and tried to test it, but: >Therefore it should suffice to just have the first row empty, or am I > missing something? Unfortunately i have no clue how to achieve this (neither by using contentprovider for virtual viewers nor simple Arraylists as input. I tried to modify the TableViewerTab in ControlsDemo, added after loc 164:marriedColumn = createMarriedColumn(); final Table table = viewer.getTable(); final TableItem item = new TableItem(table, SWT.NONE); final TableEditor editor = new TableEditor(table); final Button testControl = new Button(table, SWT.CHECK); testControl.pack(); editor.minimumWidth = testControl.getSize().x; editor.horizontalAlignment = SWT.CENTER; editor.setEditor(testControl, item, 0); but getting now a AssertionFailedException on setInput(persons) )