I still think it is a good solution as long as "ConfirmReplaceDlg" is used.
I'm sorry, but within the content we are talking about this is not an option.
Edit: For clarification: Hijacking foreign dialogs and mis-using them within a foreign content is no good.
Did anybody really read what I post?
I try to make it a little bit clearer.
There is
existing code in editormanager.cpp,
not written by me.
I don't know who the author is and I think this doesn't matter.
The fact is: this code is there and it is used.I also think that Hijacking code is not good, because if the author of the "stolen" code changes it, it might break something.
But: I didn't do that, it was a C::B-developer, or a C::B-developer decided to put in into svn!
No problems with that.
The changes to the xrc-files on the other hand do not break the original-code. The only change the original behaviour, when the label contains too long text. This is a standard-beaviour when using sizers in wxWidgets, and that is one of the main causes to use them.
The clean solution would be to rewrite the editormanager-code.
Perhaps I will do so, but I don't have enaough time to do so until (perhaps) the next weekend.