Jump to content
Sign in to follow this  
Edifice

GUICtrlCreateCombo

Recommended Posts

Edifice

Is there anyway to prevent the user from alterting the items in a GUICtrlCreateCombo?

Share this post


Link to post
Share on other sites
dantay9

Did you try disableing it with GuiCtrlSetState?


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites
BrettF

Yes. You search for it. And then you find this:

Global Const $CBS_DROPDOWNLIST = 0x0003

$gui = GUICreate("Example", 400, 50)
$combo = GUICtrlCreateCombo("Jon", 10, 10, 380, 25, $CBS_DROPDOWNLIST)
GUICtrlSetData (-1, "JPM|Jos|Valik")

GUISetState ()

While 1
    $nMsg = GUIGetMsg ()
    Switch $nMsg
        Case -3;Exit
            Exit
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites
Edifice

Thanks very much!

Sorry for not finding it in the help file if it was there - don't think I didn't try.

Edited by Edifice

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.