gcue Posted March 30, 2010 Share Posted March 30, 2010 I see that its possible to drag images and listview items. But is it possible to create a simple shapes like squares, rectangles and circles and make them dragable within a gui? (trying to avoid the clutter of image files) then i can save the coordinates of each item and refer to them later i am trying to create a workspace designer which can be saved then later refered to thanks =) Link to comment Share on other sites More sharing options...
BrettF Posted March 31, 2010 Share Posted March 31, 2010 Might be an idea to refer to the inner workings of CyberSlug's GUIBuilder. It may be old, but it most likely what you're after. TheSaint has an updated version that can be found here: http://www.autoitscript.com/forum/index.php?showtopic=14505&view=findpost&p=641872 Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Zedna Posted March 31, 2010 Share Posted March 31, 2010 (edited) I did similar project in my work in other programming language but principles are the same no matter of programming language and it uses mainly Win32 API calls anyway. In my project I draw on label control rectangles (and other stuff like axis etc) representing orders from database, it has different colors based on state of order and many other information drew on it. The princip of dragging is that I can calculate order number from mouse coordinates because it has rectangle shape and in case of mouse_down event I do painting of that order around mouse pointer until mouse is released. I use inner bitmap with all orders painted on it and in wm_paint event I do BitBlt from inner bitmap (DC) to label (its DC). In fact I do also horizontal/vertical scrolling myself so I use more helper inner bitmaps and ScrollDC API calls on them according H/V scrollbar position. See attached screenshot. Edited March 31, 2010 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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