Sign in to follow this  
Followers 0
woleium

combo box - non editable (no edit)

2 posts in this topic

Is it possible make a combo box that is not editable?

$res_select = GUICtrlCreateCombo("640 x 480", 30, 30, 100, 25)
    GUICtrlSetData($res_select,"800 x 600|1024 x 768|1280 x 1024|1600 x 1200|Full Screen")

allows the user to edit the contents of the box. How do i stop them from being able to do this?

Share this post


Link to post
Share on other sites



Maybe....

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 193, 115)
$res_select = GUICtrlCreateCombo("", 168, 80, 145, 25,$CBS_DROPDOWNLIST)
GUICtrlSetData($res_select,"800 x 600|1024 x 768|1280 x 1024|1600 x 1200|Full Screen")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

8)


NEWHeader1.png

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