DW1 Posted January 17, 2008 Posted January 17, 2008 How can you make a combo box that a user cannot type into the edit field? AutoIt3 Online Help
mschol Posted January 17, 2008 Posted January 17, 2008 (edited) with $CBS_DROPDOWNLIST in $iStyle ? _GUICtrlComboBox_Create($hWnd, $sText, $iX, $iY[, $iWidth = 100[, $iHeight = 120[, $iStyle = 0x00200042[, $iExStyle = 0x00000000]]]]) $CBS_DROPDOWNLIST - Similar to $CBS_DROPDOWN, except that the edit control is replaced by a static text item that displays the current selection in the list box and for the default one: put $CBS_DROPDOWN=1 in the style part of the code: GUICtrlCreateCombo ( "text", left, top [, width [, height [, style [, exStyle]]]] ) Edited January 17, 2008 by mschol
searchresult Posted January 17, 2008 Posted January 17, 2008 How can you make a combo box that a user cannot type into the edit field? #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 633, 447, 193, 115) $Combo1 = GUICtrlCreateCombo("", 168, 80, 145, 25,$CBS_DROPDOWNLIST) GUICtrlSetData($Combo1,"daat|ycx|yxc|yxc") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd try if it helps
DW1 Posted January 17, 2008 Author Posted January 17, 2008 Perfect, exactly what I was after. Thanks to both of you AutoIt3 Online Help
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