Open DanRathbun opened 1 year ago
No sure if I think the "hide all third party dialogs" is a very good use-case. These types of user cases often make too many assumptions on behalf of the user.
This comes from a Mac user who may be on a small notebook. I think the Mac edition has a "Hide All" command which will hide (or minimize) native dialogs, but not html based extension windows.
This is likely to be less used on MS Windows platform especially if we get dockable HtmlDialog panels (where we can use the AutoHide feature.)
But there are some scenarios where (rather than moving a floating window off screen) it will be better to minimize the dialog window into the taskbar JumpList so that the dialog content is not lost and the window would need to be reloaded and all the callback methods reattached.
It is true that a user can manually minimize dialog windows individually, but a Ruby method allows menu commands to be written which can allow keychord shortcuts to be assigned. (Currently HtmlDialog window captions do not automatically appear on the Window menu nor in the shortcuts list.)
SketchUp Ruby API Issue Feature Request
[REQ]
UI::HtmlDialog
#minimize and #restore methods.It would be nice if a Ruby command could minimize all dialogs and another could later restore those minimized.
This could be used because there is no native command to do this. (A Mac user has recently requested a "Hide All 3rd Party Dialogs" command.)
We can create a command to close them like so ...
... but it is probable that users would rather temporarily "put them out of sight" (minimize) so that they do not lose their content.
A
::minimize_all()
and::restore_all()
method could be class methods.~