wxTreeCtrl SelectItem behavior

Hi,

I have observed a difference in the behavior of the TreeCtlr's
SelectItem method between 2.8 and 2.9 (on Windows haven't tested other
platforms yet) that I am wondering if it was intentional.

Calling SelectItem while another window has the focus in 2.8 leaves
the focus in the other window, however in 2.9 the TreeCtrl steals the
focus when SelectItem is called.

This can be seen in the attached sample application. Clicking on the
SelectChild1 button when running under 2.8 will show that the items is
selected but it does not steal the focus, on 2.9 the control will take
the focus.

Cody

treetest.py (1.15 KB)

I don't think this was intentional. Please create a ticket about it.

···

On 11/5/10 9:30 AM, Cody Precord wrote:

Hi,

I have observed a difference in the behavior of the TreeCtlr's
SelectItem method between 2.8 and 2.9 (on Windows haven't tested other
platforms yet) that I am wondering if it was intentional.

Calling SelectItem while another window has the focus in 2.8 leaves
the focus in the other window, however in 2.9 the TreeCtrl steals the
focus when SelectItem is called.

--
Robin Dunn
Software Craftsman