Lazarus and TMessageEvent from delphi? lazarus / 4-Ported from Delphi-Kylix ---------------------------------------------------------------------- snorkel · 2016-02-05 21:41 Hi, I am trying to get Overbyte ICS to compile (old version 5) anyways it is raising a error on TMessageEvent: EmulVT.pas(301,24) Error: Identifier not found "TMessageEvent" which is:    FAppOnMessage    : TMessageEvent;  Is there a FPC/Laz equivalent? I tried to google "Lazarus and tmessagevent" but got nothing back. ---------------------------------------------------------------------- marcov · 2016-02-05 23:32 TMessageEvent is a windows specific event type of TApplication.Onmessage. To my best knowledge Lazarus does not implement that event. The type however is easy to define: 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   TMessageEvent = procedure (var Msg: TMsg; var Handled: Boolean) of object; ---------------------------------------------------------------------- snorkel · 2016-02-05 23:44 Thanks :-) I did stick that in the unit and I got past that part of the compile. ---------------------------------------------------------------------- snorkel · 2016-02-06 16:15 Getting a not found error on flags i.e. {$IFDEF COMPILER6_UP}         Flags     := (Flags and not tfCRLF) or (tfCRLF * Byte(Style)); {$ENDIF}  I don't have a copy of Delphi to look it up, and google was not helpful searching for flags. ---------------------------------------------------------------------- marcov · 2016-02-06 17:03 I usually use the online available delphi information like http://docs .embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/h tml/delphivclwin32/System_TTextRec.html By googling it seems that tfcrlf is a bit flag for the (text?) file descriptors "flags" field. That field is used by FPC to pass the following info: sysfile.inc:  when (flags and $100)   the file will be append sysfile.inc:  when (flags and $1000)  the file will be truncate/rewritten sysfile.inc:  when (flags and $10000) there is no check for close (needed for te to do_open. (the system dependent file open function), but I can't find any other use. so probably whatever it is, it is not implemented in a compatible way. Does it manipulate ttextrec(f).flags? ---------------------------------------------------------------------- snorkel · 2016-02-10 06:04 just in case anyone is interested. The version 5 of ICS compiles with Lazarus 1.6rc2 if you create everything in code.  However the newer ones required too much fooling around to get working. So anyway what I wanted to do was get my Delphi app that uses the ICS ftpserver ported over to lazarus but I discovered the FTP server component in indy 10 works perfectly in Laz 1.6 and FPC 3.0 and the SSL is fully functioning as well, so I am using that to port the app now. ---------------------------------------------------------------------- HermanR · 2016-04-20 07:32 Hello, I want to make some sort of screenlock with special info on it. Therefore I need a click/button timeout. To reset the timer I wanted to use the OnMessage event and filter the WM_MouseDown and WM_KeyPress events. Can anyone advice on how to do this? I use Lazarus 1.4.0 / fpc 2.6.4 on Win7/64bit. Target app WinCE 5 Thanks in advance ---------------------------------------------------------------------- HermanR · 2016-04-20 08:12 I found my solution in another post Topic: Is there a function that allows form to capture events on child controls?  (Read 1441 times) Sorry I didn't find it first