draw2d not rendering when clipped on linux/gtk? [message #106098] |
Thu, 20 November 2003 12:48  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.30226 seconds