Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] GC for a Canvas, how to draw OVER children controls


There is no way to do this in SWT right now.



"Steve Vanspall" <steve@xxxxxxxxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

01/16/2005 05:17 PM

Please respond to
platform-swt-dev

To
<platform-swt-dev@xxxxxxxxxxx>
cc
Subject
Re: [platform-swt-dev] GC for a Canvas, how to draw OVER children controls





Hi,
 
sorry if this registers as another thread, something went wrong with my subscription to this email list, althought I assume that the subject testing will still recognise it and place it in the right thread.
 
Anyway,
 
I understand the the GC drawing will be clipped to mainCanvas, what I meant was is there a way to tell the GC the lines over the controls that are children of mainCanvas. Currently it draws the lines 'behind' the controls.
 
so is there a zIndex setting or something similar.
 
Regards
 
Steve
 
 
 
----- Original Message -----
 
Not currently.  All drawing is clipped to the control.
----- Original Message -----
Hi there,
 

I have succesfully implemented some code where, if I drag and drop from a label in one canvas (cnv) to one in another (cnv2), the parent canvas' (mainCanvas) PaintListener will draw a line from one label to the other.

 

so cnv1 and cnv2 are descendants of mainCanvas.

 

The problem I have, is that mainCanvas' GC draws the line behind the controls.

 

Is there a way to get the GC to draw the line over the child controls??

 

Any help would be appreciated

 

Regards

 

Steve


Back to the top