rabbitkillrun2 Posted July 20, 2010 Share Posted July 20, 2010 Hey, Is there any way to set the position in a combo box (like a user would do by clicking the arrow and picking an item)? I've looked through the help thing but didn't find anything. Thanks rkr Link to comment Share on other sites More sharing options...
Developers Jos Posted July 20, 2010 Developers Share Posted July 20, 2010 Do you mean "how to set the default value" for the combobox? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
rabbitkillrun2 Posted July 20, 2010 Author Share Posted July 20, 2010 No, how would I set the value of it at any given time during the application? Link to comment Share on other sites More sharing options...
Yoriz Posted July 20, 2010 Share Posted July 20, 2010 (edited) You Could use ControlCommand with the "SetCurrentSelection, occurrence" command option ( use "FindString", 'string' with ControlCommand to get the occurance) or with "SelectString", 'string' command, or there is the functions from the GuiComboBox udf _GUICtrlComboBox_SetCurSel( use _GUICtrlComboBox_FindString or _GUICtrlComboBox_FindStringExact to get index). Edited July 20, 2010 by Yoriz GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF. Link to comment Share on other sites More sharing options...
rabbitkillrun2 Posted July 20, 2010 Author Share Posted July 20, 2010 (edited) Thanks. Trying that.I couldn't get SelectString to work on its own.Edit: Silly mistake. Edited July 20, 2010 by rabbitkillrun2 Link to comment Share on other sites More sharing options...
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