From: Mattia B. <mb...@ds...> - 2002-03-31 20:42:12
|
> 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 > 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? > i expect that if i press "ENTER" in edit state > (no mather if i renamed it or not) that an EVT_TREE_END_LABEL_EDIT ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ see documentation for wxTC::EditLabel > is called and the item is no longer in edit state > 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 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. BTW: I am using Win2k Regards Mattia |
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 |
From: Mattia B. <mb...@ds...> - 2002-04-08 17:53:41
|
> >>Found a fix ( I hope ); download the modified wx22_9.dll from > >>http://wwwstud.dsi.unive.it/~mbarbon/wx/wx22_9.dll.gz <snip> > tried your dll too... > works fine until i start edit a treeItem with > $tree->EditLabel($selection); > after that it doesn't even work if i start edit it by clicking > twice with the mouse :-( Works for me... minimal.txt attached, right click on the tree ctrl to start editing. If you can moify it to meke it fail I'll try to correct it. Thanks for the patience! Mattia |
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 |