Jump to content
Sign in to follow this  
realkiller

button

Recommended Posts

i got a question regardion button creation, is it possible to create a clear button ?

Check out KODA FormDesigner

http://www.autoitscript.com/fileman/users/lookfar/formdesign.html

#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 454, 193, 115)


$Button1 = GUICtrlCreateButton("", 64, 48, 65, 33, 0) ; EMPTY BUTTON
$Button2 = GUICtrlCreateButton("Button2", 64, 96, 65, 33, 0)


GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

    EndSwitch
WEnd

Share this post


Link to post
Share on other sites

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 633, 454, 193, 115)
$Button = GUICtrlCreateLabel("Button2", 64, 96, 65, 33)


GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    Case $Button
        msgbox(0,"Test","This is a button")
    EndSwitch
WEnd

you mean like this?

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  

×
×
  • Create New...