LCL versus FreePascal - TOwnerDrawState - TOwnerDrawStateType lazarus / 31-LCL ---------------------------------------------------------------------- PeterX · 2021-08-06 20:38 While replacing unit JwaWindows with the default Windows unit in an old project I at first wasn't able to solve a conflict .. In the release 2.0.12 Lazarus Version .. redef.inc (FreePascal)  defines in Line 72 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 TOwnerDrawState = set of (..  instead LCLType.pp defines in Line 1142 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   TOwnerDrawStateType = (  ...  TOwnerDrawState = set of TOwnerDrawStateType;  I had to place unit LCLType behind unit Windows to "overwrite" the type TOwnerDrawState with the one that LCL uses in unit stdctrls.pp in line 262 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   TDrawItemEvent = procedure(Control: TWinControl; Index: Integer;                           ARect: TRect; State: TOwnerDrawState) of object;  TDrawItemEvent  does not use TOwnerDrawStateType. This does not look good to me .. Somebody knows if this is "fixed" in the next release ?