Re: Selection of Widgets

2009-07-23 Thread Ewald Pankratz
Hi Adam I did something and it works partly. The text will not be selected as before but when I press the mouse and go out of the widget the full text will be selected again. Any idea? Regards, Ewald package g26v01.client; import com.google.gwt.dom.client.Element; import

Re: Selection of Widgets

2009-07-23 Thread Adam T
Hi Ewald, I guess it selects the whole of the html once you are out of it, as you are only preventing default on the html widget, once outside the html widget normal browser functionality is back in play. One way you could consider solving your issue is to have the elements you want to link

Selection of Widgets

2009-07-22 Thread Ewald Pankratz
Hi When I create a widget e.g. a HTML widget and go with the mouse over the widget and press the left mouse button and move the mouse somewhere else the widget or part of the widget will be selected. How can I get rid of this selection. I don't want any selection instead I want to draw a line

Re: Selection of Widgets

2009-07-22 Thread Adam T
Hi Ewald, Sounds like you want to prevent the default event handling of the browser. You'll need to add some event handlers to your HTML widget and the call the preventDefault() method in them. For example: HTML widget = new HTML();