Canvas redraw() question ... [message #459242] |
Thu, 04 August 2005 06:53  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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_
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02919 seconds