#12705: Multiple list boxes deselection does not work

7 views
Skip to first unread message

wxTrac

unread,
Nov 22, 2010, 7:40:33 PM11/22/10
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/12705>

#12705: Multiple list boxes deselection does not work
--------------------+-------------------------------------------------------
Reporter: mycae | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version:
Keywords: | Blockedby:
Patch: 0 | Blocking:
--------------------+-------------------------------------------------------
As discussed at the following link, the sample listbox, if set to multiple
selection style, cannot be deselected with SetSelection(wxNOT_FOUND), as
stated in the documentation. This occurs purely under windows 7 and is
fine under OSX and under GTK. This can be worked around with
SetSelection(-1,false), however.

http://wxforum.shadonet.com/viewtopic.php?t=29463


--
Ticket URL: <http://trac.wxwidgets.org/ticket/12705>

wxTrac

unread,
Nov 23, 2010, 8:10:57 AM11/23/10
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/12705#comment:1>

#12705: Multiple list boxes deselection does not work

---------------------+------------------------------------------------------
Reporter: mycae | Owner:
Type: defect | Status: closed


Priority: normal | Milestone:
Component: wxMSW | Version:

Resolution: fixed | Keywords:
Blockedby: | Patch: 0
Blocking: |
---------------------+------------------------------------------------------
Changes (by VZ):

* status: new => closed
* resolution: => fixed


Comment:

(In [66243]) Deselect all items in wxMSW wxListBox when selection is set
to -1.

Even though this behaviour is somewhat counterintuitive, the documentation
mentions that this is what should happen and wxGTK and wxOSX already
behave
like this so bring wxMSW in line.

wxListBox::DeselectAll() should probably just call
SetSelection(wxNOT_FOUND)
when the item to leave selected is not specified too now.

Closes #12705.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/12705#comment:1>

Reply all
Reply to author
Forward
0 new messages