I created a wxPanel with lots of gui elements and I've done with the event handlers and so on when I suddenly realized what I need is a wxDialog not a wxPanel. And it seems I can't show a wxPanel as modal dialog.
I tried to change its class name but there is no such option for the root element.
Is there any way to convert a wxPanel to wxDialog?
Even if I try to rename the file rename every wxPanel to wxDialog in the wxs, rename and refactor everything in the H and CPP file, trying to remove the wxs from the project and add it again manully by writing the cbp file it still somehow find the way to turn everything back to wxPanel and still show that resource among the wxpanels, As soon as I changed a label in a button and I hit save it ruins all my refactorings and turns every wxDialog back to wxPanel. Where is the magic that does this and how to circumvent that?
Do I really need to start over every time from scratch after such wrong decisions?