Sign in to follow this  
Followers 0
Swimming_Bird

Read only Combobox?

4 posts in this topic

How can i make it so they cant input any thing into the combbobox and are forced to use defined values?

Thanks.

Share this post


Link to post
Share on other sites



How can i make it so they cant input any thing into the combbobox and are forced to use defined values?

Thanks.

like this:

#include<guiconstants.au3>
$gui = GUICreate("blah",200,200)
$cb = GUICtrlCreateCombo("",10,10,175,190,$CBS_DROPDOWNLIST)
GUICtrlSetData($cb,"My|Choices|Only","")
GUISetState()
While 1
    $msg = GUIGetMsg()
    select
    Case $msg = $GUI_EVENT_CLOSE
        Exit
    EndSelect
WEnd

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

like this:

#include<guiconstants.au3>
$gui = GUICreate("blah",200,200)
$cb = GUICtrlCreateCombo("",10,10,175,190,$CBS_DROPDOWNLIST)
GUICtrlSetData($cb,"My|Choices|Only","")
GUISetState()
While 1
    $msg = GUIGetMsg()
    select
    Case $msg = $GUI_EVENT_CLOSE
        Exit
    EndSelect
WEnd
thx, i dont know how i missed that.

Share this post


Link to post
Share on other sites

thx, i dont know how i missed that.

np, glad i could help

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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