[Lazarus] Extending TRect breaks Lazarus
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Nov 6 19:25:01 CET 2015
On Fri, 6 Nov 2015 16:45:07 +0100
Marco van de Voort <marcov at stack.nl> wrote:
>[...]
> I yesterday tried to implement some of the TRect helper methods in 3.1.1
>[...]
> I haven't investigated deeper yet, but I suspect the heavy use of WITH in
> interfaces etc is the cause. (if you assign width and height of a
> component in a component method in a WITH with a TRECT as argument, then now
> width and height of the trect are assigned instead of the component's ?
Thanks for the hint.
Does Delphi alter some other records too, e.g. TPoint and TSize?
Hint:
Cody has a tool 'Explode a "With" block':
http://wiki.lazarus.freepascal.org/Cody#Explode_a_.22With.22_block
Mattias
More information about the Lazarus
mailing list