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
TOwnerDrawState = set of (
..
instead LCLType.pp defines in Line 1142
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
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 ?