adam162 Posted August 5, 2010 Posted August 5, 2010 (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 August 5, 2010 by adam162
AdmiralAlkex Posted August 5, 2010 Posted August 5, 2010 GUICtrlSetState to hide and GUICtrlDelete to delete. It's really easy, check the helpfile and examples and you will have it working in no time. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
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