So I’ve been working on a drop-down box, like the URL bar in Google Chrome, but I’m finding that when the focus is still in the TextCtrl and I mouse-over the VListBox, the selection color is grey rather than blue due to the lack-of-focus.
How can I set the unfocused selection color to match the focused selection color?
Oh, I found this and it seems to be working! I thought before I’d tried this with no success, but glad it was so easy:
myVListBox.SetSelectionBackground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHT))
···
On Thursday, August 28, 2014 5:12:22 PM UTC-7, Nathan McCorkle wrote:
So I’ve been working on a drop-down box, like the URL bar in Google Chrome, but I’m finding that when the focus is still in the TextCtrl and I mouse-over the VListBox, the selection color is grey rather than blue due to the lack-of-focus.
How can I set the unfocused selection color to match the focused selection color?