[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: drawing a selection frame in a composite

Have you investigated the class Tracker?  This class is used to do rubber
banding.

"Yves Harms" <user@xxxxxxxxxxxxxx> wrote in message
news:d843ce$klb$1@xxxxxxxxxxxxxxxxxxx
> How can I draw a selection frame in a composite ?
>
> What I'm trying to do:
> I have a composite containing controls. When pressing down the left
> mouse button and moving the mouse a selection frame should be displayed
> (like in Windows explorer).
>
> Problems:
> 1. Acording to a statement from Steve Northover (from early 2004) it is
> not possible to draw onto the child  controls.
>
> 2. I can't get the mouseevents when the mouse is above a children. The
> events are delivered to the children in that case.
>
> Any suggesstions ?
>
> Regards,
> Yves