Sign in to follow this  
Followers 0
qwert

Need advice on using Combo Box

3 posts in this topic

I have a combo box that uses the drop down feature to select from available choices. But when a new selection is made, nothing happens. I can't find an example of how the change in the contents is detected. Lists have the $LBS_Notify style, but I can't find anything like that for combo boxes. I've looked at the lod3n_launcher for hints, but it uses a Go button (or a carriage return action from the field -- which works, but I don't understand). Is a Go button necessary, or is it possible to set up an automatic "Go Upon Any Change" feature?

Any suggestions will be appreciated.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

What you're looking at is changing your GUI over to using OnEvent mode.

Check out the example for GUISetOnEvent in the Helpfile, it'll give you the general idea.

**Edit - You can also read up on it more in the Help File under the Contents tab --> GUI Reference --> GUI OnEvent Mode.

Edited by exodius

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

What you're looking at is changing your GUI over to using OnEvent mode.

Thank you. That was the missing piece.

Addendum: Here are three key points from the GUICtrlSetOnEvent description:

OnEvent functions are only called when the option GUIOnEventMode is set to 1

When in this mode GUIGetMsg is NOT used at all.

Within the called user function the control identifier can be retrieved with @GUI_CTRLID.

Edited by qwert

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