Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Mouse wheel event add to Main Box
icon3.gif  Mouse wheel event add to Main Box [message #1231335] Tue, 14 January 2014 11:49 Go to next message
marco giudici is currently offline marco giudici
Messages: 130
Registered: February 2013
Senior Member
Hi all,
I want add the mouse wheel event to the main box because it's scrollable, is it possible?
If yes, it's necessary add this specific listener, but exactly where?

I want manage this event in SWT application.

Thanks in advance for any help and explanation

[Updated on: Tue, 14 January 2014 14:52]

Report message to a moderator

Re: Mouse wheel event add to Main Box [message #1231662 is a reply to message #1231335] Wed, 15 January 2014 07:01 Go to previous messageGo to next message
Urs Beeli is currently offline Urs Beeli
Messages: 331
Registered: October 2012
Location: Bern, Switzerland
Senior Member
Have you tried selecting the "Scrollable" property (Advanced Properties->Behavior->Scrollable) on the MainBox?
Re: Mouse wheel event add to Main Box [message #1231682 is a reply to message #1231662] Wed, 15 January 2014 07:38 Go to previous messageGo to next message
marco giudici is currently offline marco giudici
Messages: 130
Registered: February 2013
Senior Member
Yes, of course the "Scrollable" property is checked.
index.php/fa/17242/0/

The problem is that when I start the SWT interface, the Scroll of MainBox and also of another tree field with the mouse wheel doesn't work.
For this reason I open this topic, just to understand if it's possibile add the management of this type of event.
  • Attachment: Property.JPG
    (Size: 41.72KB, Downloaded 131 times)
Re: Mouse wheel event add to Main Box [message #1237660 is a reply to message #1231682] Thu, 30 January 2014 09:12 Go to previous messageGo to next message
Matthias Nick is currently offline Matthias Nick
Messages: 178
Registered: August 2013
Senior Member
Hi Marco,
I tried it with our demo application and for me it does work.
I have a tree on the left hand side and a MainBox with "Scrollable" set to true. Both, the tree and MainBox show the scrollbars (see attached image). When I focus the tree (click on it) I can use the mousewheel for scrolling. When I focus the MainBox (click on a field for example) the mousewheel scrolls down the mainbox.

http://www.eclipse.org/forums/index.php/fa/17361/

Is this similar to your usecase?
Greetings
Matthias
  • Attachment: scroll.png
    (Size: 28.39KB, Downloaded 150 times)

[Updated on: Thu, 30 January 2014 09:12]

Report message to a moderator

Re: Mouse wheel event add to Main Box [message #1237711 is a reply to message #1237660] Thu, 30 January 2014 11:46 Go to previous messageGo to next message
marco giudici is currently offline marco giudici
Messages: 130
Registered: February 2013
Senior Member
Hi Matthias,
on my application I have a strange situation.
On the main form the scroll with mouse wheel works fine
index.php/fa/17369/0/

In this second form, where "Scrollable" property is true as in main form, the scroll with mouse wheel doesn't works
index.php/fa/17370/0/

The only difference between the two forms is that in the second I have a series of sections collapsible. May be a reason for this behavior?
Re: Mouse wheel event add to Main Box [message #1238090 is a reply to message #1237711] Fri, 31 January 2014 11:18 Go to previous messageGo to next message
Matthias Nick is currently offline Matthias Nick
Messages: 178
Registered: August 2013
Senior Member
Hi marco,

I am currently creating a demo app to reproduce the problem, I am not done but I am working on it Smile

What happens when you click in a TextField and then try to scroll?
Example:
1) Open the second form
2) Click into the field "Tint Description"
3) Is scrolling now possible?

Best regards,
Matthias
Re: Mouse wheel event add to Main Box [message #1238096 is a reply to message #1238090] Fri, 31 January 2014 11:27 Go to previous messageGo to next message
marco giudici is currently offline marco giudici
Messages: 130
Registered: February 2013
Senior Member
Hi Matthias,
I check again but on the second form, also when I click on any field, using the mouse wheel the scroll doesn't work.
Instead in the first form works.

Thanks for your effort
Re: Mouse wheel event add to Main Box [message #1238108 is a reply to message #1238096] Fri, 31 January 2014 12:11 Go to previous message
Matthias Nick is currently offline Matthias Nick
Messages: 178
Registered: August 2013
Senior Member
Hi marco,

okay that is too bad. Lets try to reproduce the problem on a common base:

I created a demo application with 2 forms: "FirstForm" and "SecondForm".

index.php/fa/17385/0/

I uploaded the project to my github account:
https://github.com/Matthias-Nick/testing
It is in the folder "scrolling"


Can you check out the project and try to reproduce the problem (add forms, groupboxes, ...)? Currently, the project is working on my machine. Once we have a setup where scrolling does not work anymore, I will try to fix it.

Is this okay for you?

Best regards,
Matthias
Previous Topic:No login dialog with BasicSecurityFilter
Next Topic:Custom Composite Fields - Scout Explorer
Goto Forum:
  


Current Time: Thu Oct 02 06:32:31 GMT 2014

Powered by FUDForum. Page generated in 0.02254 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software