27 Oct 2010 1:39 AM #1
How can i drag the Label of the form contorl widget?
I have a problem on dragging the widget in form panel.
I have created a TextField widget with a label and text box and it is draggable.
The code is very simple as shown in follow:
TextField<String> textField = new TextField<String>(); textField.setFieldLabel("label"); Draggable d = new Draggable(textField);
the label is set in the same widget as the textbox.
What i want to do is both label and text box are able to be dragged
but not both elements are dragged together, but they can be dragged alone.
Can anyone give me some ideas?
Thanks a lot!
27 Oct 2010 1:42 AM #2
This is a bit more tricky. I also would not use the Draggable class for this, but the DragSource. When starting a drag i would look it the label or the textfield was clicked.
By dev_java in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 5 Aug 2010, 2:55 AM
By weilies in forum Community DiscussionReplies: 1Last Post: 3 Jun 2010, 5:23 AM
By sample007 in forum Ext GWT: DiscussionReplies: 0Last Post: 22 Aug 2009, 1:35 AM
By sorna_lavanya in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 26 Sep 2008, 1:31 AM
By i8dea in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 24 May 2008, 8:18 AM