Sign in to follow this  
Followers 0
amanda089

Editbox help

2 posts in this topic

When does an editbox send an event? I would like to update a variable as much as possible though only when the editbox data has changed. my script seems to be only recieving an even from the editbox when it loses focus.

Share this post


Link to post
Share on other sites



When does an editbox send an event? I would like to update a variable as much as possible though only when the editbox data has changed. my script seems to be only recieving an even from the editbox when it loses focus.

<{POST_SNAPBACK}>

Dont think the edit box send's any events, to check if it has changed try this in the eventloop:

Global $EditboxOld
While 1
      Select
           Case blabla;your other events
                 do this
           Case else
                 If GuiCtrlRead($Editbox) <> $EditboxOld then
                      $EditboxOld = GuiCtrlRead($Editbox)
                      updateList($EditboxOld); func to update the list
                 Endif
    EndSelect
Wend

The GUI is still limited in stuff you can do with events for now (hope this will change)

Hope this helps a bit

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