Paulie Posted June 22, 2008 Posted June 22, 2008 I've tried all I can think of, but i can't figure out how to make a combobox Readonly Such that you must select an item from the list, and aren't able to type items manually. I tried using "$ES_READONLY" but as expected, it didn't work. Help plz ty
Xandl Posted June 22, 2008 Posted June 22, 2008 Hello, try to set the combobox style to $CBS_DROPDOWNLIST. ciao Xandl
BrettF Posted June 22, 2008 Posted June 22, 2008 #include <GUIConstantsEx.au3> #include <ComboConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 233, 57, 193, 125) $Combo1 = GUICtrlCreateCombo("Parts", 8, 8, 217, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL)) GUICtrlSetData (-1, "Parts 1|Parts 2|Parts 3") $Label1 = GUICtrlCreateLabel("Label1", 8, 32, 220, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Combo1 GUICtrlSetData ($Label1, "You have selected '" &GUICtrlRead ($Combo1)&"'") EndSwitch WEnd Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Paulie Posted June 23, 2008 Author Posted June 23, 2008 (edited) Thank you ver ver ver much Edited June 23, 2008 by Paulie
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