Disable via the mouse wheel scrolling

Here's my situation.

I have a text box that is filled with text (text that can be displayed). I have scroll bars removed so that you can not scroll with them, but you can still scroll with a mouse wheel. How can I disable this? I tried a number of things, but nothing seems to work.

I think I need an event listener and a function must be performed on ScrollEvent.SCROLL, but what would it be? TextArea have scrollPosition, so I can't do myTextArea.scrollPosition = 0; or something of the sort.

If anyone has an idea how to go about it, throw it upwards on the set, it would be really appreciated.

Thank you!

As I couldn't find anything on this anywhere... I'll post the solution I got programmers yahoo group.

package
{
Import mx.controls.TextArea;

public class newTextArea extends TextArea
{
override protected function createChildren() (): void
{
super.createChildren ();
textField.mouseWheelEnabled = false;
}
}
}

-----------------


provided by Alex Harui - blogs.adobe.com/aharui

Tags: Flex

Similar Questions

  • The mouse wheel will only up to?  Bridge (Photoshop CS4)

    I am facing a problem with Bridge (CS4) where the mouse wheel scrolls only upward.   Any attempt to scroll down causing the erratic behavior.   If you scroll at a normal speed, it always returns to the top.  If you rotate the mouse toward the low fast roulette, bridge is going through some then go up a little.   No problem in any other product such as Photoshop CS4 Adobe.

    Has anyone reproduces this behavior?

    Any solution?

    NOTE: WACOM Tablet mouse works correctly.

    Kind regards

    Valerie

    I had the same problem until I downloaded the 64 bit Windows 7 drivers of

    http://www.Microsoft.com/hardware/download/download.aspx?category=MK&type=mouse&SKU=QVA-00 001

    .

    Pablo

  • Disable the mouse wheel on a scrolling text box?

    I'm quite familiar with Actionscript, and this has baffled me completely. What I'm trying to do is prevent people from scrolling a TextArea with their mouse wheel, as the text box is inside a ScrollPane and now scrolling allows to scroll the other (double scroll). Initially, I tried:

    tArea.textField.mouseWheelEnabled = false;

    However, it did not work. After some research, I found some suggestions to replace the function childrenCreated of my class that extends the text box, ala

    override protected function childrenCreated (): void {}
    super.childrenCreated ();
    textField.mouseWheelEnabled = false;

    }

    but this won't work in Actionscript 2. Finally, after some research, I found some suggestions to intercept and disable events, ala


    this.addEventListener (ScrollEvent.SCROLL, this.disableScrollHandler);
    textField.addEventListener (MouseEvent.MOUSE_WHEEL, disableMouseHandler, true);
    verticalScrollBar.addEventListener (MouseEvent.MOUSE_WHEEL, disableMouseHandler, true);
    addEventListener (MouseEvent.MOUSE_WHEEL, disableMouseHandler, true);
    textField.addEventListener (MouseEvent.CLICK, disableMouseHandler, true);
    verticalScrollBar.addEventListener (MouseEvent.CLICK, disableMouseHandler, true);
    this.addEventListener (MouseEvent.CLICK, disableMouseHandler, true);
    .
    .
    .
    function disableMouseHandler(event:MouseEvent):void {}
    trace ("disableClickHandler");
    Event.preventDefault ();
    event.stopPropagation ();
    }
    function disableScrollHandler(event:ScrollEvent):void {}
    trace ("disableClickHandler");
    Event.preventDefault ();
    event.stopPropagation ();
    }

    But this has not as well. I have something wrong? Is it just not possible? What is the problem here?

    Thank you
    Stephen M.

    Strange... in order to make it work I had to do both methods, that is to say in my TextArea subclass, I put

    textField.mouseWheelEnabled = false;

    and I created a listener to stop the spread of the mouse wheel event:

    addEventListener (MouseEvent.MOUSE_WHEEL, disableMouseHandler, true);
    ...
    function disableMouseHandler(event:MouseEvent):void {}
    event.stopPropagation ();
    }

    It does not exactly what I need it to do, as it make sure the ScrollPane does not receive the scroll event either, but I can ignore it or find a workaround.

  • HP TouchSmart Desktop PC 600-1120: disable the mouse wheel click

    Hello

    I have a HP TouchSmart 600-1120 Desktop PC, and I want to disable the click of the scroll of the mouse wheel, so it only scrolls up and down and is not clickable. The click is so sensitive, it's difficult to scroll without accidentally clicking the wheel.

    I can't find the right Wizard or the controls for this. Can you tell me the driver please?

    Thank you

    Here are the specifications of your desktop HP TouchSmart 600-1120 According to the specification, this model left the factory with Windows 7 64 bit installed. I have a HP 320-1120 m, which also uses Windows 7 64 bit and I have been unable to locate the mouse settings that would be necessary you to disable this feature. You can search on internet of the possible options.

    Please send Bravo

  • How to scroll by using the mouse wheel on a parent scroll pane

    Hi guys,.
    Imagine a table. In each cell of the table represents a component of a get. All aspects of ahmed are configured so that the scroll bar is visible only when it is necessary.
    Then, ALL cells contain scroll shutters, but only a few of them actually show a scroll bar.
    The entire table (which is very large) is also in a global scroll pane and is drop-down.

    My problem:
    I want to use the mouse wheel to scroll on the entire table. Because the table contains all its cells do scroll panes, the inner scrollpanes takes very quickly focus and global scrolling stops immediately.
    How can I force the weel mouse seize ONLY on the overall scroll pane? So basically not to transfer events to its internal components?

    I tried to disable the mouse wheel on all aspects of internal scroll:
    xxx.setWheelScrollingEnabled(false);
    ... but it doesn't.
    Any idea?

    So basically not to transfer events to its internal components?

    You must manually transfer the events to the external component to scroll.

    Using the concepts presented in [url http://tips4java.wordpress.com/2009/08/30/global-event-listeners/] Global event listeners, you can do something like:

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    
    public class ScrollSSCCE extends JPanel
    {
         public ScrollSSCCE()
         {
              setLayout( new BorderLayout() );
    
              Box tables = Box.createVerticalBox();
              final JScrollPane scrollPane = new JScrollPane( tables );
              add( scrollPane );
    
              for (int i = 0; i < 5; i++)
              {
                   JTable table = new JTable(20, 4);
                   JScrollPane sp = new JScrollPane( table );
                   sp.setPreferredSize( new Dimension(300, 200) );
                   sp.setWheelScrollingEnabled( false );
                   tables.add( sp );
              }
    
              long eventMask = AWTEvent.MOUSE_WHEEL_EVENT_MASK;
    
              Toolkit.getDefaultToolkit().addAWTEventListener( new AWTEventListener()
              {
                  public void eventDispatched(AWTEvent e)
                  {
                       Component source = (Component)e.getSource();
    
                      if (source != scrollPane
                        &&  SwingUtilities.isDescendingFrom(source, scrollPane) )
                      {
                           MouseWheelEvent mwe = (MouseWheelEvent)e;
    
                        MouseWheelEvent event = new MouseWheelEvent(
                                  scrollPane,
                                  mwe.getID(),
                                  mwe.getWhen(),
                                  mwe.getModifiers(),
                                  mwe.getX(),
                                  mwe.getY(),
                                  mwe.getXOnScreen(),
                                  mwe.getYOnScreen(),
                                  mwe.getClickCount(),
                                  mwe.isPopupTrigger(),
                                  mwe.getScrollType(),
                                  mwe.getScrollAmount(),
                                  mwe.getWheelRotation());
    
                             scrollPane.dispatchEvent( event );
                      }
                  }
              }, eventMask);
    
         }
    
         private static void createAndShowUI()
         {
              JFrame frame = new JFrame("ScrollSSCCE");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.add( new ScrollSSCCE() );
              frame.setSize(330, 600);
              frame.setLocationRelativeTo( null );
              frame.setVisible( true );
         }
    
         public static void main(String[] args)
         {
              EventQueue.invokeLater(new Runnable()
              {
                   public void run()
                   {
                        createAndShowUI();
                   }
              });
         }
    }
    
  • I use the mouse for scrolling wheel. It stopped working during the installation of the V4.

    I use the mouse wheel to scroll on my desk and the button of "middle" in conjunction with the pointer on my laptop (lenovo thinkpad W500) node to simulate a mouse wheel. At the point in time, I upgraded firefox to V4, this function stop working. I tried it in IE and it still works there, and it still works in swriter OpenOffiice.org , so it is not something has changed in the hardware or the operating system (XP). Any suggestions?

    Try this:

    Type of topic: config in the address bar, press ENTER, Firefox asks if you want to access the settings, say yes you know the risk.

    When the list of configurations to come, type track point in the filter area, you will see a frame ui.trackpoint_hack.enabled , that change from-1 to 1. Now you should be able to scroll through the help of trackpoint and the Center button of the mouse on the trackpad again.

  • The mouse for scrolling in the secondary wheel

    Can someone tell me if there is a way to use the mouse wheel to scroll vertically in a secondary window in 7.1? (I allow the vertical scroll bar, and I focus to the true value.)   I read that it is supposed to work for listboxes, is it supposed to apply to the sub-panels as well?

    Thank you!

    Greg

    No way without writing code as far as I know. When I wanted to do something like this in LabVIEW 7.0, I had a loop that has probed the wheel using the feeding screw and used to generate a user event whenever there was a parchment. I then used that to set the FP. Original in the Subvi property to simulate a parchment. Note that you need to remove the Subvi Panel first, because you can't write the original property to a VI in a MS.

    The order was therefore-

    1. see the updates in the caller (if the user does not see the VI being deleted).
    2. remove the SP.
    3. the original value (and make sure that the user does not have to scroll past the end of the authorized zone).
    4. Insert VI SP.
    5. undefer updated.
  • My mouse is running on Win XP and when trying to scroll by using the mouse wheel - it 'slides' return

    My mouse works on Win XP and when trying to scroll with mouse wheel - in Excel or IE8 - screen scrolls sometimes or to return to his position earlier some lines and "slips".  I tried with the evolution of the mouse, but a new one made in same way. Two mouse works perfectly on the other PC. Help, please!

    Hi Stamen.

    I understand that you can not correctly scroll with the mouse wheel.

    1. What is the brand and model of the mouse?
    2. is it a mouse wireless or wired mouse?
    3. did you of recent changes to the computer?

    I suggest to see the next procedure and check if it helps.

    Method 1:


    You can read the article and check if it helps.

    The problems with the mouse button or scroll the parameters


    http://support.Microsoft.com/kb/303091

    Method 2:


    You can also check out the article and check if that helps.

    Mouse, touchpad and keyboard with Windows problems


    http://Windows.Microsoft.com/en-in/Windows/help/Mouse-touchpad-and-keyboard-problems-in-Windows

    Hope this solves the problem. If you still experience this issue, then you can get back to us with the result and more information on this issue.

  • InDesign CS5 for windows only allow me to scroll through the functions with the mouse wheel

    Nice day

    InDesign CS5 for Windows only allow me to scroll through the functions with the mouse wheel and for example not allow me to access drop down menus, any help will be much appreciated

    https://helpx.Adobe.com/InDesign/KB/InDesign-tools-panels-Don ' t - respond.html

  • Scroll personalized Flash (working on the mouse wheel)

    I search the web for good work vertical scroll Flash and can't seem to find a good solution. I'll use it for the layout product with all the images. So I guess that means no scrolling text but a scroll of MC.

    My main design problem is I want a user to be able to scroll with the mouse whell (same way as HTML frames).

    I don't like that available to throughout the site scrolls upward, I rather refer to a section in the layout of the site where the information can be scrolled. This way the site logo and all the main navigation at the top will always be visible.

    Main problem is that I can't find a parchment that would work on scrolling the mouse wheel, a user is always having to enter the bar, or click the up/down arrows so that the roll to work.

    Is it possible to make a scrolling to work on a wheel of the mouse in flash?

    Try the ScrollPane . It's basically a MovieClip containing vertical and horizontal scroll bars attached. You can assign it by using the content source property. After manipulation of sources, you must call the update() method to update scrollbars to new content.

  • By pressing the mouse wheel Center is no longer, a link opens in a new tab.

    By pressing the mouse wheel Center is no longer, a link opens in a new tab. I tried to disable all add-ons, the problem still exists. I tried upgrading my mouse driver, it was already up to date.

    I already tried all the advice from this old question: http://support.mozilla.org/en-US/questions/783155?s=mouse+scroll+wheel+open+new+tab & r = 0 & as = s

    Firefox 14.0.1 on Windows 7. I use a Case Logic wireless mouse. There was a recent update from Windows. The opening in a new ability to tab disappeared after this updated, but not immediately after.

    Do a "Reset Firefox" seems to have solved the problem.

  • What would cause the mouse to scroll slowly on Web pages, but normally on text documents?

    I have a strange problem. I have a Logitech M305 mouse on another machine which is too slow scrolling on Web pages. I ordered a new mouse, but today I noticed the old mouse normally scroll in text documents, even though the text document is displayed in Firefox (such as the "subject: config" page).

    Normally, a page will scroll 3 lines for each click of the mouse wheel.
    On Web pages, it changes and it takes 3 clicks of the mouse wheel to get the page to scroll.

    It is troubling to move the mouse wheel and don't have anything happen until the third click.

    So the question is, what would make the mouse wheel behave differently on the Web pages and pages of text, and how can I solve this problem?

    BTW, this is a clean install of Windows 7 64-bit. I use the same exact type of install now on another machine with a mouse Logitech M510 and normally scrolls on all pages.

    OK, a final report on this issue. Yesterday, before installing the new mouse M325, I decided to uninstall the Logitech SetPoint software. I wanted a new installation of the software for the mouse to go with the new mouse.

    To my surprise, after the set point has been uninstalled the old mouse M305 scroll normally on pages of text and Web pages. It seems that something mysterious happened in the relationship between Firefox and the original installation of set point. Firefox made some adjustments or updates of its own regarding record just as it does for modules, I saw it happen a couple of times before. /shrug

    New mouse + set works perfectly with FireFox now and the old mouse M305 + setpoint is now works well with an old laptop XP Pro, at least as long as the button pop-up gimpy holds.

    Solution, in this case: uninstall the Logitech SetPoint mouse software, and then reinstall a new copy of it.

  • Delayed mouse wheel Scrolling on Dell XPS running Windows 7

    Since installing Win7-64 (Dell XPS) I noticed a weird scroll effect.  Approximately 2-3 seconds after the mouse scroll wheel, the active window "jumps" over a level of scrolling in the same direction, without any input from me.

    Don't happen every time, but often enough that it problems.  Either I will scroll at a given place in the list of folders in Windows Explorer, then go get a file to drag to a folder, but before that I can drop the list folders scrolls by itself.  I've seen this happen in many programs, including Windows Explorer, IE8, Firefox, Eclipse, oxygen/XML, Textpad...

    Anyone has any ideas, what is the cause?

    Hi ExUmbris,

    ·        What is the model number of the computer?

    ·        You have installed the latest drivers for the mouse?

    I suggest to change the mouse settings, you can check the link below: change the settings of the mouse:http://windows.microsoft.com/en-us/windows7/Change-mouse-settings

    (Refer to the section: to change the mouse wheel works)

    Let us know the results.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • trying to turn the mouse wheel effects by clicking on

    Anyone know how to disable the effect by clicking the mouse wheel?

    Some mice may have a button just behind the two main buttons that switches click or not to click. It's a hardware thing inside the nouse. Look at the manual of the mouse or the reviews on the mouse for more info...

  • Animate CC - HTML 5 Canvas - on the mouse wheel event necessary Javascript code

    Hi all

    I'm from AS3 transition to JavaScript and it is harder than I thought.

    Can anyone suggest code JS code on the mouse wheel event timeline will play?

    Or even better on scroll down it moves forward and upward timeline scrolling back?

    Very appreciated

    Simon

    document.getElementById('canvas').addEventListener ('mousewheel', f.bind (this));

    document.getElementById('canvas').addEventListener ('DOMMouseScroll', f.bind (this));

    {function equation

    e.Detail

    }

    [left ActionScript 1 and 2 for Adobe host CC - general]

Maybe you are looking for