Minimize WebDialog from code?
-
Hi,
Is there some way to minimize/restore WebDialog programmatically from code?
In my plugin, after user enter all data in the dialog and press Start, model is exported and some simulations are started. I do not close dialog, because it may be needed after calculation is finished, so it would be good that dialog is minimized while simulation is running.
I haven't found in API appropriate function for that and no info on the forum too.
Thanks in advance,
Marija -
You can resize it, you can position it off-screen but I do not know any method for minimizing it unless you somehow manage to trigger a mouse-click on the minimize button.
-
@gábor said:
You can resize it, you can position it off-screen but I do not know any method for minimizing it unless you somehow manage to trigger a mouse-click on the minimize button.
Thanks, it seems like good solution for now.
Resize it to really small value (so only title bar is visible), and then when calculation is finished resize it back to original size.Only problem is that if I want to restore original size while calculation is running, minimize/restore button restores to small window size (and not original one).
Other ideas are welcome too,
Marija -
The current API is lacking in good control over the WebDialog windows.
Under Windows you can use the Win32API if you are familiar with the Win32 API. -
maybe I'm missing the point...
@dlg.set_size(100,100) @dlg.set_position(100,100)@dlg.set_size(1000,1000) @dlg.set_position(100,100)can switch between 2 sizes at the same position...
john
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement