lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[4]: [lmi] Code review: product editor


From: Vadim Zeitlin
Subject: Re[4]: [lmi] Code review: product editor
Date: Thu, 22 Mar 2007 00:38:12 +0100

On Thu, 22 Mar 2007 00:31:06 +0100 Evgeniy Tarassov <address@hidden> wrote:

ET> I'd expect an EVT_TREE_SEL_CHANGED event to be generated,
ET> but from WX docs:
ET>   wxTreeItemId GetItem() const
ET>   Returns the item (valid for all events).
ET> Such an event could only return the root node id.

 This is a misunderstanding, "valid for all events" doesn't mean that the
returned wxTreeItemId is always valid (it is not) but just that it is legal
to call GetItem() from any tree event handler, unlike, say, GetKeyCode()
method of the same class which can only be called from TREE_KEY_DOWN event
handler.

 Regards,
VZ





reply via email to

[Prev in Thread] Current Thread [Next in Thread]