Jump to content

Recommended Posts

Posted

i have gui with guisetcontrol-edit and i need to refresh the contents of edit with pushing the button

how can i do that???

thanks a lot

Posted

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
Posted

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 :-)

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
  • Recently Browsing   0 members

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