GetMem
very very nice indeed - thanks for sure
i am replacing a c++ fluxbox/xtdesktop/sysmon plugin - that writes directly to the screent with snprintf
i have been slogging with the c++ code and don't like doing it - now i can easily do it with fpc - your code was very clear and clean also - took no effect to get my fpc sysmon code working
your code works perfectly on linux compiled directly with fpc-3.3.1 with lazarus-2.2.6 installed
and works perfectly with wine64-8.16 compiled directly with ppcrossx64-3.3.1 with lazarus-2.2.6
as an aside
it is nice not having to use wine64 with the
color := clwhite;
setwindowlongptr(self.handle, gwl_exstyle,getwindowlongptr(self.handle, gwl_exstyle) or ws_ex_layered);
setlayeredwindowattributes(self.handle, clwhite, 0, lwa_colorkey);
wine64 code is a real resource hog