How to use Mouse Wheel Events

Hello Everyone
I am using Datagrid in my Canvas.
I use mouse wheel to scroll the datagrid. But in one scroll
through that wheel make the more than 4 rows to be scroll.
So Now my requirement is to control the delta value of mouse
wheel event and how to use that with my datagrid so that i will
able to scroll one row through mouse wheel scroller.
Thanks

please give me some suggestion around it.
I want to scroll one row of datagrid with per mousewheel
scroll. I am not getting how to use the scrollMouseWheelMultiplier
property of the IConfiguration class because i am not able to
create the object of this class.
I am using the Flex 3.0 and flash 9 version.
please help me out around this.

Similar Messages

  • How to fire mouse wheel events to parent container?

    Hi,
    When I create a JPanel (let's say jParent) inside a JScrollPane and this JPanel is larger than the current viewport I can use my mouse wheel to scroll the JPanel's containt without coding anything about that.
    But if I add another JPanel-derived component (let's say jChild) to the first JPanel, mouse wheel events are not received by the first JPanel when the mouse is over the new added child JPanel.
    How can I forward child's mouse wheel events to the first JPanel?
    If I use:
    jChild.addMouseWheelListener(jParent)I must implement a mouseWheelMoved() method in jParent that requires some code to work while it was doing it byitself before...
    Thanks in advance for any help :-)
    Regards,
    Lara.

    you have a mouseWheelListener added to jChild?
    if so, in the mouseWheelMoved code include this line
    jParent.dispatchEvent(mouseWheelEvent);//or to the scrollpane

  • How to remap mouse wheel in single application?

    Hello,
    I want to achieve simple thing - control audio in Smplayer using mouse wheel. The tricky part is that I need to control the master volume on my AV receiver because the audio in videos is played as bitstream (DTS/AC3 over SPDIF). I'm able to modify the mouse wheel actions in mplayer but unfortunatelly Smplayer doesn't allow such remapping: http://smplayer.sourceforge.net/forum/v … f=2&t=6077
    I already use xbindkeys with xvkbd for application specific remapping of both keyboard and mouse. I can remap the wheel for Smplayer window but I'm unable to figure out how to make sure the wheel will work for other applications as well - I'm just unable to simulate mouse wheel action for applications other than Smplayer. (Or is there any other way how to not modify the button for other applications?)
    If I try only simulating the wheel, it doesn't work...
    # .xbindkeysrc
    "xdotool click 4"
    m:0x0 + b:4
    # or
    "xvkbd -text "\m4""
    m:0x0 + b:4
    However if I add "sleep 0.2" before xvkbd or xdotool, it works (but this is unacceptable delay for me). Also if I try to simulate wheel on keyboard press, it works even without the sleep.
    Any help or suggestion?

    not really.. sorry
    Kunal Mittal

  • Mouse wheel event coordinates issue in LV2013

    I realized some unexpected behavior when using the mouse wheel event of an XYGraph:
    The event contains the mouse coordinates which should be relative to the origin of the pane according to the LabVIEW help (see Mouse Wheel (Control Event)). In my case these coordinates are shifted. At the same time, the coordinates returned by the Mouse Move and Mouse Down events are correct. I think the Mouse Move, Mouse Down and Mouse Wheel Event coords should all be the same, i.e. relative to the owning pane's origin? The graph is in a window divided by splitters. I am using LabVIEW 2013 Professional Development System.

    Hi maxicon,
    I tried to reproduce your described behavior - It works as expected (see the attached VI).
    Please try to reproduce the issue again with the attached VI.
    1. Move the mouse and see coords changing.
    2. Operate the mouse wheel and see the coords are the same.
    P.S. Zero-coordinates are marked in the frontpanel:
    Kind regards,
    Heinz
    Attachments:
    Mouse Wheel Coords.vi ‏10 KB

  • Mouse wheel events are being caught by Photoshop document

    I'm using CSXSWindowedApplication.
    If you create any document in Photoshop, then zoom into it, so it takes more space than visible screen area and then open a CS Extension panel - the mouse wheel event is being caught by Photoshop and when you're rolling it, Photoshop moves document up and down, instead. mouseWheel events don't reach neither WindowedApplication nor any control inside of it.
    This only happens in Photoshop.
    Are there any workarounds?
    Thank you!

    Interesting. I've' not played with mouse wheel events. I'll have a look at it.
    Thanks
    Bob

  • JWindow blocking mouse wheel event?

    I have created a custom JPanel that acts as a container for another custom component that needs to receive mouse wheel events. When I place the custom JPanel in a JWindow the mouse wheel events do not get invoked, all though other mouse events work just fine. If I place the JPanel in a JFrame the mouse wheel events are invoked just fine (along with other mouse events).
    To keep things simple the JPanel handles the mouse listeners. Any idea why it would work when in a JFrame but not a JWindow?
    Edited by: skip1899 on Sep 21, 2009 7:20 AM

    The below sample code exhibits the behavior I am talking about on my system (1.6.0_16 on XP). Does it work for you? Is there something I am missing?
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseWheelEvent;
    import java.awt.event.MouseWheelListener;
    import javax.swing.JFrame;
    import javax.swing.JWindow;
    public class TestWindow extends JWindow implements
       MouseWheelListener,MouseListener {
         public TestWindow() {
              setSize(200,200);
              addMouseWheelListener(this);
              addMouseListener(this);
      public static void main(String args[]) {
           JFrame  frame = new JFrame();
           frame.setSize(300,300);
           frame.setVisible(true);
           TestWindow win = new TestWindow();
           win.setVisible(true);
    public void mouseWheelMoved(MouseWheelEvent e) {
         System.out.println("Mouse Wheel Moved!");
    public void mouseClicked(MouseEvent arg0) {
         System.out.println("Mouse Clicked!");
    public void mouseEntered(MouseEvent arg0) {
         System.out.println("Mouse Entered!");
    public void mouseExited(MouseEvent arg0) {
         System.out.println("Mouse Exited!");     
    public void mousePressed(MouseEvent arg0) {
         System.out.println("Mouse Pressed!");     
    public void mouseReleased(MouseEvent arg0) {
         System.out.println("Mouse Release!");
     

  • Mouse wheel events aren't caught in browser

    Hello.
    I developed an applet with NetBeans 6.5 with mouse wheel zooming. In applet viewer everything works fine, but when I start applet in page in browser (I tried Firefox 3.0.6, MS IE 6.0, MS IE 7.0), no mouse wheel events (neither scrolling) are caught by applet.
    Any ideas?
    Thanks.

    The reason behind this is: When applet is run on web browser, the applet window does not get focus. If you can grab the focus somehow, mouse wheel events will work fine. However, this works fine in applet viewer and in older versions of JDK. This is broken in JDK 1.6 and already fixed in JDK 1.7. Please have a look into this bug:
    [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6516675|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6516675]
    If you run following applet in your browser you will see mouse wheel events in action with JDK1.6:
    [In case it does not work, click on 'Click Me' button and try]
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    * @author mrityunjoy_saha
    public class TestApplet extends JApplet {
        public void init() {
             setLayout(new BorderLayout());
            XPane xPane = new XPane();
            //xPane.requestFocus();
            JScrollPane pane = new JScrollPane(xPane);
            //add(new JButton("Click Me"), BorderLayout.NORTH);
            add(pane, BorderLayout.CENTER);
        class XPane extends JPanel {
         private JLabel jLabel1;
            public XPane() {
                jLabel1 = new javax.swing.JLabel();
                addMouseWheelListener(new java.awt.event.MouseWheelListener() {
                    public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
                        formMouseWheelMoved(evt);
                jLabel1.setText("Mouse Wheel Info...");
                   add(jLabel1);
            private void formMouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
                jLabel1.setText(String.valueOf(evt.paramString()));
    }Thanks,
    Mrityunjoy

  • How i use value signaling Event?

    how i use Value signaling event by labview?
    can you send me example?

    Wiring a value to Value(signaling) is like having a user click a button. Here is an example.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Trigger_Other_Event[2].vi ‏156 KB

  • How to use the PROGRESS Event?

    Can someone explain to me how to use the PROGRESS event, i looked at the docs but it never helped me?
    I want to use it to display the prgress of downloading data from a API, its a URL event. But i was told i can do this via a PROGREE Event

    copy and paste the trace output from:
    import flash.events.ProgressEvent;
    //var facebookAPI:String = "https://graph.facebook.com/ginorea1/feed?access_token=277830088900615|2.AQDUBMBocIw_QcqE.3600.1313856000.0-100001000396080|5bXT8Cj0OUxNpr7y NeqTsJfwADg";//
    var facebookAPI:String = "https://graph.facebook.com/100001000396080/statuses?access_token=14563 4995501895|2.AQAKdU4pcsdMmmBO.3600.1313859600.0-100001000396080|7uzAMoRdsg5kXLjc exS5bVaPhag";
    var loader:URLLoader = new URLLoader(new URLRequest(facebookAPI));
    loader.addEventListener(Event.COMPLETE, loadComplete);
    loader.addEventListener(ProgresEvent.PROGRESS,loadProgress);
    function loadProgress(e:ProgressEvent):void
    trace(e.bytesLoaded,e.bytesTotal);
    progress_txt.text = String(Math.floor((e.bytesLoaded/e.bytesTotal)*100));
    function loadComplete(e:Event):void{
    processData(e.target.data);
    function processData(data:String):void
    var facebookFeed:Array = JSON.decode(data).data as Array;
    for (var i:uint, feedCount:uint = 10; i < feedCount; i++)
    var tf2:TextField=new TextField();
    feed1.text = facebookFeed[i].message;
    feed2.text = facebookFeed[2].message;
    feed3.text = facebookFeed[3].message;
    feed4.text = facebookFeed[4].message;
    feed5.text = facebookFeed[5].message;
    feed6.text = facebookFeed[6].message;
    feed7.text = facebookFeed[7].message;
    feed8.text = facebookFeed[8].message;
    feed9.text = facebookFeed[9].message;
    feed10.text = facebookFeed[10].message;
    stop();

  • Use Mouse Wheel in man/less

    I can scroll with the mouse wheel in xterm when I use standard command output and whatnot, but I can't figure out how to scroll through man pages with the scroll wheel.  Thoughts?
    Last edited by MarCustomized (2008-11-06 03:43:58)

    I just spent 20 minutes digging in the manuals for urxvt and lesskey because I realized I'd also like something like this. The bad news it, it isn't going to (easily) happen without patching less (or simply using another pager; most and mcview are good). The rest of this post is technical detail you probably don't need unless you're more persistent than I am.
    Xterm-compatible terminals don't send mouse events by default. That can be worked around by sending the appropriate control sequences ('\e[?9h' and '\e[?9l') before and after (respectively) running less. A quick shell function could automate this. The larger problem is that there's no way to get just the button pressed: it also sends the coordinates of the pointer at the time of the click. You can tell less to scroll based on events by entering the appropriate sequences in your ~/.lesskey file and running lesskey (see `man lesskey`). As these sequences include the coordinates, you would need to have a line for every permutation. Without poking around the source I don't even know if less can handle that many bindings.

  • Switch between desktops using mouse wheel

    Just a simple question - is there a possibility to switch desktop with use of the mouse wheel on the desktop background? I know it is possible in XFCE, but how about KDE or GNOME?
    Why it is important to me - I have simplified changing desktops by setting a 5 pixel margin on the bottom and the right of the screen, so there is always desktop background visible. To switch desktop I simply move mouse to the edge of the screen and scroll - simple, fast and efficient. And funny - this is the main thing that binds me to XFCE, even though my computer is fast enough to handle KDE4 .
    Some time ago I have installed GNOME, and later KDE4.1, and tried to find such feature, but I did not succeed unfortunately, even though I spend some time over the documentation and the settings panels. Currently with the introducing KDE4.2 and nvidia-180 driver, which improves 2D graphics somewhat (i.eg. gtkperf gives now 6.5 sec instead of 9.5 that it used to be before upgrade) I'm interested in switching to KDE. Can anyone help me?
    P.S. Sorry fo my english
    Last edited by Devastator (2009-01-17 11:16:10)

    Sure, with compiz you can do a lot more than this . I've installed KDE4 again, but cannot get it to switch desktops the way I wanted. Scroll over pager works on every DE, though it requires precise mouse aiming over the pager. In XFCE I don't have to aim - just move the mouse to the side of the screen (where I have margin set, so desktop is available there) and scroll.
    Alt+scroll requires additional movement, which is annoying when for example I do things, that don't require keyboard use (like composing the playlist, browsing the web, changing the GTK2 themes and so on ). I like minimizing things to do to achieve the goal. Therefore I also use cairo-dock, which removed additional mouse click (for raising the menu) when opening the most used applications...
    A funny and I think useful feature I found in KDE4 is action bound to scroll over the window titlebar - it moves the window and the user to the next desktop .
    Last edited by Devastator (2009-01-19 12:50:07)

  • SWF in iFrame - How to get mouse wheel to work

    I have been searching for a solution to this for a few days
    without any luck. I was hoping someone here may have come across
    this problem and know of a solution, or know if it just is not
    possible.
    I have a static page which consists of an iframe, picture and
    a div with some links. The image is an image map and set to load
    all links within the iframe. The flash itself is a 360 degree
    panoramic view with hotspots (links) within the file that also
    point to other pages. My issue is that the mouse wheel scroll is
    supposed to be a zoom in/out feature, which work with the flash
    file and full screen view. However, when the file is loaded within
    the iframe, the scroll wheel on the mouse will only scroll the page
    and will not interact with the flash file at all.
    The problem seems to be with the following browsers (PC):
    Chrome 0.4
    Opera 9.5
    Firefox 3.0
    The zoom works in IE6, although the page does scroll with it.
    When I disabled the page from scrolling (see index2.html) the zoom
    stops working. This is probably due to the code used to disable the
    mouse. I really need to try to get the mouse wheel to zoom in
    FireFox 3 though. The large majority of our visitors are PC users
    with FireFox 3 or IE 7, so these are the two most important
    browsers to have working.
    The pages are still currently under development but examples
    are online here:
    http://www.utoledo.edu/campus/virtualtour/maincampus/index.html
    -Normal page
    http://www.utoledo.edu/campus/virtualtour/maincampus/index2.html
    -Page with scrolling disabled
    Does anyone have any ideas for a possible solution? Thanks
    for taking the time to help.

    As far as I know,there is no facility for detecting mouse scrolling wheel in JDK 1.3.
    Check it in the later releases of JDK.

  • Smartforms, how to use control break events

    Please help with this requirement.
    Purchase Docu No.111
    Pur Item No       Mat no       Quantity 
    1                        2356      2000
    2                     1256      2000
    3                     8556      2000
    Purchase Docu No.112
    Pur Item No    Mat no    Quantity 
    1                      9656      2000
    2                      7356      2000
    3                      1356      2000
    Purchase Docu No.113
    Pur Item No    Mat no    Quantity 
    1                      5356      2000
    2                      8356      2000
    This i have to design for the smartform.
    1 header data then its item data.
    like is Script i can call the WIndow elements using control break events in the driver prog but how to get this kind of output in Smartforms.???????
    Thanks

    I dont want trigger new page.
    In the same page i want like this
    I have purchase docu data in only 1 internal table.
    So, for every new VBELN, under this i want its corresponding item details.
    I have created the command node for the main window with 2 rows, in the 1st row i am giving VBELN and in the 2nd row i am giving in item details like item no, matnr etc etc and in the condition its askng Field name and Comparison Value.
    How shold i give condition.??????
    Thanks
    Edited by: Jalaaluddin Syed on May 1, 2008 5:03 PM

  • How to use training and event functionality in  ESS  BP  in  ep 7.0   ?

    Hi all,
            We are using 
    1). sap portal 7.0  sp 9  and
    2). Using back end  ECC 6.0    
    3).  And using  Ess business package 
    Business Package for Employee Self-Service (mySAP ERP)   release 1.0
      The business package doesnot contain any  training and events module iviews.
    We want to use training and event management iviews on the portal.
    The document for this business package says that  to use  training and event management iviews  we should install   Sap  Learning solutions 
    I want to know?
    1.  How can we use training and event management iviews without  using Learning solutions?
    2. What is actually Learning solutions is  a seperate module  or it is the part of  Sap HR module?
    Please guide me..
    Rajendra.

    Rajendra,
    Have a look at SAP Note 870126.
    Here is a snippet:
    <i>The following international ESS applications based on Standalone ITS have been or will be converted to the integrated ITS Version 6.40, and can still be used with mySAP ERP 2005. You can integrate these applications using ESS Homepage Customizing if required:
    International ESS Services available on the integrated ITS as of mySAP ERP2005:
    Training Center (PV7I) (see Note 771196)
    myBookings (PV8I) (see Note 771196)</i>
    To answer the second part of your question, the Learning Solution is an optional component that can be deployed in ERP.  It complements and extends the existing TEM module.  You generally still use TEM with LSO.
    Is that what you were after?
    Regards,
    John

  • How to use only one event case at a time??

    Using LabVIEW, using the event structure is it possible to have only one event case execute at a time. For example, having event case controlled by keyboard, and the other event case controlled by mouse (clicking buttons) and only one being able to execute, not simultaneously. I was considering using a switch of some sort, but each case does not have a "stop if true/false" so I am open to a new method or work around. I attached code. I do not want output to be able to be sent from the keyboard case and mouse case at the same time.
    Thanks,
    Andrew
    Attachments:
    WiFi Motor Control & Cam Stripped.vi ‏29 KB

    Ah, OK. all you need is to keep state in a shift register that ensures that all "key down/mouse down" events are discarded after each key down/mounse down event until a key up or mouse up (resp.) has occured.
    Overall, you code is still way to complicated for this simple task. For example, you could eliminate all these "select" primitives and place the approriate diagram constant inside the respective case. On the other hand it is too simplistic, because you would think that certain key combinations should be allowed concurrently (e.g. up and left).
    What does the receiver actually do with the codes? Do you have any documentation for this device?
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Start Routine in Transformations

    Hi, For my reporting purpose i need to Transfer data from Cube to DSO I need a start routine for the following requirment when transfering data from Cube to DSO The Key fields in DSO are Location & Emp_ID and Date fields are ZAP_DTE (DATS) CUBE-->DSO

  • Problem with Applets in same page

    Hai to all, I am having a problem with GUI in applets My first class extends a JPanel named A_a import javax.swing .*; import java.awt.*; import java.awt.event.*; public class A_a extends JPanel JButton jb; JTextArea text; public A_a() setLayout(new

  • 3 Monitor Display

    I'm very sorry if this question has been asked before but i am after very spesific information... I have just gone out and purchaced 3 monitors and can only ever get 2 to display... i have: - Radeon HD7850 oc Edition 2gb - Gigabyte GA z77x ud3h - i7

  • Equivalent function for box3d which available in Postgis

    I have a road_network data I am trying to obtain all the values within a bounding box formed by lat long values, i tried below example but it compiled and produces some error  declare @exmp varchar; set @exmp = 'POLYGON(81.959545899804 25.24361218650

  • Account text (customer) for statement printout

    I'm working on customer statement, the client want print out the long text (account texts) from the customer master. but I don't know which table or how should I get these long text for current customer master for Scriptform print out?! Thanks in adv