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 ?


I tried list -- it appears to consume the mousewheel events and not pass the parent.

Duong



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

10/19/2007 04:42 AM

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

To
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
cc
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>, Jerome Gout <jerome.gout@xxxxxxxxxx>, platform-swt-dev-bounces@xxxxxxxxxxx
Subject
Re: [platform-swt-dev] Why MouseWheel doesn't work sometimes ?






I'm agree with that point of view also.


If fact there is just a little difference in my snippet,

that is the inner ScrolledComposite does not display scrollbars (no need),

In that case, I think mousewheel events should be passed to its parents,

making the outer scrolledcomposite to scroll.


What is the expected behaviour for swt widget ?

In other words, can we think this is an issue ?


Thanks for your help.


Arnaud.



Jim White <jim@xxxxxxxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

10/18/2007 11:07 PM

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

To
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
cc
Jerome Gout/France/IBM@IBMFR
Subject
Re: [platform-swt-dev] Why MouseWheel doesn't work sometimes ?







The nicest behavior is when a scrollable control is at a limit then it
passes the scroll events for that direction on to it's parent.

Jim

Duong Nguyen wrote:

> 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

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


Back to the top