Sign in to follow this  
Followers 0
jruelan

Combo box

5 posts in this topic

hello good day! just want to ask how to disable the editing of texts in the combo box... tnx very much

Share this post


Link to post
Share on other sites



Hello jruelan,

This will disable editing of any kind...

WinActivate( "Application" )
ControlFocus( "Application" , "", "ComboBox1" )
ControlDisable( "Application" , "", "ComboBox1" )

...though it probably is overkill, isn't it?

Share this post


Link to post
Share on other sites

but i dont want to disable the combo box, only the text part of the combo box. the user can only click the drop down of the combo box and choose data from it and no editing of the selected text

Share this post


Link to post
Share on other sites

Hi,

If you mean a combobox created with AutoIt you can use..

GUICtrlCreateCombo("Text", 10, 10, 90, 20, $CBS_DROPDOWNLIST)

Cheers

Share this post


Link to post
Share on other sites

tnx very much for the help

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