Results 1 to 3 of 3

Thread: formpanel + mousemove

  1. #1
    Ext User
    Join Date
    Oct 2009
    Posts
    15

    Default formpanel + mousemove

    Hi.
    I have the following code in a form panel and it successfully traps a 'change' in an item. Anybody know how I can trap a 'mousemove' ?
    Thanks in advance.


    ...
    listeners:
    {
    change: function (f, value)
    {Ext.getCmp("Field1").setValue(value * Ext.getCmp("Field2").getValue());
    }
    ...

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    Take a look at the example for getEl().

    Something like the following should work:

    Code:
    listeners: {
      render: function(f) 
      {
        f.getEl().on('mousemove', function(e, t, o)
        {
        // your mousemove code.
        });
      },
      single: true  // Remove the listener after first invocation
    },

  3. #3
    Ext User
    Join Date
    Oct 2009
    Posts
    15

    Default [closed]

    Thanks for pointing me in this direction.
    I'm going to investigate this later as I'm being dragged in another direction right now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •