Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [Text] new Text(parent, SWT.MULTI | SWT.V_SCROLL);
[Text] new Text(parent, SWT.MULTI | SWT.V_SCROLL); [message #820374] Wed, 14 March 2012 03:29 Go to next message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 102
Registered: February 2011
Senior Member
new Text(parent, SWT.MULTI | SWT.V_SCROLL); used to create a text area with vertical scrolling in RAP 1.4

1.5 nightly doesn't scroll.

Where did it go? It's a subclass of Scrollable so should support V_SCROLL and H_SCROLL
Re: [Text] new Text(parent, SWT.MULTI | SWT.V_SCROLL); [message #820473 is a reply to message #820374] Wed, 14 March 2012 06:58 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1872
Registered: July 2009
Senior Member
Hi Chris,
if it's working as expected in RAP 1.4 but not in latest nightly, it's
probably a regression. Could you open a bugzilla about this issue. What
do you mean by doesn't scroll? Vertical scrollbar is missing or it is
there but you couldn't drag it?
Best,
Ivan

On 3/14/2012 5:29 AM, Chris Fairhall wrote:
> new Text(parent, SWT.MULTI | SWT.V_SCROLL); used to create a text area
> with vertical scrolling in RAP 1.4
>
> 1.5 nightly doesn't scroll.
>
> Where did it go? It's a subclass of Scrollable so should support
> V_SCROLL and H_SCROLL
>

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: [Text] new Text(parent, SWT.MULTI | SWT.V_SCROLL); [message #820574 is a reply to message #820374] Wed, 14 March 2012 09:43 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 387
Registered: July 2009
Senior Member
Hi.

I just want to give some notes for a better technical overview.
The RAP Text widget does not "support" V_SCROLL and H_SCROLL insofar
that it is based on the html textarea element. (This was also true in
1.4.) This element always scrolls if the text doesn't fit, and shows no
scrollbars if it does fit. Its not possible to change that.

To properly support H_SCROLL and V_SCROLL, a completely new
implementation of Text would be needed. In 1.5 we did make changes to
Text, but its still based on textarea. Thats why i'm not sure how there
could be any differences between 1.4 and 1.5 regarding scrolling.

Greetings,
Tim


Am 14.03.2012 04:29, schrieb Chris Fairhall:
> new Text(parent, SWT.MULTI | SWT.V_SCROLL); used to create a text area
> with vertical scrolling in RAP 1.4
>
> 1.5 nightly doesn't scroll.
>
> Where did it go? It's a subclass of Scrollable so should support
> V_SCROLL and H_SCROLL
>

--
Tim Buschtöns

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: [Text] new Text(parent, SWT.MULTI | SWT.V_SCROLL); [message #820985 is a reply to message #820574] Wed, 14 March 2012 20:31 Go to previous messageGo to next message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 102
Registered: February 2011
Senior Member
in 1.5 nightly, the Text widget still scrolls when text does not fit like it used to, but scroll bars nolonger appear.

public class EntryPoint3 implements IEntryPoint {
	@Override
	public int createUI() {
		new Display();

		final Shell shell = new Shell(SWT.SHELL_TRIM);
		shell.setSize(200, 200);
		
		Text text = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI | SWT.WRAP);
		text.setBounds(50, 50, 100, 105);
		
		shell.setVisible(true);
		
		return 0;
	}
}


This snippet should have a vertical scrollbar visible when there is too much text to show in the widget. It doesn't. You can still scroll up and down using the up and down keys though.

Works as expected in SWT on windows and RWT 1.4
Re: [Text] new Text(parent, SWT.MULTI | SWT.V_SCROLL); [message #820988 is a reply to message #820985] Wed, 14 March 2012 20:34 Go to previous message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 102
Registered: February 2011
Senior Member
logged [bug 374312]
Re: [Text] new Text(parent, SWT.MULTI | SWT.V_SCROLL); [message #820990 is a reply to message #820574] Wed, 14 March 2012 20:31 Go to previous message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 5
Registered: July 2009
Junior Member
in 1.5 nightly, the Text widget still scrolls when text does not fit like it used to, but scroll bars nolonger appear.


public class EntryPoint3 implements IEntryPoint {
@Override
public int createUI() {
new Display();

final Shell shell = new Shell(SWT.SHELL_TRIM);
shell.setSize(200, 200);

Text text = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI | SWT.WRAP);
text.setBounds(50, 50, 100, 105);

shell.setVisible(true);

return 0;
}
}


This snippet should have a vertical scrollbar visible when there is too much text to show in the widget. It doesn't. You can still scroll up and down using the up and down keys though.

Works as expected in SWT on windows and RWT 1.4
Previous Topic:Eception in UIThread
Next Topic:Setting "ID" for TableItem
Goto Forum:
  


Current Time: Sun Dec 21 23:27:49 GMT 2014

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

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