From: Mattia B. <mb...@ds...> - 2002-04-02 17:34:21
|
[ attached the modified minimal.txt I used for testing ] > > > 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 Thanks! > 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... Works for me ( almost ); the sequence of begin/end is OK ( the one I wrote above ); the only problem is that ESC does not cancel editing ( id does nothing ), but this is because it is eaten by the dialog, AFAIK > any help welcome... > not to forget: > i'm using win98 with activePerl 5.6.1 Shot in the dark: it may be Win98, or the comctl32 version; what version of IE have you installed? Does upgrading comctl32.dll help? ( there is one available for download somewhere in MS site, and it comes with IE ). I have IE 5.5 ( comctl32 5.81 ). Regards Mattia |