[ wxwindows-Bugs-1541532 ] In place editor in wxTreeCtrl and wxGrid
won't go away
SourceForge.net
noreply at sourceforge.net
Wed Aug 16 13:02:35 PDT 2006
Bugs item #1541532, was opened at 2006-08-16 20:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1541532&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Lisong Sun (lisong)
Assigned to: Nobody/Anonymous (nobody)
Summary: In place editor in wxTreeCtrl and wxGrid won't go away
Initial Comment:
Environment:
gtk+-2.6.10
wxWidgets-2.6.2
Symptom:
In wxTreectrl, if wxTreeCtrl::EditLabel is called
repeatedly before the in place editor lose focus (eg,
by select rename option through menu) the in place
editor will stay in there after it lost focus.
Reproduction:
Run the treectrl example in the sample directory and
select rename option from menu several times without
clicking anywhere else.
Analysis:
The reason for this I assume is that different "in
place editor" instance is invoked for each
EVT_TREE_BEGIN_LABEL_EDIT event and each of them is
waiting for their EVT_TREE_END_LABEL_EDIT event. When
there is a rename entry in the menu, the menu selection
won't trigger a lose focus on the already opened in
place editor which eventually cause multiple editors
opening against same label. This can easily introduce
problem that may crash the treectrl.
Not sure if it is only a gtk problem or a wxWidgets
problem. Reproduced on mac too and wxGrid in place
editor shows similar behavior.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1541532&group_id=9863
More information about the wx-dev
mailing list