Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » vex.sourceforge.net - scrolling problem due to ScrolledComposite ?
vex.sourceforge.net - scrolling problem due to ScrolledComposite ? [message #446879] Sat, 04 December 2004 20:48 Go to next message
John Austin is currently offline John AustinFriend
Messages: 34
Registered: July 2009
Member
I have been using the Visual Editor for XML (vex.sourceforge.net) and
have noticed problems scrolling through large documents. The problem
manifests itself in different forms on different platforms.

+ On Linux (gtk) positioning with the mouse in very large
documents causes the insertion point cursor to warp backwards
by fairly large displacements

+ On Windows/XP documents are truncated. Nothing displays after
a certain displacement that looks like there is some artificial
limit to the size of the Canvas area.

+ Haven't tested on Win 98 recently. No access to Mac but I recall
that Vex doesn't run on Mac.

On browsing this newsgroup I have noticed several recommendations from
Veronika Irvine who suggests that we should be using Canvas.scroll
rather than scrolling with getScrolledComposite. AT least one of these
answers was in response to a question about size-sensitivity of a
scrolling operation.

VEX uses getScrolledComposite to gain acces to the scrollbars associated
with the VexWidget class that contains the editor.

I would really appreciate a little help in determining whether the Vex
problem is due to the use of the ScrolledComposite form of scrolling.
I could do this if I had a better explanation than I have seen.

Patient: "Doctor, it hurts when I do this"
Groucho: "Then don't do that."

Vex is an Open Source project that implements a Visual Editor for XML
that works a bit like the XMLMind XML Editor (XXE) in that it uses
CSS for styling but it is an XML plugin that should be an excellent
tool for Eclipse users.
Re: vex.sourceforge.net - scrolling problem due to ScrolledComposite ? [message #446923 is a reply to message #446879] Mon, 06 December 2004 14:25 Go to previous messageGo to next message
John Austin is currently offline John AustinFriend
Messages: 34
Registered: July 2009
Member
John Austin wrote:
> I have been using the Visual Editor for XML (vex.sourceforge.net) and
> have noticed problems scrolling through large documents. The problem
> manifests itself in different forms on different platforms.

I should have stated clearly that VEX is an Eclipse plugin and that
the project is hosted at Sourceforge.
Re: vex.sourceforge.net - scrolling problem due to ScrolledComposite ? [message #447005 is a reply to message #446879] Tue, 07 December 2004 17:26 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
In a ScrolledComposite the content is sized to its preferred size which may
be very large even though just part of it is showing. There are limitations
on how large a control can be.

For example, on Windows, if you set the size to be Point (Integer.MAX_VALUE,
Integer.MAX_VALUE) and then query the actual size, you will get Point
(32767, 32767).

If you are writing your own text widget or image viewer widget, you should
use Canvas and manage the scrollbars without having the content be the full
size.

In addition, Canvas.scroll makes use of operating system/graphics card
features to be faster and smoother.

"John Austin" <jwaustin@nl.rogers.com> wrote in message
news:cot7qf$kas$1@www.eclipse.org...
>I have been using the Visual Editor for XML (vex.sourceforge.net) and
> have noticed problems scrolling through large documents. The problem
> manifests itself in different forms on different platforms.
>
> + On Linux (gtk) positioning with the mouse in very large
> documents causes the insertion point cursor to warp backwards
> by fairly large displacements
>
> + On Windows/XP documents are truncated. Nothing displays after
> a certain displacement that looks like there is some artificial
> limit to the size of the Canvas area.
>
> + Haven't tested on Win 98 recently. No access to Mac but I recall
> that Vex doesn't run on Mac.
>
> On browsing this newsgroup I have noticed several recommendations from
> Veronika Irvine who suggests that we should be using Canvas.scroll
> rather than scrolling with getScrolledComposite. AT least one of these
> answers was in response to a question about size-sensitivity of a
> scrolling operation.
>
> VEX uses getScrolledComposite to gain acces to the scrollbars associated
> with the VexWidget class that contains the editor.
>
> I would really appreciate a little help in determining whether the Vex
> problem is due to the use of the ScrolledComposite form of scrolling.
> I could do this if I had a better explanation than I have seen.
>
> Patient: "Doctor, it hurts when I do this"
> Groucho: "Then don't do that."
>
> Vex is an Open Source project that implements a Visual Editor for XML
> that works a bit like the XMLMind XML Editor (XXE) in that it uses
> CSS for styling but it is an XML plugin that should be an excellent
> tool for Eclipse users.
>
Re: vex.sourceforge.net - scrolling problem due to ScrolledComposite ? [message #447624 is a reply to message #447005] Wed, 15 December 2004 13:12 Go to previous messageGo to next message
John Austin is currently offline John AustinFriend
Messages: 34
Registered: July 2009
Member
I am very pleased to report that I passed your remarks on to the
developer and he checked in a successful fix for this problem
a few days ago. VEX now passes a new level of stress-test and
is useable with documents as large as the Linux Device Drivers
book at oreilly.com

Now we can get on with adding features such as filling out VEX's
CSS support and ease of use.

Veronika Irvine wrote:
> In a ScrolledComposite the content is sized to its preferred size which may
> be very large even though just part of it is showing. There are limitations
> on how large a control can be.
>
> For example, on Windows, if you set the size to be Point (Integer.MAX_VALUE,
> Integer.MAX_VALUE) and then query the actual size, you will get Point
> (32767, 32767).
>
> If you are writing your own text widget or image viewer widget, you should
> use Canvas and manage the scrollbars without having the content be the full
> size.
>
> In addition, Canvas.scroll makes use of operating system/graphics card
> features to be faster and smoother.
>
> "John Austin" <jwaustin@nl.rogers.com> wrote in message
> news:cot7qf$kas$1@www.eclipse.org...
>
>>I have been using the Visual Editor for XML (vex.sourceforge.net) and
>>have noticed problems scrolling through large documents. The problem
>>manifests itself in different forms on different platforms.>
Re: vex.sourceforge.net - scrolling problem due to ScrolledComposite ? [message #449911 is a reply to message #446879] Mon, 31 January 2005 02:53 Go to previous message
Ed Burnette is currently offline Ed BurnetteFriend
Messages: 279
Registered: July 2009
Senior Member
I could be wrong but I don't think Vex can be licensed and distributed the
way it is. It says it's an LGPL program, but the download bundles Eclipse
code which is CPL/EPL. The two licenses are incompatible. I see you're
listed as one of the developers. Would it be possible to release Vex under
CPL/EPL instead, or a compatible license like Apache? These would also
ensure it's always "free to use, modify, and re-distribute" as it says on
the http://vex.sf.net web site but would allow more flexibility in the
environments where it could be used.

--
Ed Burnette
www.eclipsepowered.org

"John Austin" <jwaustin@nl.rogers.com> wrote in message
news:cot7qf$kas$1@www.eclipse.org...
Vex is an Open Source project that implements a Visual Editor for XML
that works a bit like the XMLMind XML Editor (XXE) in that it uses
CSS for styling but it is an XML plugin that should be an excellent
tool for Eclipse users.
Previous Topic:[ANN] v1.02 - SWT Calendar Widgets with DatePicker
Next Topic:flexible space between menus
Goto Forum:
  


Current Time: Fri Apr 26 21:29:31 GMT 2024

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

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

Back to the top