[Solved] Linux : intercept on Maximize ? lazarus / 31-LCL ---------------------------------------------------------------------- GillesH · 2017-04-16 08:28 Hello, This code works with Windows :Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i [...]uses  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,   LMessages; type   { TForm1 }   TForm1 = class(TForm)   private    { private declarations }     procedure WMSysCommand (var Message: TLMSysCommand); message LM_SYSCOMMAND;  public    { public declarations }   end; var  Form1: TForm1; implementation {$R *.lfm} { TForm1 } procedure TForm1.WMSysCommand(var Message: TLMSysCommand) ;begin  ShowMessage('OK');end;[...] With Linux, no compile error reported but no display of message 'OK'. An error in my code, a 'limit' of gtk2 or ... ? Thanks. Regards. Gilles ---------------------------------------------------------------------- balazsszekely · 2017-04-16 09:01 I think you need something custom made to work on every major platform(see attachment). Feel free to modify it according to your needs. ---------------------------------------------------------------------- GillesH · 2017-04-16 10:15 Thank you very much. Regards. Gilles