Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Canvas redraw() question ...
Canvas redraw() question ... [message #459242] Thu, 04 August 2005 10:53 Go to next message
Peter is currently offline PeterFriend
Messages: 51
Registered: July 2009
Member
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 10:12 Go to previous message
Robert Bacs is currently offline Robert BacsFriend
Messages: 165
Registered: July 2009
Senior Member
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: Tue Oct 20 23:54:21 GMT 2020

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

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

Back to the top