| GraphicalEditorWithFlyoutPalette & mouse wheel scrolling [message #837945] |
Fri, 06 April 2012 06:29  |
|
Hi,
I'm writing a RAP application which is a port of a PDE plugin. The aim of this application is to draw an automaton starting from its XML description.
The automaton is contained inside a GraphicalEditorWithFlyoutPalette.
The problem is that I'm able to scroll the automaton only by moving the mouse on the scroll bar and clicking on it (so the scroll bar has the focus).
I've tried different approaces:
1. to add a MouseWheelHandler to the GraphicalViewer using setProperty method
1a. setting CTRL as key
1b. setting SWT.None as key
2. to use addListener method setting SWT.MouseWheel (this constant is not defined for
RAP so I tried to use the raw value, 37)
3. to filter mouse wheel event using addFilter method of Display class
None of them works.
I will appreciate any suggestion.
Thanks a lot.
[Updated on: Fri, 06 April 2012 06:37] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01834 seconds