Results 1 to 6 of 6

Thread: move items around

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2004
    Location
    UK
    Posts
    43

    move items around

    hi,,

    saying i've got items on form,, such as buttons, or labels.

    any ideas how i can drag or move any of this items, by using the mouse,

    so i can move the button for example from bottom left to bottom right of the form......

  2. #2

    Thread Starter
    Member
    Join Date
    Jan 2004
    Location
    UK
    Posts
    43
    pls , help me, with that

  3. #3

  4. #4
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    bassicly, you could utilize the drag-drop methods and use the coordinate differences from start to finish that the cursor is making and set the "location" property of your control to mirror that.

    to clear that up...if your mouse moves from x.1, y.1 to x.6, y.6, that's a difference of five on each axis. just calculate the axis points for the "location" of the control....

    did I make it more non-understandable?

  5. #5

    Thread Starter
    Member
    Join Date
    Jan 2004
    Location
    UK
    Posts
    43
    no you are alright mate,

    what i am trying to do, is try to move the button or a label, the same way u do while designing a form..... and that's by using the mouse.



    pirate, thank you very much,

    you are a real saviour..

    good day..

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    You're welcome .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width