How to listen to multi-item selection with wxListCtrl

Andreas Falkenhahn <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Hi,

the answer to this must be really obvious but for some reason I just don't see it. When using a multi-selection wxListCtrl I can listen to EVT_LIST_ITEM_SELECTED to learn if an item is selected. However, EVT_LIST_ITEM_SELECTED is only sent in case a single new item is selected, either by clicking on it or by holding down CTRL and then clicking on an item to add it to the batch of currently selected items.

However, when holding down SHIFT and clicking on an item to select *all* items between the active and the clicked item I'm not getting EVT_LIST_ITEM_SELECTED at all. So how am I supposed to learn about the selection of multiple items using LMB+shift? Is there an event for this or does this need to be done the hard way by installing a generic LMB listener or something?

I'm on MSW.

-- 
Best regards,
 Andreas Falkenhahn                          mailto:[email protected]

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/53704928.20230828210029%40falkenhahn.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.