From: Marco T. <wx...@so...> - 2002-04-01 18:17:14
|
> > hello, > > i have a treectrl which is editable... > > > > if i start edit an EVT_TREE_BEGIN_LABEL_EDIT is called... that's ok... > > > > if i press "ENTER" (without changing the name), a EVT_TREE_BEGIN_LABEL_EDIT > > is called again... > I don't see this yes, right... looks like this happens only in my special situation > > if i rename it and press "ENTER" an EVT_TREE_END_LABEL_EDIT and then an > ok > > > EVT_TREE_BEGIN_LABEL_EDIT is called... > not ok > > > in both cases, the treeItem stays in edit state... > weird; are you using some EVT_CHAR handler? no > > is this a mistake from my side or a bug? > > any hints/ideas? > > Don't know: I am seeing the expected behaviour: > - beginning editing sends a EVT_TREE_BEGIN > - leaving the textctrl without changes > ( via enter or mouseclick ) > or pressing esc stops editing and does not > generate any event > - leaving the textctrl after some changes > ( via enter or mouseclick ) > stops editing and generates an EVT_TREE_END yes, my opinion... > I reproduced this in the treectrl sample, adding > two event handlers for EVT_TREE_BEGIN/END. > > As usual: minimal changes against some sample > showing the problem are welcome. the samples aren't usuable for my situation... i minimized my application to the treectrl and uploaded it: http://www.soapy.ch/temp/minimal.txt well, the minimal sample works fine... but my way in a wxDialog doesn't work... i assume a programming mistake from my side, but i'm really unable to find it... any help welcome... not to forget: i'm using win98 with activePerl 5.6.1 greeting Marco |