ID:2117259
 
Applies to:Dream Seeker
Status: Open

Issue hasn't been assigned a status value.
Code:
Player
verb
Minimize()
winset(src,"Main","is-minimized=true")


Problem description:

This doesn't trigger the normal animation that occurs when you minimize a window. In Windows 10 there's a fade and scale animation of the window reducing into the task bar.

Is it possible to add that as a feature? This code simply makes the window instantly vanish.

I was thinking like we have .quit() it would be really nice to have .minimize()

The window is minimized by setting the WS_MINIMIZE style. If there's more work required to minimize with animation, I'm not aware of it; this also appears to be Google-proof.
Perhaps, instead of setting a style - can you use the ShowWindow function?

Or would that not be applicable to how BYOND draws windows?
ShowWindow() should simply do the exact same thing.
Think of setting the style as setting loc directly, thank of calling ShowWindow() as using Move().
In response to Nadrew
Nadrew wrote:
Think of setting the style as setting loc directly, thank of calling ShowWindow() as using Move().

ShowWindow() might properly invoke the Aero effects, though. (perhaps AnimateWindow() with AW_BLEND?)
That was my point.
the docs seem to imply that the WS_MINIMIZE style is designed for windows that start out minimized. I don't know if it's intended to be used for minimizing them. https://msdn.microsoft.com/en-us/library/windows/desktop/ ms632600(v=vs.85).aspx