Home » Eclipse Projects » Remote Application Platform (RAP) » about RWT.FIXED_COLUMNS
about RWT.FIXED_COLUMNS [message #893626] |
Wed, 04 July 2012 21:57  |
Eclipse User |
|
|
|
code Snippet1: treeVirtual.setData(RWT.FIXED_COLUMNS, 5);
code Snippet2:
final TreeEditor editor = new TreeEditor(treeVirtual);
final Button button = new Button(treeVirtual, SWT.NONE);
button.setText("test");
editor.grabHorizontal = true;
editor.setEditor(button, citem, 6);
the 6 TreeColumn change TreeEditor drag the scroll bar control does not hide?
Thanks a lot
|
|
| |
Re: about RWT.FIXED_COLUMNS [message #893916 is a reply to message #893669] |
Thu, 05 July 2012 23:03   |
Eclipse User |
|
|
|
Snippet 1
Tree treeVirtual = new Tree(compActual, SWT.BORDER | SWT.FULL_SELECTION);
treeVirtual.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,
true, 1, 1));
treeVirtual.setLinesVisible(true);
treeVirtual.setHeaderVisible(true);
treeVirtual.setData(RWT.FIXED_COLUMNS, 5);
Snippet 2
private TreeItem createItem(TreeItem parentItem, String str, String str1,
String str2, String str3, String str4, String str5,
String str6,String str7, String str8) {
TreeItem citem = new TreeItem(parentItem, SWT.NONE);
citem.setText(str);
citem.setText(1, str1);
citem.setText(2, str2);
citem.setText(3, str3);
citem.setText(4, str4);
citem.setText(5, str5);
final TreeEditor editor = new TreeEditor(treeVirtual);
final Button button = new Button(treeVirtual, SWT.NONE);
button.setText("test");
editor.grabHorizontal = true;
editor.setEditor(button, citem, 6);
citem.setText(7, str7);
citem.setText(8, str8);
return citem;
}
drag the scroll bar button does not hide?
Attachment: init.png
(Size: 11.96KB, Downloaded 251 times)
Attachment: scroll.png
(Size: 12.22KB, Downloaded 226 times)
[Updated on: Thu, 05 July 2012 23:03] by Moderator
|
|
|
Re: about RWT.FIXED_COLUMNS [message #893924 is a reply to message #893916] |
Fri, 06 July 2012 01:55   |
Eclipse User |
|
|
|
Hi,
you mean that the cell editor (button) is not hidden behind the fixed
columns when scrolling right? If this is the problem - this is done by
design. Try to hide the editors (buttons) yourself by listening for the
horizontal scrollbar selection event. If you think that this is not
correct please file an enhancement request.
Best,
Ivan
On 7/6/2012 6:03 AM, ocean Mising name wrote:
> Snippet 1
> Tree treeVirtual = new Tree(compActual, SWT.BORDER | SWT.FULL_SELECTION);
> treeVirtual.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,
> true, 1, 1));
> treeVirtual.setLinesVisible(true);
> treeVirtual.setHeaderVisible(true);
> treeVirtual.setData(RWT.FIXED_COLUMNS, 5);
>
> Snippet 2
>
> private TreeItem createItem(TreeItem parentItem, String str, String str1,
> String str2, String str3, String str4, String str5,
> String str6,String str7, String str8) {
> TreeItem citem = new TreeItem(parentItem, SWT.NONE);
> citem.setText(str);
> citem.setText(1, str1);
> citem.setText(2, str2);
> citem.setText(3, str3);
> citem.setText(4, str4);
> citem.setText(5, str5);
> final TreeEditor editor = new TreeEditor(treeVirtual);
> final Button button = new Button(treeVirtual, SWT.NONE);
> button.setText(str15);
> editor.grabHorizontal = true;
> editor.setEditor(button, citem, 6);
>
> citem.setText(7, str7);
> citem.setText(8, str8);
> return citem;
> }
>
> drag the scroll bar button does not hide?
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
| |
Goto Forum:
Current Time: Mon Jun 30 23:50:44 EDT 2025
Powered by FUDForum. Page generated in 0.03852 seconds
|