I want to do something like, draw a graphic, then if i press "+" or "-" it will either make the graphic bigger or small once i click the "update" button.
I tried this but it dont work..
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
#include <StaticConstants.au3>
#NoTrayIcon
$Form1 = GUICreate("Change Drawing", 617, 440, 192, 124)
GUISetState(@SW_SHOW)
$size = 100
$drawinggui = GUICtrlCreateGraphic(75, 75, $size, $size)
GUICtrlSetColor($drawinggui, 0xFF0000)
$update = GUICtrlCreateButton("Update", 100, 20)
$plus = GUICtrlCreateButton("+", 143, 20, 15)
$min = GUICtrlCreateButton("-", 85, 20, 15)
$show2 = GUICtrlCreateLabel($size, 112, 50)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $update
GUICtrlSetData($drawinggui, $size)
Case $plus
$size +=10
GUICtrlSetData($show2, $size)
Case $min
$size -=10
GUICtrlSetData($show2, $size)
EndSwitch
WEnd