tbaror 0 Posted October 3, 2007 Hello, i am trying to create GUICtrlCreateCombo with static data that user could nod change value in combo menu i didn't found how to do it please advise Thanks Share this post Link to post Share on other sites
BrettF 28 Posted October 3, 2007 Use this style in the combo: $CBS_DROPDOWNLIST Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Share this post Link to post Share on other sites
smashly 12 Posted October 3, 2007 Hi,#include <GUIConstants.au3> GUICreate("GUI combo with the style $CBS_DROPDOWNLIST", 400, 40) GUICtrlCreateCombo ("item1", 10,10,380,-1, $CBS_DROPDOWNLIST) GUICtrlSetData(-1,"item1|item2|item3","item1") GUISetState () While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Cheers Doh.. to slow Share this post Link to post Share on other sites
rasim 24 Posted October 3, 2007 $combo = GUICtrlCreateCombo("Test_Combo", 100, 20, 100, 20, $CBS_DROPDOWNLIST) Share this post Link to post Share on other sites
BrettF 28 Posted October 3, 2007 Wow. So many people with the same outcome... I won Hehehehehehe... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Share this post Link to post Share on other sites
laffo16 1 Posted November 22, 2007 i need to none-editable drop down as shown above except with the scroll bar. Is this at all possible? - Scrollable / None Writable drop down. thank you! Share this post Link to post Share on other sites
SmOke_N 211 Posted November 22, 2007 i need to none-editable drop down as shown above except with the scroll bar. Is this at all possible? - Scrollable / None Writable drop down. thank you!#include <GUIConstantsEx.au3> $hGUI = GUICreate("") $hCombo = GUICtrlCreateCombo("", 10, 10, 50, 400, BitOR($WS_VSCROLL, $CBS_DROPDOWNLIST)) $sAddTo = "" For $i = 1 To 100 $sAddTo &= $i & "|" Next GUICtrlSetData($hCombo, $sAddTo) GUISetState() While GUIGetMsg() <> -3 WEnd Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Share this post Link to post Share on other sites
laffo16 1 Posted November 23, 2007 thank you SmOke_N Share this post Link to post Share on other sites
laffo16 1 Posted November 23, 2007 i was wondering if its also possible to, have 2 drop menus in a gui, and when one is changed, the other will switch the data it contains. sort of like the driver download script you get from radeon except in 2 drop down menus. ne ideas? Share this post Link to post Share on other sites
laffo16 1 Posted November 23, 2007 nm, i didnt realise that $C_Combo2 = GUICtrlCreateCombo("", 104, 77, 49, 200, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL,$WS_VSCROLL)) ....code.... Case $C_Combo2 could be used as a trigger. as well as gui buttons. Share this post Link to post Share on other sites