Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with redrawing
Problem with redrawing [message #435452] Wed, 28 April 2004 06:26 Go to next message
Eclipse UserFriend
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 #435454 is a reply to message #435452] Wed, 28 April 2004 07:01 Go to previous messageGo to next message
strus is currently offline strusFriend
Messages: 113
Registered: July 2009
Senior Member
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.
Re: Problem with redrawing [message #435455 is a reply to message #435454] Wed, 28 April 2004 07:03 Go to previous messageGo to next message
strus is currently offline strusFriend
Messages: 113
Registered: July 2009
Senior Member
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.
Re: Problem with redrawing [message #435886 is a reply to message #435455] Thu, 06 May 2004 05:44 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Problem with redrawing [message #435900 is a reply to message #435886] Thu, 06 May 2004 16:48 Go to previous message
strus is currently offline strusFriend
Messages: 113
Registered: July 2009
Senior Member
I solve the blinks probem by adding SWT_NO_BACKGROUND ... in the canvas
style.
Look one more time to my last post.
a+

Michael W a écrit :
> 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.
>
>
>
Previous Topic:How to Diable "Back" button on a Wizard Page
Next Topic:How is the Welcome Page rendered?
Goto Forum:
  


Current Time: Fri Apr 26 05:27:41 GMT 2024

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

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

Back to the top