eHrgo Posted July 8, 2007 Share Posted July 8, 2007 Hi, I've seen many post like :http://www.autoitscript.com/forum/index.ph...ost&p=97355http://www.autoitscript.com/forum/index.ph...rlCreateGraphicWhich explains :"It is not possible to create a graphic control over a picture control"So.. How can I replace that? I want to put a simple form Widht=40 height=10 and specify its color over by GuiCtrlCreateGraphic (with transparency/setted as background)..How?Thanks Sorry for my Bad English. Link to comment Share on other sites More sharing options...
martin Posted July 8, 2007 Share Posted July 8, 2007 Hi, I've seen many post like :http://www.autoitscript.com/forum/index.ph...ost&p=97355http://www.autoitscript.com/forum/index.ph...rlCreateGraphicWhich explains :"It is not possible to create a graphic control over a picture control"So.. How can I replace that? I want to put a simple form Widht=40 height=10 and specify its color over by GuiCtrlCreateGraphic (with transparency/setted as background)..How?ThanksIt isn't correct. A graphic can be placed over a picture, but I don't know about the transparency.With the picture try setting the styles to BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)and then the graphic will show. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
eHrgo Posted July 8, 2007 Author Share Posted July 8, 2007 #include <GUIConstants.au3> GUICreate("", 50, 50, -1, -1, $WS_POPUP,$WS_EX_LAYERED) GUICtrlCreatePic(@ScriptDir&'/background.gif', 0,0,0,0,BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) GUISetState(@SW_SHOW) GUICtrlCreateGraphic(20,20) GUICtrlSetBkColor (-1, 0x00ff1e ) While 1 GUISetState(@SW_SHOW) Sleep(10) Wend It doesn't seems to work... Thanks Sorry for my Bad English. Link to comment Share on other sites More sharing options...
SXGuy Posted July 8, 2007 Share Posted July 8, 2007 #include <GUIConstants.au3> FileInstall ("@ScriptDir&'/background.gif") $pic = "background.gif" GUICreate("", 50, 50, -1, -1, $WS_POPUP,$WS_EX_LAYERED) GUICtrlCreatePic("$pic", 0,0,0,0,BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) GUICtrlCreateGraphic(20,20) GUICtrlSetBkColor (-1, 0x00ff1e ) While 1 GUISetState(@SW_SHOW) Sleep(10) Wend Link to comment Share on other sites More sharing options...
ashley Posted July 8, 2007 Share Posted July 8, 2007 #include <GUIConstants.au3> FileInstall ("@ScriptDir&'/background.gif") $pic = "background.gif" GUICreate("", 50, 50, -1, -1, $WS_POPUP,$WS_EX_LAYERED) GUICtrlCreatePic("$pic", 0,0,0,0,BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) GUICtrlCreateGraphic(20,20) GUICtrlSetBkColor (-1, 0x00ff1e ) While 1 GUISetState(@SW_SHOW) Sleep(10) Wend Use koda and make the gui with pic in that... thats what i use... Free icons for your programs Link to comment Share on other sites More sharing options...
eHrgo Posted July 9, 2007 Author Share Posted July 9, 2007 Hum....... SxGuy, your script is full of error and doesn't seems to be different as mine, except the file install which seems to be pretty useless here.. Ashley, what do you mean by "koda"? Sorry for my Bad English. Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 9, 2007 Share Posted July 9, 2007 Hum....... SxGuy, your script is full of error and doesn't seems to be different as mine, except the file install which seems to be pretty useless here..Ashley, what do you mean by "koda"?Koda is a GUI form designer that comes with SciTE. Hit Alt-m in SciTE to run it. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
LeCarre Posted July 16, 2012 Share Posted July 16, 2012 PSalty, Koda might be a nice tool, but that does not address the Topic. After some research i have found that the TOPIC of drawing a graphic over a picture is not possible in autoit with a transparent background. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 16, 2012 Moderators Share Posted July 16, 2012 LeCarre, So you ressurrect a 5 year old thread just to tell us? Please do not necro-post like this again. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Zedna Posted July 16, 2012 Share Posted July 16, 2012 (edited) After some research i have found that the TOPIC of drawing a graphic over a picture is not possible in autoit with a transparent background.Just use direct GDI drawing instead of native Graphic control. Then you don't have such limitation.There are many examples on this forum, search for LineTo or MoveTo for example ...EDIT:Here is my old Radar projectThere is drawn red Cros over image, see Func MalujKriz() there Edited July 16, 2012 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