Jump to content
Sign in to follow this  
meowbits

Dialog boxes - how do we create them in Autoit?

Recommended Posts

meowbits

Looking to make a dialog box, anyone have the format for them?

I didn't see them in the help guide.

Share this post


Link to post
Share on other sites
Authenticity

Read the help file for the description and remarks. I think you're looking for GUICreate() to create the dialog box and GUICtrl* to dress it with the controls.

Share this post


Link to post
Share on other sites
meowbits

Where can I add a textbox? I saw it but it didn't show how you actually put one in.

Can I assign the value they (int) they enter? How would I do that.

#include <GUIConstantsEx.au3>

Opt('MustDeclareVars', 1)

bailsToBuy()

Func bailsToBuy()
    Local $gui, $bails, $msg, $ok, $bails
    $gui = GUICreate("Bails to Run", 400, 100)
    $bails = GUICtrlCreatePic(@SystemDir & "", 0, 0, 400, 100)
    GUISetState(@SW_SHOW)
    $ok = GUICtrlCreateButton("OK", 10, 30, 50)
    GUICtrlSetOnEvent(-1, "OKPressed")
; looking to have a text box so people can enter an int and have that int set to value $bails
; Then use value $bails in another file, or later in this one
; How do I do that?

    Do
        $msg = GUIGetMsg()
    Until $msg = $GUI_EVENT_CLOSE
EndFunc

Thanks for your help thus far =-)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.