Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Custom cursors for moving/resizing events

8 views
Skip to first unread message

David Struck

unread,
Nov 20, 2013, 11:48:43 AM11/20/13
to metsci-...@googlegroups.com
Is it possible to use custom cursors for when the user is moving or resizing an Event by dragging it? For example, we'd like to use Cursor.MOVE_CURSOR when the user moves an Event.

Thanks,

David

Geoffrey Ulman

unread,
Nov 25, 2013, 3:58:46 PM11/25/13
to metsci-...@googlegroups.com
Glimpse is written to be agnostic to the underlying widget set (SWT, Swing, etc...). The GlimpseCanvas interface hides the details of the particular widget set being used.

If you want to attach Swing/SWT mouse listeners, or do widget set specific things like adjusting the cursor, you'll need to use the Swing/SWT specific methods of the concrete GlimpseCanvas implementation for your widget set (like NewtSwingGlimpseCanvas). For example:

NewtSwingGlimpseCanvas.setCursor( ... )
Reply all
Reply to author
Forward
0 new messages