Jump to content
HankHell

GUICtrlSetData not sending to $aVariable?

Recommended Posts

HankHell

was wondering why is it that when GUICtrlSetData is put into a GUICtrlCreateInput field, it won't set the $variable automatically until I edit the data in the field. when "123" is already in the field, if I erase "3" then re-add "3" it'll register the variable as "123". just thought this was kind of odd.

I would love it if I could use the set data in the field to register as the $variable without editing the text.

Edited by HankHell

Share this post


Link to post
Share on other sites
Zedna

You have to use GUIRegisterMsg($WM_COMMAND, "WM_COMMAND") and catch EN_CHANGE event and there store value into your variable

 

Look here for example how to do this:

 

Edited by Zedna

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

×