I use Lazarus-0.9.29-26562-fpc-2.4.0-20100710-win32.exe
My operating system is WinXP SP3.
So.
I put on form Button1 and wrote this into handler:
procedure TForm1.Button1Click(Sender: TObject);
begin
WindowState:=wsMinimized;
end;
Then compile.
When I press Button1, my application minimizes. But when I press taskbar button of my minimized application, it maximize into stupid small window title, glued to the taskbar Start Button:
http://img821.imageshack.us/img821/3448/39663804.pngWell, how to minimize form correct? I mean mininmization must imitate human click on Minimize.