shaamaan Posted March 1, 2007 Share Posted March 1, 2007 hi, it is possible to make readonly combo like for example GUICtrlCreateEdit with $ES_READONLY? thaks Link to comment Share on other sites More sharing options...
Helge Posted March 1, 2007 Share Posted March 1, 2007 GUICtrlCreateCombo("", 10, 10, 280, 100, $CBS_DROPDOWNLIST) Link to comment Share on other sites More sharing options...
shaamaan Posted March 1, 2007 Author Share Posted March 1, 2007 wow! that was quick many many thaks! Link to comment Share on other sites More sharing options...
enaiman Posted March 2, 2007 Share Posted March 2, 2007 GUICtrlCreateCombo("", 10, 10, 280, 100, $CBS_DROPDOWNLIST) That's great Helge ... However, if the combo's content is quite long ... this style will make the slider to dissapear and it will be quite difficult to scroll up/down the list. It could be possible to do this and preserve the scroll ability? Thanks, SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 2, 2007 Moderators Share Posted March 2, 2007 (edited) #include <guiconstants.au3> Dim $string = '' For $iCC = 1 To 500 $string &= $iCC & '|' Next GUICreate('example') $combo = GUICtrlCreateCombo("", 10, 10, 280, 100, BitOR($CBS_DROPDOWNLIST, $WS_VSCROLL)) GUICtrlSetData($combo, $string) GUISetState() While GUIGetMsg() <> -3 WEnd Edited March 2, 2007 by SmOke_N 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. Link to comment Share on other sites More sharing options...
Helge Posted March 2, 2007 Share Posted March 2, 2007 However, if the combo's content is quite long ... this style will make the slider to dissapear and it will be quite difficult to scroll up/down the list.Sorry about that one, I hadn't tested it with so much data Link to comment Share on other sites More sharing options...
enaiman Posted March 7, 2007 Share Posted March 7, 2007 #include <guiconstants.au3> Dim $string = '' For $iCC = 1 To 500 $string &= $iCC & '|' Next GUICreate('example') $combo = GUICtrlCreateCombo("", 10, 10, 280, 100, BitOR($CBS_DROPDOWNLIST, $WS_VSCROLL)) GUICtrlSetData($combo, $string) GUISetState() While GUIGetMsg() <> -3 WEnd That's a GREAT idea - you just saved me a whole lot of time. THANK YOU SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
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