Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ScrolledComposite scrolling versus Canvas scrolling
ScrolledComposite scrolling versus Canvas scrolling [message #446993] Tue, 07 December 2004 14:07 Go to next message
John Austin is currently offline John AustinFriend
Messages: 34
Registered: July 2009
Member
I posted an item on the weekend in the hopes that it would attract the
attention of Veronika Irvine in Ottawa..I wasn't asking for detailed
debugging support for Vex, but included the context for reference as an
example of a substantial Eclipse editor.

What I need from the forum, is direction on whether an apparently
deep-seated problem could be connected to the reason you recommend that
people avoid ScrolledComposite.

At the core of the Vex Editor, the VexWidget class is defined as:

public class VexWidget
extends Canvas
implements IVexWidget, ISelectionProvider {

public VexWidget(Composite parent, int style) {
super(parent, style);
this.impl = new VexWidgetImpl(hostComponent);

this.setBackground(this.getDisplay().getSystemColor(SWT.COLO R_WHITE));
this.addFocusListener(this.focusListener);
this.addKeyListener(this.keyListener);
this.addMouseListener(this.mouseListener);
this.addMouseMoveListener(this.mouseMoveListener);
this.addPaintListener(this.painter);

ScrolledComposite sc = getScrolledComposite();
if (sc != null) {
addControlListener(this.controlListener);
}
}


.... }

The class is too large to include in the post and it should work
right out of the box from cvs.sourceforge.net.

The part I need help with is:

"What questions should I ask to determine whether ScrolledComposite
is the source of my grief when I edit extremely large files?"

For now I think I'll run in the debugger and trap calls to methods
that look like they would have to change to switch to Canvas.scroll().
Re: ScrolledComposite scrolling versus Canvas scrolling [message #447006 is a reply to message #446993] Tue, 07 December 2004 17:29 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See my reply in your original post. Too busy fixing bugs and adding
features to reply yesterday. Sorry ; )


"John Austin" <jwaustin@nl.rogers.com> wrote in message
news:cp4df3$la1$1@www.eclipse.org...
>I posted an item on the weekend in the hopes that it would attract the
>attention of Veronika Irvine in Ottawa..I wasn't asking for detailed
> debugging support for Vex, but included the context for reference as an
> example of a substantial Eclipse editor.
>
> What I need from the forum, is direction on whether an apparently
> deep-seated problem could be connected to the reason you recommend that
> people avoid ScrolledComposite.
>
> At the core of the Vex Editor, the VexWidget class is defined as:
>
> public class VexWidget
> extends Canvas
> implements IVexWidget, ISelectionProvider {
>
> public VexWidget(Composite parent, int style) {
> super(parent, style);
> this.impl = new VexWidgetImpl(hostComponent);
>
> this.setBackground(this.getDisplay().getSystemColor(SWT.COLO R_WHITE));
> this.addFocusListener(this.focusListener);
> this.addKeyListener(this.keyListener);
> this.addMouseListener(this.mouseListener);
> this.addMouseMoveListener(this.mouseMoveListener);
> this.addPaintListener(this.painter);
>
> ScrolledComposite sc = getScrolledComposite();
> if (sc != null) {
> addControlListener(this.controlListener);
> }
> }
>
>
> ... }
>
> The class is too large to include in the post and it should work
> right out of the box from cvs.sourceforge.net.
>
> The part I need help with is:
>
> "What questions should I ask to determine whether ScrolledComposite
> is the source of my grief when I edit extremely large files?"
>
> For now I think I'll run in the debugger and trap calls to methods
> that look like they would have to change to switch to Canvas.scroll().
Previous Topic:SWT Graphics - drawing on an image + zooming
Next Topic:table that allows only one row
Goto Forum:
  


Current Time: Tue Oct 27 07:02:45 GMT 2020

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

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

Back to the top