Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » drawing a selection frame in a composite
drawing a selection frame in a composite [message #456708] Tue, 07 June 2005 12:18 Go to next message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
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
Re: drawing a selection frame in a composite [message #456986 is a reply to message #456708] Mon, 13 June 2005 20:42 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Have you investigated the class Tracker? This class is used to do rubber
banding.

"Yves Harms" <user@domain.invalid> wrote in message
news:d843ce$klb$1@news.eclipse.org...
> 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
Re: drawing a selection frame in a composite [message #457152 is a reply to message #456986] Mon, 20 June 2005 07:01 Go to previous message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
That tip solved my problem.

Thank you.

> Have you investigated the class Tracker? This class is used to do rubber
> banding.
Previous Topic:Use Jface on PocketPC
Next Topic:Creating a tree....not from root
Goto Forum:
  


Current Time: Fri Apr 26 10:44:25 GMT 2024

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

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

Back to the top