Technical Information Database
TI950D.txt How to keep the app iconized.
Category :VCL
Platform :All
Product :Delphi 1.0
Description:
iconized apps
Q: How do I keep the form in icon form when I run it?
A:
1. You must set WindowState to wsMinimized in the form's properties.
2. In the private section of the form object's declaration, put:
PROCEDURE WMQueryOpen(VAR Msg : TWMQueryOpen); message WM_QUERYOPEN;
3. In the implementation section, put this method:
PROCEDURE TForm1.WMQueryOpen(VAR Msg : TWMQueryOpen);
begin
Msg.Result := 0;
end;
That's it! The form will always remain iconic.
Reference:
7/16/98 4:33:58 PM
Last Modified: 01-SEP-99