electrico Posted August 1, 2009 Posted August 1, 2009 (edited) Hi Melba, hi Jos, hi every admin there. Hi all users and programmers! I'm new to AutoIT and now my little problem is to make photo appear in the GUI specified coordinates, when i will check my checkbox. Is it possible??? (Melba, pls help >_< )))) ) I know that I could find it maybe, but it is no time, folks, thats why I am asking the public about it! Edited August 1, 2009 by electrico
Hawkwing Posted August 1, 2009 Posted August 1, 2009 Search the helpfile. You should take a look at guictrlcreatepic. The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.
Developers Jos Posted August 1, 2009 Developers Posted August 1, 2009 Hi Melba, hi Jos, hi every admin there. Hi all users and programmers! I'm new to AutoIT and now my little problem is to make photo appear in the GUI specified coordinates, when i will check my checkbox. Is it possible??? (Melba, pls help >_< )))) ) I know that I could find it maybe, but it is no time, folks, thats why I am asking the public about it!Better learn fast to be patient because these type of post don;t help you other then being ignored.Happy helpfile reading..Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Info Posted August 1, 2009 Posted August 1, 2009 Search the helpfile. You should take a look at guictrlcreatepic.Not really. electrico asked how to show, hide and move a picture control in his GUI. #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("My GUI", 197, 192, 192, 124) $Pic1 = GUICtrlCreatePic(@WindowsDir&"/Zapotec.bmp", 0, 0, 96, 96, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $Checkbox1 = GUICtrlCreateCheckbox("Show Picture", 100, 4, 80, 17) $Checkbox2 = GUICtrlCreateCheckbox("Move Picture", 100, 24, 80, 17) GUICtrlSetState($Pic1,$GUI_HIDE) ;Will hide $Pic1 GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Checkbox1 ;If $Checkbox1 is pressed: If GUICtrlRead($Checkbox1) = 1 Then ;If $Checkbox1 is checked: GUICtrlSetState($Pic1,$GUI_SHOW) ;Will show $Pic1 Else ;If $Checkbox1 is not checked: GUICtrlSetState($Pic1,$GUI_HIDE) ;Will hide $Pic1 EndIf Case $Checkbox2 ;If $Checkbox2 is pressed: If GUICtrlRead($Checkbox2) = 1 Then ;If $Checkbox2 is checked: GUICtrlSetPos($Pic1,0,97) ; Will move $Pic1 down Else ;If $Checkbox2 is not checked: GUICtrlSetPos($Pic1,0,0) ;Will more $Pic1 up EndIf EndSwitch WEnd
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