forlano Messages: 1185 Registered: March 2006 Location: Italy
Senior Contributor
Hello,
I need to intercept the actions Add/Insert row and Delete/Remove row in an ArrayCtrl. Each signal need its own treatment. I've seen there are many When... but I do not know if among them there is what I need. I've tried all but seem I can't distinguish the two actions.
Of course I can bypass the problem attaching a callback to some button instead of the array, but this last way is a bit cumbersome in my code (perhaps I need to rewrite part of it)
I need to intercept the actions Add/Insert row and Delete/Remove row in an ArrayCtrl. Each signal need its own treatment. I've seen there are many When... but I do not know if among them there is what I need. I've tried all but seem I can't distinguish the two actions.
Of course I can bypass the problem attaching a callback to some button instead of the array, but this last way is a bit cumbersome in my code (perhaps I need to rewrite part of it)
Luigi
I recommend to override WhenBar and supply your own menu commands (using ArrayCtrl primitives). It is the easy and effective way (and menu hotkeys are still active for ArrayCtrl).