Sign in to follow this  
Followers 0
tbaror

GUICtrlCreateCombo read only

12 posts in this topic

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



$combo = GUICtrlCreateCombo("Test_Combo", 100, 20, 100, 20, $CBS_DROPDOWNLIST)

Share this post


Link to post
Share on other sites

Thank you all :)

Share this post


Link to post
Share on other sites

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

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

thank you SmOke_N

Share this post


Link to post
Share on other sites

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

ne ideas?

Share this post


Link to post
Share on other sites

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

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