-
29 Apr 2009 8:57 PM #1
Hide window OnMouseOut
Hide window OnMouseOut
Hi there,
Can any one advise on who to hide gxt or gwt window onMouseOut plz. So simply if you moved the mouse out of the window then window should be hidden.
Thanks in advance.
Cheers,
MohammadLast edited by mystix; 29 Apr 2009 at 9:20 PM. Reason: moved to GXT 2.x Help from Ext Open Discussion
-
1 May 2009 5:35 AM #2
Code:public void onModuleLoad() { final Window w = new Window() { @Override protected void onRender(Element parent, int pos) { super.onRender(parent, pos); sinkEvents(Event.ONMOUSEOUT); }; }; w.setSize(500, 500); w.addListener(Events.OnMouseOut, new Listener<BaseEvent>() { public void handleEvent(BaseEvent be) { w.hide(); } }); w.show(); }
-
3 May 2009 3:25 PM #3
Hide window OnMouseOut
Hide window OnMouseOut
Thanks for your reply.
Cheers,
Mohammad


Reply With Quote