[Lazarus] range check errors in LCL packages
pascaldragon at googlemail.com
Thu Sep 13 10:06:01 CEST 2012
Am 12.09.2012 23:38, schrieb Mattias Gaertner:
>> eg: Try to compile LCL-GTK2 with -CRrt enabled.
>> Error: Class or Object types "TCustomBitBtn" and "TWinControlAccess" are
>> not related
> That's the old style class helper. Not usable with -CT.
Since Lazarus requires 2.6.0 anyway one could change that to use normal
TWinControlHelper = class helper for TWinControl
function GetWinControlFlags: TWinControlFlags; inline; // I hope
inline works in that case, if not one might consider it as a bug and
report it :)
function TWinControlHelper.GetWinControlFlags: TWinControlFlags;
Result := FWinControlFlags;
And then where TWinControlAccess was used:
if not (wcfInitializing in ABitBtn.GetWinControlFlags) and BuildNeeded then
Note: The code was not tested, but it *should* work.
More information about the Lazarus