Sign in to follow this  
Followers 0
rabbitkillrun2

Set position in Combo Box

5 posts in this topic

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

Share this post


Link to post
Share on other sites



No, how would I set the value of it at any given time during the application?

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Thanks. Trying that.

I couldn't get SelectString to work on its own.

Edit: Silly mistake.

Edited by rabbitkillrun2

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