On Fri, 6 Nov 2015 16:45:07 +0100 Marco van de Voort <mar...@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 -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus