qwert Posted July 31, 2009 Posted July 31, 2009 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.
exodius Posted July 31, 2009 Posted July 31, 2009 (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 July 31, 2009 by exodius
qwert Posted July 31, 2009 Author Posted July 31, 2009 (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 July 31, 2009 by qwert
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now