Ask Your Question
0

Cannot set combobox readonly

asked 2018-09-08 20:08:29 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I want to prevent user to type into combobox. But if I set it readonly, I cannot select any item, because it looks like combobox is empty. If I unset readonly, items appear - only after script in writer is run second time...

Can this be done at all?

Also, combobox's "enabled" property doesn't seem to have any effect at all.

edit retag flag offensive close merge delete

Comments

@MarjanMr Please do not click on post as wiki when asking/answering a question. It helps no one.

Ratslinger gravatar imageRatslinger ( 2018-09-08 20:36:15 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-09-08 20:39:56 +0200

Ratslinger gravatar image

Hello @MarjanMr,

One of the purposes of the combo box is to allow the entry of items other than what is in the list. If you do not want this you should be using a list box.

The Enabled property works the same on all controls. If set to Yes it may be selected. If set to No it cannot be selected.

edit flag offensive delete link more

Comments

That's right, one of the purposes. And I cannot decide, which purpose I will use. Anyway, listbox, turned into dropbox, does work. Thank you for your answer.

MarjanMr gravatar imageMarjanMr ( 2018-09-09 17:30:07 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-09-08 20:08:29 +0200

Seen: 43 times

Last updated: Sep 08 '18