wxListBox "selection disabled" style

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
ButtonPolisher
Earned a small fee
Earned a small fee
Posts: 14
Joined: Wed Jun 30, 2021 3:22 am

wxListBox "selection disabled" style

Post by ButtonPolisher »

Hi,

Is there a way to disable item selection in a wxListBox? For example, in WinAPI this can be done via a LBS_NOSEL style.

Thank you.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxListBox "selection disabled" style

Post by doublemax »

To my best knowledge: No.

What exactly do you need? Maybe another control could be used instead.
Use the source, Luke!
ButtonPolisher
Earned a small fee
Earned a small fee
Posts: 14
Joined: Wed Jun 30, 2021 3:22 am

Re: wxListBox "selection disabled" style

Post by ButtonPolisher »

Thank you for your reply. I was exploring wxWidgets and was wondering if this WinAPI ListBox selection mode is covered by wxListBox.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxListBox "selection disabled" style

Post by ONEEYEMAN »

Hi,
I believe you can catch selection event and turn the selection style off in the handler.

Thank you.
Post Reply