Sign in to follow this  
Followers 0
TuMiM

combobox non editable with scroll

7 posts in this topic

How do you get a combobox to be non editable with a scroll? I can get it to be non editable without a scroll or scroll but editable but not both. Is it possible?

$Combo1 = GUICtrlCreateCombo("", 40, 64, 169, 160,$CBS_DROPDOWNLIST)

Share this post


Link to post
Share on other sites



What do you mean scroll bar with a combo box?

$Combo1 = GUICtrlCreateCombo("Test 1|Test 2|Test 3", 40, 64, 169, 160,$CBS_DROPDOWNLIST)

[center]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.[/center]

Share this post


Link to post
Share on other sites

Meaning, I have about 15 items for the combobox but when you pull down using the arrow button it does not show all the entries. With the attached code it doesn't give a side scroll bar so that you can scroll through the rest of the entries. If i remove the $CBS_DROPDOWNLIST it will give me the side scroll but then you will be able to type into the combobox and I don't want text to be typed in it.

Share this post


Link to post
Share on other sites

Maybe the width or height is wide or high enough... did you try something silly like 300 width and 500 height?


[center]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.[/center]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

no, there are a lot more items that are not showing in the combo box. If i push a letter it will go to those but they will no show up in the drop down box and i can't scroll to them because there is no scrollbar

Edited by TuMiM

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

GUICtrlCreateCombo("", 40, 64, 169, 160, BitOR($CBS_DROPDOWNLIST, $WS_VSCROLL))

Edited by tonedeaf

Share this post


Link to post
Share on other sites

Actually, I ended up finding the answer. But thanks for all the help!!

code]$Combo1 = GUICtrlCreateCombo("", 40, 64, 170, 160,$CBS_DROPDOWNlist + $CBS_AUTOHSCROLL + $WS_VSCROLL)

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