Jump to content
Sign in to follow this  
Ultratech

Help With Buttons

Recommended Posts

Ultratech

Hey, im making a GUI that has several tabs with button on each. I need to know how to make a button run a program when clicked.

Share this post


Link to post
Share on other sites
4gotn1

i'll give you a general idea how to make use of buttons ;)

$varButton = GUICtrlCreateButton("TEST", 0, 0)

While 1

    $msg = GUIGetMsg()

    if  $msg = $varButton  Then
        ;insert what you want it to do here
    endif
WEnd

not pretty but atleast u 'know' how to do it now and what to look for in the help file :whistle:

Share this post


Link to post
Share on other sites
Ultratech

Thanks, those helped.

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  

×