Home » Eclipse Projects » Remote Application Platform (RAP) » about RWT.FIXED_COLUMNS
| |
Re: about RWT.FIXED_COLUMNS [message #893916 is a reply to message #893669] |
Fri, 06 July 2012 03:03 |
ocean xue Messages: 107 Registered: November 2011 |
Senior Member |
|
|
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 228 times) -
Attachment: scroll.png
(Size: 12.22KB, Downloaded 214 times)
[Updated on: Fri, 06 July 2012 03:03] Report message to a moderator
|
|
|
Re: about RWT.FIXED_COLUMNS [message #893924 is a reply to message #893916] |
Fri, 06 July 2012 05:55 |
Ivan Furnadjiev Messages: 2429 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
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 Jan 20 20:06:40 GMT 2025
Powered by FUDForum. Page generated in 0.04632 seconds
|