OnCodeThe following code is written: frm_main.windowstate: = wsminimized. After the code is executed, the form is minimized on the desktop (on the taskbar )! In addition Design After the windowstate attribute is set to wsminimized, you can "minimize" the window after the form is initialized on the taskbar, but not on the desktop!
Thank you for your advice !!!
Different objects have different effects
Application. Minimize;
Self. windowstate: = wsminimized
That sentence is Yes For self, not application.
In Delphi, except for the main form, the remaining forms will not appear on the taskbar after being minimized, but will appear in the lower left corner of the desktop as in the old windows 3. X. Add
Setwindowlong (handle, gwl_exstyle, getwindowlong (handle, gwl_exstyle) or ws_ex_appwindow );
The window can be minimized and displayed on the taskbar.