Sign in to follow this  
Followers 0
corey822

function help

1 post in this topic

hi

i recently creted this thing to test out koda for gui now when i go to put in what function does wat i cant seem to find anywhere a list of functions ill show wat i mean

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$game = GUICreate("game", 319, 281, 275, 188)
GUISetCursor (3)
GUISetBkColor(0xFF0000)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1Maximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "Form1Restore")
$ok = GUICtrlCreateButton("ok", 88, 184, 129, 49, 0)
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0x00FF00)
GUICtrlSetOnEvent(-1, "Button1Click")
$Label1 = GUICtrlCreateLabel("press the button for no reason", 96, 48, 145, 17)
GUICtrlSetOnEvent(-1, "Label1Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
Sleep(100)
WEnd

Func Button1Click()
beep ( 350, 1000)
MsgBox(0 ,"beeeeeeeeep", "beeeeeeeeeep")
EndFunc
Func Form1Close()
    msgbox(0,"exit","you clicked exit")
Exit
EndFunc
Func Form1Maximize()
;i want a function here to maximize on command<-----------------------------------------------
EndFunc
Func Form1Minimize()
;here to minimize <----------------------------------------------------------------------------------
EndFunc
Func Form1Restore()
;and one to restore<---------------------------------------------------------------------------------
EndFunc
Func Label1Click()

EndFunc

but i cant seem to find anywhere the list of functions that can be used

cheers C.W


C.Wnew rules:1.dont use plz in a post or title use please instead2.always use help file as it is now muchly over rated3. dont think where not watching u4.please wait 24 hours after last post ot bump XD i use to make that mistake

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