Get WindowState Info/Ablak állapotának lekérdezése (Multilang) lazarus / 31-LCL ---------------------------------------------------------------------- TheProgrammer · 2011-09-04 15:12 if WindowState = wsMaximized then    begin    IniFile.WriteString('default', 'maximized', 'True')    end else     begin     IniFile.WriteString('default', 'maximized', 'False')     end; How can i get Windows State info? Hogyan tudom lekérdezni az ablak állapotát? ---------------------------------------------------------------------- felipemdc · 2011-09-04 15:15 You already posted code which does what you want, so I don't understand your question. ---------------------------------------------------------------------- TheProgrammer · 2011-09-04 15:20 This code does not work. Ez a kód nem működik. Maximized windows, INI file: Maximalizált ablak, INI fájl: [default] maximized=False ---------------------------------------------------------------------- TheProgrammer · 2011-09-04 15:25 Already found a problem and was not there. Sorry! Már megtaláltam a hibát és nem ott volt. Bocs! ---------------------------------------------------------------------- Blaazen · 2011-09-04 15:31 This is snippet from my project: Code: [Select]var helpBool: Boolean; .....   with screenIniFile do         begin           try             iniSection:='MainWindow';             helpBool:=(WindowState=wsMaximized);             WriteBool(iniSection, 'wsMaximized', helpBool);             if helpBool=False then               begin                 WriteInteger(iniSection, 'Left', Left);                 WriteInteger(iniSection, 'Top', Top);                 WriteInteger(iniSection, 'Width', Width);                 WriteInteger(iniSection, 'Height', Height);               end;                                            as you can see, it saves window state and coordinates and size. Opposite function: Code: [Select]var wsMaxi: Boolean; .... wsMaxi:=ReadBool(iniSection, 'wsMaximized', True); This is working piece of code, but consider this: WindowState was extended, now it has new state: wsFullScreen. Becaue WindowState is enumeration, if I would write this code again, I would read and write this parameter as Integer (retyped enumeration) rather than Boolean. ---------------------------------------------------------------------- TheProgrammer · 2011-09-04 15:37 Thanks! Kössz!