Hi, all,
I want to make a window or a TextArea inside a window to fire a dbclick event when I double click on the window or the textarea, I tried to use:
this.addEvents({
'dbclick': true
});
but it never fired, not how to let a window to fire the dbclick event.
Also I tried:
this.textArea = new Ext.form.TextArea({
valueField: 'about',
name: 'about',
hideLabel: true,
width: 250,
height: 150,
region:'center',
listeners: {
'dbclick':function(){
alert('dbclicked...');
}
},
readOnly: true
});
But that does not work either.
Any idea?
Thanks in advance.
Dave
I think you want the 'dblclick' event.
Also, I think you have to set it to the dom element, not the Ext component.
I got it working.
Thanks very much.
Dave
Challenging Books For A 14 Year Old?
First guitar : acoustic or electric?
|