Jump to content

refresh guisetcontrol-edit with button


Recommended Posts

A simple script, created with AutoBuilder. :ph34r:

GuiCreate("Updating an EDIT", 190,46)

$button_1 = GUISetControl("button", "Add >", 10, 10, 50, 20)
GUISetControlNotify()
$edit_1 = GUISetControl("edit", 1, 60, 10, 60, 20, 0)
GuiShow()

While 1
    sleep(100)
    $msg = GuiMsg(0)
    Select
    Case $msg = -3
        Exit
     Case $msg = $button_1
        $nEd= GUIRead( $edit_1 )
        GUIWrite( $edit_1, -1, "")
        GUIWrite( $edit_1, -1, $nEd + 1)
    EndSelect
WEnd
Exit
Link to comment
Share on other sites

A simple script, created with AutoBuilder. :)

GuiCreate("Updating an EDIT", 190,46)

$button_1 = GUISetControl("button", "Add >", 10, 10, 50, 20)
GUISetControlNotify()
$edit_1 = GUISetControl("edit", 1, 60, 10, 60, 20, 0)
GuiShow()

While 1
    sleep(100)
    $msg = GuiMsg(0)
    Select
    Case $msg = -3
        Exit
     Case $msg = $button_1
        $nEd= GUIRead( $edit_1 )
        GUIWrite( $edit_1, -1, "")
        GUIWrite( $edit_1, -1, $nEd + 1)
    EndSelect
WEnd
Exit
thanks a lot, your help was realy helpful :-)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...