Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Drawing Artifacts on UI space(Windows 7 64-bit)
Drawing Artifacts on UI space [message #977818] Fri, 09 November 2012 10:58 Go to next message
Eclipse UserFriend
Hi there,

so I make a Shell and put a Group inside
in that group I create a SashForm
in the SashForm there are 2 Composites
each of those has a Canvas

so thats how it looks on start-up:
pokit.org/get/?86960fb8507a61080e1aa1f7990ae018.jpg

however after drawing around the Sash line to the left, back to the right and back to the middle-ish position (pretty much getting the first artifacts when pulling it a bit to the left and then back to the right, on the space it covered before there would now be artifacts):
pokit.org/get/?69a0964b71d2e0e07b6536036c5c4f26.jpg
Re: Drawing Artifacts on UI space [message #985655 is a reply to message #977818] Thu, 15 November 2012 10:49 Go to previous message
Eclipse UserFriend
My guess is that you are drawing the images on your two Canvases
somewhere other than in SWT.Paint listeners. These are where draws need
to happen in order to respond to damaged regions, etc. For an example
of this see the Canvas snippets at
http://www.eclipse.org/swt/snippets/#canvas .

If this does not help then you'll need to provide a simple snippet that
shows your current implementation, template:
http://www.eclipse.org/swt/faq.php#whatisasnippet .

Grant


On 11/9/2012 1:02 PM, Lena Sommer wrote:
> Hi there,
>
> so I make a Shell and put a Group inside
> in that group I create a SashForm
> in the SashForm there are 2 Composites
> each of those has a Canvas
>
> so thats how it looks on start-up:
> pokit.org/get/?86960fb8507a61080e1aa1f7990ae018.jpg
>
> however after drawing around the Sash line to the left, back to the
> right and back to the middle-ish position (pretty much getting the first
> artifacts when pulling it a bit to the left and then back to the right,
> on the space it covered before there would now be artifacts):
> pokit.org/get/?69a0964b71d2e0e07b6536036c5c4f26.jpg
Previous Topic:SWT DB Exception
Next Topic:Problem using multiple StyleRange for my StyledText
Goto Forum:
  


Current Time: Wed Jul 23 07:57:30 EDT 2025

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

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

Back to the top