Thanks :)
I had to change the MouseDownEvents to MouseMove and MouseUp, but it
worked a charm, cheers :)

~~~~~~
Reviews of anything, by anyone;
www.rateoholic.co.uk
Please try out my new site and give feedback :)



2009/4/16 Vitali Lovich <vlov...@gmail.com>:
> Sorry, was looking at the 1.5 doc.
>
> protected void beginDragging(MouseDownEvent event)
> {
>    super.beginDragging(event);
>
>   // my code goes here
> }
>
>
> protected void continueDragging(MouseDownEvent event)
> {
>    super.continueDragging(event);
>
>   // my code goes here
> }
>
>
> protected void endDragging(MouseDownEvent event)
> {
>    super.endDragging(event);
>
>   // my code goes here
> }
>
>
> On Wed, Apr 15, 2009 at 4:32 PM, Darkflame <darkfl...@gmail.com> wrote:
>>
>> I'm not sure precisely how to override in this case though.
>>
>> I see the onMouseUp event in the class, and I try putting this into my
>> widget (which extends DialogBox).
>>
>>       �...@override
>>        public void onMouseUp(Widget sender, int x, int y) {
>>            dragging = false;
>>            DOM.releaseCapture(getElement());
>>          }
>>
>> (basicaly an exact copy of whats in the class's over mouseup event).
>>
>> However;
>> a) dragging is not visible error
>> b) It says onMouseUp is depreciated anyway and to use endDragging.
>>
>> (Looking at enddragging;
>>
>> protected void endDragging(MouseUpEvent event) {
>>    onMouseUp(caption, event.getX(), event.getY());
>>  }
>>
>> )
>>
>>
>>
>> On Apr 15, 10:19 pm, Vitali Lovich <vlov...@gmail.com> wrote:
>> > id
>> > *onMouseDown<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
>> >
>> > *(Widget<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
>> > sender,
>> > int x, int y)
>> >           Fired when the user depresses the mouse button over a widget.
>> >  void
>> > *onMouseEnter<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
>> >
>> > *(Widget<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
>> >  sender)
>> >           Fired when the mouse enters a widget's area.   void
>> >
>> > *onMouseLeave<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
>> >
>> > *(Widget<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
>> >  sender)
>> >           Fired when the mouse leaves a widget's area.   void
>> >
>> > *onMouseMove<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
>> >
>> > *(Widget<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...>
>> > sender,
>> > int x, int y)
>> >           Fired when the user moves the mouse over a widget.
>> > You have to override them yourself seeing as how it doesn't have support
>> > for
>> > this.
>> >
>> >
>> >
>> > On Wed, Apr 15, 2009 at 4:08 PM, darkflame <darkfl...@gmail.com> wrote:
>> >
>> > > umm..what the title says  ;)
>> >
>> > > I just want to trigger some realignment of stuff when the user stops
>> > > dragging.
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to