Problem with redrawing [message #435452] |
Wed, 28 April 2004 06:26 |
Eclipse User |
|
|
|
Originally posted by: kodiakmech.hotmail.com
Hi folks,
I'm writing a GUI currently that requires a graph, so I'm drawing it on a
canvas. Unfortunately I'm having problem with it not redrawing after the
window is deiconified. My main (and only) shell has a control listener
with all the appropriate methods, and I know they're executing when I
restore the window, but they don't seem to work.
Any advice would be greatly appreciated!
Cheers.
|
|
|
|
|
Re: Problem with redrawing [message #435886 is a reply to message #435455] |
Thu, 06 May 2004 05:44 |
Eclipse User |
|
|
|
Originally posted by: kodiakmech.hotmail.com
What do you mean by blicks?
I can tell you it flickers less...before I had it redrawing when the shell
was moved (in case the user moves the shell partly off the screen) so it
flickered when it was dragged about.
Thank a bunch for the help! It works properly, and is much neater now.
strus wrote:
> Can you please tell me if when doing this your graph blicks more ?
> strus wrote:
> > Look at my post "Camvas?GC redraw issue"
> > In fact you have to add to your camnavs a PaintListener and make all your
> > drwaing in it, and when you want to refresh the canvas, just call
> > canvas.redraw()
> > a+
> > Michael W wrote:
> > > Hi folks,
> > > I'm writing a GUI currently that requires a graph, so I'm drawing it on a
> > > canvas. Unfortunately I'm having problem with it not redrawing after the
> > > window is deiconified. My main (and only) shell has a control listener
> > > with all the appropriate methods, and I know they're executing when I
> > > restore the window, but they don't seem to work.
> > > Any advice would be greatly appreciated!
> > > Cheers.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03048 seconds