Bert Posted August 6, 2007 Share Posted August 6, 2007 I have a line of code: $Combo_1 = GUICtrlCreateCombo("", 8, 8, 190, 20, $CBS_DROPDOWN+$CBS_SORT) I want to make it so the user can't edit what is in the combo box. They can only choose one of the choices given in the combo. I tried adding $ES_READONLY, but it doesn't work. I know I could use GUICtrlCreateList, but it isn't what I want to do. I like the style of GUICtrlCreateCombo for what I'm designing. In searching the helpfile, I'm out of ideas. Thoughts? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Gif Posted August 6, 2007 Share Posted August 6, 2007 I have a line of code: $Combo_1 = GUICtrlCreateCombo("", 8, 8, 190, 20, $CBS_DROPDOWN+$CBS_SORT)oÝ÷ ØÛh©Û(¶®±êÜj}ýµçb·Z¶+"Ø^r¡º1N²q©è,zÞ¡ûayÈhǬ+Þ)íç(º¶¸u§]x4ß¡D@8ÒØnëbµÚ²}ý· +'£¢é]ºÇP®P«y«^.+-nëb¶+'ßÛp«HÁ©í¶h"X¤zØ^²Ü¥zÆP®P«y«^ ¡ú+Â#fuë"x§ìyªÜ)ඡzZ_WßÙ¨ºÚ×±8hºm³ú®¢×¯&ÚºÚ"µÍÌÍÐÛÛX×ÌHHÕRPÝÜX]PÛÛXÊ ][ÝÉ][ÝËNL ÌÍÐÐ×ÑÔÕÓTÕ ÉÌÍÐÐ×ÔÓÔ Link to comment Share on other sites More sharing options...
Valuater Posted August 6, 2007 Share Posted August 6, 2007 is there an echo in here???? ...anyways another view... 1 liner #include <GUIConstants.au3> GUICreate(":(") $Combo_1 = GUICtrlCreateList("", 8, 8, 190, 30) GUICtrlSetData( -1, "Sun|Mon|Tue|Wed|Thu|Fri|Sat") GUISetState() While 1 If GUIGetMsg() = -3 Then Exit WEnd 8) Link to comment Share on other sites More sharing options...
Gif Posted August 6, 2007 Share Posted August 6, 2007 (edited) is there an echo in here???? ...anyways another view... 1 liner #include <GUIConstants.au3> GUICreate(":(") $Combo_1 = GUICtrlCreateList("", 8, 8, 190, 30) GUICtrlSetData( -1, "Sun|Mon|Tue|Wed|Thu|Fri|Sat") GUISetState() While 1 If GUIGetMsg() = -3 Then Exit WEndoÝ÷ ÛÏêº^ØbKaz·¢²«¨µéÚ Edited August 6, 2007 by Gif Link to comment Share on other sites More sharing options...
Valuater Posted August 6, 2007 Share Posted August 6, 2007 That be it Gif 8) Link to comment Share on other sites More sharing options...
Bert Posted August 6, 2007 Author Share Posted August 6, 2007 Perfect. That is exactly what I need. Thanks! The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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