Skip to main content



      Home
Home » Eclipse Projects » GEF » draw2d not rendering when clipped on linux/gtk?
draw2d not rendering when clipped on linux/gtk? [message #106098] Thu, 20 November 2003 12:48 Go to next message
Eclipse UserFriend
Originally posted by: pmac.nospam.tensilica.nospam.com

Eclispe 2.1.2 with GEF for 2.1.2

I am using draw2d to do some layered rectangle drawing in a canvas in one
page of a multi-page editor. The outer control in the page is a
ScrolledComposite, and inside that down a level or two is the Canvas with
the LightweightSystem inside it.

On linux/gtk, the draw2d figures only render if the whole enclosing canvas
is visible. i.e. if the page size is limited so the outer scrolledcomposite
is clipping, the canvas, then the canvas is blank. If I resize the page so
the canvas is fully visible, then all the draw2d content is rendered. Make
it smaller ... and poof it all vanishes again.

On win32, all behaves as I would expect - it clips and renders nicely.

Is this an SWT/GTK problem? or am I just "lucky" on win32 and need to recode
some other way to make it portable

TIA

PMac
Re: draw2d not rendering when clipped on linux/gtk? [message #106112 is a reply to message #106098] Thu, 20 November 2003 13:15 Go to previous message
Eclipse UserFriend
Originally posted by: pmac.nospam.tensilica.nospam.com

Just tested on solaris/motif : also works fine.

So, an swt/gtk bug maybe? Any suggestions of a workaround I can try?

TIA

PMac

"Pete MacLiesh" <pmac@nospam.tensilica.nospam.com> wrote in message
news:bpiulp$n5l$1@eclipse.org...
> Eclispe 2.1.2 with GEF for 2.1.2
>
> I am using draw2d to do some layered rectangle drawing in a canvas in one
> page of a multi-page editor. The outer control in the page is a
> ScrolledComposite, and inside that down a level or two is the Canvas with
> the LightweightSystem inside it.
>
> On linux/gtk, the draw2d figures only render if the whole enclosing canvas
> is visible. i.e. if the page size is limited so the outer
scrolledcomposite
> is clipping, the canvas, then the canvas is blank. If I resize the page so
> the canvas is fully visible, then all the draw2d content is rendered. Make
> it smaller ... and poof it all vanishes again.
>
> On win32, all behaves as I would expect - it clips and renders nicely.
>
> Is this an SWT/GTK problem? or am I just "lucky" on win32 and need to
recode
> some other way to make it portable
>
> TIA
>
> PMac
>
>
Previous Topic:Alternative palette viewer?
Next Topic:Switch to default tool in palette
Goto Forum:
  


Current Time: Tue Jul 22 14:50:27 EDT 2025

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

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

Back to the top