wxTreeCtrl with no selected item?
Andreas Falkenhahn <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
For some reason I can't get wxTreeCtrl to work properly with no selected item on MSW. I'm using the following code to deselect the focused item: wxTreeItemId id = tc->GetFocusedItem(); if(id.IsOk()) tc->Unselect(); This works correctly. However, when using ALT+TAB to switch to another TLW window and then switching back to the TLW that contains the wxTreeCtrl the item I've just deselected automatically gets the focus again and becomes selected and EVT_TREE_SEL_CHANGED is triggered. Is this intended behaviour? -- 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/138482660.20231226182701%40falkenhahn.com.