Joscpe Posted December 4, 2007 Share Posted December 4, 2007 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 More sharing options...
Generator Posted December 4, 2007 Share Posted December 4, 2007 Look up GUICtrlSetState and GUIGetCursorInfo. Link to comment Share on other sites More sharing options...
Joscpe Posted December 4, 2007 Author Share Posted December 4, 2007 (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 December 4, 2007 by Joscpe -Joscpe Link to comment Share on other sites More sharing options...
Generator Posted December 4, 2007 Share Posted December 4, 2007 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 More sharing options...
Joscpe Posted December 4, 2007 Author Share Posted December 4, 2007 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 More sharing options...
Generator Posted December 4, 2007 Share Posted December 4, 2007 #Include <GDIPlus.au3> _GDIPlus_GraphicsDrawLine($hGraphics, $iX1, $iY1, $iX2, $iY2[, $hPen = 0]) Link to comment Share on other sites More sharing options...
Joscpe Posted December 4, 2007 Author Share Posted December 4, 2007 How do I get GDI Plus? I've tried searching the forums and it's not already in my Includes... -Joscpe Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now