Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Why MouseWheel doesn't work sometimes ?


That appears to be the correct behaviour. The inner most scrollable control that has focus will handle the mousewheel event.
If you have a list inside a scrolled composite and the list has focus, the list will handle the mousewheel event.

Duong



Arnaud De Muyser <ademuyser@xxxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

10/18/2007 11:30 AM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
platform-swt-dev@xxxxxxxxxxx
cc
Jerome Gout <jerome.gout@xxxxxxxxxx>
Subject
[platform-swt-dev] Why MouseWheel doesn't work sometimes ?






Hi !


Reproducing in this snippet () the case of our program,

I whish to know why, when focus control is on check/push or text widget on the right,

the mouse wheel events doesn't move the vertical scroll bar ?


This seems belong to secondary ScrolledComposite contained inside the one displaying

vertical scroll bar.  But as this secondary SC does not display any scroll bar,
the expected behavior (my simple way of thinking), is to forward mousewheel event to
parent's scrolledcomposite.

Do I am wrong thinking that ?


Thanks for your help !


Arnaud de MUYSER.
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

Attachment: TestMouseWheel2.java
Description: Binary data


Back to the top