Sign in to follow this  
Followers 0
shaamaan

refresh guisetcontrol-edit with button

4 posts in this topic

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

Share this post


Link to post
Share on other sites



Have a look at "GuiWrite" in the Helpfile.

arctor

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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 :-)

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  
Followers 0