Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Canvas redraw() question ...
Canvas redraw() question ... [message #459242] Thu, 04 August 2005 06:53 Go to next message
Eclipse UserFriend
Hi,

i've a little troubles with my SWT application. I've a little window where
i'm trying to display images which are dynamic loaded ...
Everything works fine, but only for two times. It means, i do the request to
display a image on canvas, then i do redraw and image is updated. Whenn i do
the same next time it works also, but on next time it doesn't do redraw ?
I've added a PaintListener to do the image drawing ... and so i can see that
whenn i call the redraw() method on third time nothing happens.
I must resize the windows with mouse to update the image (then it calls self
the redraw() method).
I tred everythin what i found on internet but without result ...

Any idea ? Please help ...

Thanks peter_
Re: Canvas redraw() question ... [message #459312 is a reply to message #459242] Fri, 05 August 2005 06:12 Go to previous message
Eclipse UserFriend
Hi,

Try to call the update() method, after redraw().

Regards,
Boby

"Peter" <peter.daransky@roha.at> wrote in message
news:dcsrrh$vj7$1@news.eclipse.org...
> Hi,
>
> i've a little troubles with my SWT application. I've a little window where
> i'm trying to display images which are dynamic loaded ...
> Everything works fine, but only for two times. It means, i do the request
to
> display a image on canvas, then i do redraw and image is updated. Whenn i
do
> the same next time it works also, but on next time it doesn't do redraw ?
> I've added a PaintListener to do the image drawing ... and so i can see
that
> whenn i call the redraw() method on third time nothing happens.
> I must resize the windows with mouse to update the image (then it calls
self
> the redraw() method).
> I tred everythin what i found on internet but without result ...
>
> Any idea ? Please help ...
>
> Thanks peter_
>
>
>
Previous Topic:"Selected effect" on Label
Next Topic:SWT key code
Goto Forum:
  


Current Time: Fri Jul 04 15:06:19 EDT 2025

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

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

Back to the top