Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » about RWT.FIXED_COLUMNS
about RWT.FIXED_COLUMNS [message #893626] Wed, 04 July 2012 21:57 Go to next message
Eclipse UserFriend
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 #893669 is a reply to message #893626] Thu, 05 July 2012 04:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
I didn't get what is the issue. Please provide the complete self-running
snippet that demonstrate the problem.
Best,
Ivan

On 7/5/2012 4:57 AM, ocean Mising name wrote:
> 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
>
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: about RWT.FIXED_COLUMNS [message #893916 is a reply to message #893669] Thu, 05 July 2012 23:03 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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/
Re: about RWT.FIXED_COLUMNS [message #893938 is a reply to message #893924] Fri, 06 July 2012 02:54 Go to previous message
Eclipse UserFriend
Yes, can not hide.
How to achieve? sample code?

Thanks a lot.

Previous Topic:Needes Plugins/Features for a WAR file
Next Topic:Integration of a RAP application and Spring managed eclipse plugin
Goto Forum:
  


Current Time: Mon Jun 30 23:50:44 EDT 2025

Powered by FUDForum. Page generated in 0.03852 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top