Minimize form in Firemonkey application

2019-07-19 04:44发布

问题:

I use this:

Application.Minimize;

in Vcl delphi application, but in Firemonkey I've got Undeclared identifire error.

How can I minimize my firemonkey form?

回答1:

Try using the WindowState property like so

WindowState := TWindowState.wsMinimized;