1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    24
    Vote Rating
    0
    poporogue is on a distinguished road

      0  

    Default How can i drag the Label of the form contorl widget?

    How can i drag the Label of the form contorl widget?


    Hi all,

    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:

    Code:
    TextField<String> textField = new TextField<String>();
    textField.setFieldLabel("label");
    Draggable d = new Draggable(textField);
    However, i can only drag the text box but not the label.
    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!

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    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.

Similar Threads

  1. Form Panel : Load Record and show the data in form label
    By dev_java in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 5 Aug 2010, 2:55 AM
  2. Replies: 1
    Last Post: 3 Jun 2010, 5:23 AM
  3. Replies: 0
    Last Post: 22 Aug 2009, 1:35 AM
  4. In EXT2.0 I used the Component EXT.form.Label-Doubts in EXT.form.Label
    By sorna_lavanya in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 26 Sep 2008, 1:31 AM
  5. How to drag a label in a tabpage?
    By i8dea in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 24 May 2008, 8:18 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi