Sign in to follow this  
Followers 0
Joscpe

Drag & Drop Controls

7 posts in this topic

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

Share this post


Link to post
Share on other sites



Look up GUICtrlSetState and GUIGetCursorInfo.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#Include <GDIPlus.au3>

_GDIPlus_GraphicsDrawLine($hGraphics, $iX1, $iY1, $iX2, $iY2[, $hPen = 0])

Share this post


Link to post
Share on other sites

How do I get GDI Plus?

I've tried searching the forums and it's not already in my Includes...


-Joscpe

Share this post


Link to post
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
Sign in to follow this  
Followers 0