Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [GC]Is this a bug?
[GC]Is this a bug? [message #437597] Tue, 08 June 2004 16:47 Go to next message
Eclipse UserFriend
Originally posted by: purejd.sohu.com

Hi all,
I'm using eclipse 3.0 m9 on windows 2k.
When I call GC's drawText()/drawImage() to draw a
string/image,it works well at first. But when I move some
window above it,the part of the string/image that
was covered disappears!
I don't know if it's a bug or my fault, so I need your help.
Thanks a lot.

Rong
Re: [GC]Is this a bug? [message #437600 is a reply to message #437597] Tue, 08 June 2004 17:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

You need to do this within a paint listener. Just painting on something
like that is just temporary until something covers it up. Only if done
through a paint listener will it stay around because everytime it is
re-exposed the paint listener will be called and you can then put the
stuff back.


--
Thanks, Rich Kulp

Re: [GC]Is this a bug? [message #437868 is a reply to message #437600] Fri, 11 June 2004 15:58 Go to previous messageGo to next message
Rong Tao is currently offline Rong TaoFriend
Messages: 1
Registered: July 2009
Junior Member
Thanks a lot,the window can display correctly now.
Factually, I'm new to SWT program and this question seems to be so stupid
:-) Could you give me some suggestion on how to study it,besides reading
eclipse's help and examples' code?
Thank u again.
--
Rong

"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> ??????:ca4t0a$r34$1@eclipse.org...
> You need to do this within a paint listener. Just painting on something
> like that is just temporary until something covers it up. Only if done
> through a paint listener will it stay around because everytime it is
> re-exposed the paint listener will be called and you can then put the
> stuff back.
>
>
> --
> Thanks, Rich Kulp
> 
>
Re: [GC]Is this a bug? [message #437871 is a reply to message #437868] Fri, 11 June 2004 16:28 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

When you have a question, first go to here:

http://www.eclipse.org/articles/index.html

to see if there are any articles talking about your need. There is an
article about SWT in there.

This one in particular talks about the graphics:

http://www.eclipse.org/articles/Article-SWT-graphics/SWT_gra phics.html



--
Thanks, Rich Kulp

Previous Topic:How to remove a MenuItem
Next Topic:Spinner Control
Goto Forum:
  


Current Time: Thu Apr 25 07:12:34 GMT 2024

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

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

Back to the top