Sign in to follow this  
Followers 0
electrico

FileInstall or how to do that??

5 posts in this topic

#1 ·  Posted (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 by electrico

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Understood.

Share this post


Link to post
Share on other sites

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

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