urho icon indicating copy to clipboard operation
urho copied to clipboard

Multiple UrhoSurface in one WinForms-application

Open alexsigmund opened this issue 6 years ago • 2 comments

I have a WinForms application in which i have a UrhoSurface and a dialog that has also an UrhoSurface. The Problem is that the UrhoSurface of the Dialog, when i open the dialog, is closing my Application that is running on the UrhoSurface on my MainForm. I need that they can coexist in parallel.

It would be also a possible option to pause the Application on the UrhoSurface that is on the MainForm, and then resume it when the dialog gets closed.

alexsigmund avatar Jul 27 '18 14:07 alexsigmund

Yeah unfortunately urhosharp doesn't support such scenario 🙁 You have to re-create surface each time you close that dialog

EgorBo avatar Jul 27 '18 16:07 EgorBo

pause the Application on the UrhoSurface that is on the MainForm

I"m able to pause my application, drop out of it into the main OS and run any application desired, then re-enter into my application, and handle any needed reinitialization in OnResume handler.

You would have to reopen the paused app upon closing the dialog. Alternatively, there are simple windows dialogues available that put the urhosurface main app in the background but still visible and active, just clearly behind the dialog and upon closing the dialog all is as it was before the dialog, unless you changed something. This dialog though is not very useful, just a simple info message more or less. with no customization of buttons or styling.

utekai avatar Feb 02 '19 21:02 utekai