[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Please Help: Detecting swt-composite via mouse-event


Hi Veronika,

Setting the canvas to not be enabled is a bad idea. Why are you doing this? What is the problem you are working around?

I based my code around Snippet 64 "intercept mouse events (drag a button with the mouse)", where the moveable composite's enabled()-property is set to "false" and where the mouselisteners are also registered at the parent-container of the composite (in the snippet's case, the shell itself).


All I have to accomplish is writing a calendar/scheduler which can also be found in MS Outlook or Novell's GroupWise.
These UI's, as you know, usually are displaying appointments according to a visualized timeline, while allowing the user to modify dates/times via drag % drop and resizing the appointments (usually displayed as rectangles).


So my idea was drawing a calendar like structure onto a canvas, and painting the appointments/rectangles at the specified coordinates which are based on dates/times, while giving them the ability to be moved/modified by mouse events.

Any help is appreciated deeply

Thanks

Boris