Jump to content

Drag & Drop Controls


Joscpe
 Share

Recommended Posts

How can I make it, so when I drag a tree list view item onto my parent GUI, it will create an image at that spot and allow me to drag that image freely around the GUI?

Also how to I make it so I can draw lines on my GUI?

-Joscpe

Link to comment
Share on other sites

Look up GUICtrlSetState and GUIGetCursorInfo.

When I apply the "$GUI_DROPACCEPTED" It doesn't allow me to drag anything over. I got the drag thing going, I added an image and I am able to move it. But I cannot drag the item over, I don't understand that part. Edited by Joscpe

-Joscpe

Link to comment
Share on other sites

When I apply the "$GUI_DROPACCEPTED" It doesn't allow me to drag anything over. I got the drag thing going, I added an image and I am able to move it. But I cannot drag the item over, I don't understand that part.

Apparently only ListViewItem is allowed to do that. You can create a small GUI that appears and have the label that shows the item you are dragging, also change the cursor will make it look more realistic. Again, GUIGetCursorInfo will help along your way.
Link to comment
Share on other sites

Apparently only ListViewItem is allowed to do that. You can create a small GUI that appears and have the label that shows the item you are dragging, also change the cursor will make it look more realistic. Again, GUIGetCursorInfo will help along your way.

Do you know how I can draw lines or pixels on my GUI with my mouse?

-Joscpe

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...