tbaror Posted October 3, 2007 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
BrettF Posted October 3, 2007 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!
smashly Posted October 3, 2007 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
rasim Posted October 3, 2007 Posted October 3, 2007 $combo = GUICtrlCreateCombo("Test_Combo", 100, 20, 100, 20, $CBS_DROPDOWNLIST)
BrettF Posted October 3, 2007 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!
laffo16 Posted November 22, 2007 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!
Moderators SmOke_N Posted November 22, 2007 Moderators 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.
laffo16 Posted November 23, 2007 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?
laffo16 Posted November 23, 2007 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now