Forum > LCL
[Solved] Linux : intercept on Maximize ?
(1/1)
GillesH:
Hello,
This code works with Windows :
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---[...]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:
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:
Thank you very much.
Regards. Gilles
Navigation
[0] Message Index