News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

wxComboBox text entry only disable

Started by spflanze, January 23, 2020, 05:30:45 AM

Previous topic - Next topic

spflanze

Is there a way to disable text entry in wxComboBox control, while still allowing the user to select from its list?

stahta01

#1
style wxCB_READONLY might be worth reading about; but, I am not certain it is what you want.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Switching to wxChoice control is better in my opinion.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]