Drag and Drop Text Controls

2 posts, 0 answers
  1. Eric
    Eric avatar
    7 posts
    Member since:
    May 2009

    Posted 10 May 2009 Link to this post

    I am needing to build up a run time form designer using a database that contains different type of UI elements (text box, check box, label, combo box, radio button, picture object, and calendar) and I want the ability to drag the object around on a panel. When I stop dragging, I want to set the margin to display on the panel where I stopped dragging the item.  Is there an example of how to do this simply?

  2. Miroslav Paskov
    Miroslav Paskov avatar
    6 posts
    Member since:
    Oct 2007

    Posted 11 May 2009 Link to this post

    Hi Eric,

    What you need is achievable, but unfortunately button elements cannot be dragged/dropped because they capture the mouse on MouseDown (this is a limitation for the time being). Generally only the buttons (CheckBox, Button, RepeatButton, etc) capture the mouse.

    You may need to use placeholders for the buttons that are dragged (on drop you can place an actual button).

    It is possible to drag elements to, from and in a panel, I will post an example later as well.

  3. DevCraft R3 2016 release webinar banner
Back to Top