Hi, thanks to both for your replies. I'm afraid I can't reproduce the error !?
1) Here is what I did:
- create new Project -> wxWidgets project
(then I added a few components to the main Frame1)
- add a second frame using menu wxSmith -> Add wxFrame
-> second Frame2 which is a child of the first
(I added a few components to Frame2, among them a MathPlot which gives some heartache)
...then I noticed that Frame2 is destroyed when I close it, but I only want to hide it, so it can be reopened
-> I tried to create an event OnClose (using the Component Properties/Events window) , in order to overwrite with a 'simple' Hide()
...but this results in the error "cannot create event", same for components inside Frame2,
but everything is fine for Frame1,
and for a third frame which I created same way as Frame2 !
2) reproducing the error:
I have deleted the misbehaving Frame2,
but I found and reinstalled an old version of my program (saved 10 days ago), with Frame2 and Mathplot in it: the problem has disappeared !?
3) submenu "Configure wxSmith for current project"
nothing special inside, I made no changes:
- "automatically loaded ressources" is empty,
- Main resource = Frame1,
- "callwxXmlResource" is ticked
- "'only when necessary' is ticked
Thanks again, and in advance, for any hints!