Sign in to follow this  
Followers 0
adam162

hide images in gui?

2 posts in this topic

#1 ·  Posted (edited)

what I have so far

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Opt("TrayMenuMode", 0)
$Form1 = GUICreate("main_gui", 750, 557, 192, 114)
$MenuItem1 = GUICtrlCreateMenu("Administration")
$MenuItem2 = GUICtrlCreateMenuItem("Login", $MenuItem1)
$Label1 = GUICtrlCreateLabel("Adams Shop", 296, 16, 173, 36)
GUICtrlSetFont(-1, 20, 800, 4, "MV Boli")
$Shoping = GUICtrlCreateEdit("", 8, 80, 305, 449, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN))
GUICtrlSetData(-1, "Empty shoping basket")
GUICtrlSetState(-1, $GUI_DISABLE)
$Button1 = GUICtrlCreateButton("Request Asistance", 576, 64, 153, 49, $WS_GROUP)
GUICtrlSetBkColor(-1, 0x3A6EA5)
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\Administrator\My Documents\My Pictures\lights\orange.bmp", 464, 400, 137, 105, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic2 = GUICtrlCreatePic("C:\Documents and Settings\Administrator\My Documents\My Pictures\lights\red.bmp", 608, 400, 137, 105, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic3 = GUICtrlCreatePic("C:\Documents and Settings\Administrator\My Documents\My Pictures\lights\green.bmp", 320, 400, 137, 105, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Label2 = GUICtrlCreateLabel("Status", 496, 360, 78, 36)
GUICtrlSetFont(-1, 20, 400, 0, "MS Sans Serif")
$Button2 = GUICtrlCreateButton("Pay", 544, 176, 177, 105, $WS_GROUP)
GUICtrlSetFont(-1, 30, 400, 0, "MV Boli")
GUICtrlSetBkColor(-1, 0xA6CAF0)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

        Case $Button1
                 {Hide image $pic1 and $pic3)
    EndSwitch
WEnd

How could I hide $pic1 and $pic3 when $button1 is clicked ?

Edited by adam162

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