Drawing Artifacts on UI space [message #977818] |
Fri, 09 November 2012 10:58  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03275 seconds