[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Mouse scroll leads to different event raised on windows and MAC platform
|
Just to confirm, your table is custom-built (for example, you're drawing
everything on a Canvas), and you have added a Selection listener to its
scrollbar in order to see its detail field, right? If so, yout table must
be listening for SWT.MouseWheel events in order to know when to scroll. Do
you see a platform difference when these events comes in?
If I am not understanding correctly then you will need to clarify. If
possible, the best clarification is a code snippet that demonstrates the
problem (snippet template:
http://www.eclipse.org/swt/faq.php#whatisasnippet ).
Grant
"Wang Wei" <wangwcdl@xxxxxxxxxx> wrote in message
news:ea42412e66c75424e59763d3444f089d$1@xxxxxxxxxxxxxxxxxx
> We've created a custom table control widget and now it has been adopted by
> some consumers to develop applications. We find that on MAC platform, if
> the table has more data than it could display, vertical scrollbar is
> visible. When I use mouse wheel to scroll down, the content of the table
> scrolls very quickly. Through debugging, I find that detail value of
> SelectionEvent is SWT.PAGE_DOWN, while on Windows platform, event detail
> value is SWT.ARROW_DOWN. As a result, the behaviour of scrolling is fluent
> and acceptable on Windows.
>
> I wanna ask whether this is the design on MAC platform(SelectionEvent
> detail is SWT.PAGE_DOWN, not ARROW_DOWN). If it's not, I think this is a
> bug of SWT on MAC platform.
>