Jump to content

GUICtrlCreateCombo question


Bert
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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

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 by Gif
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...