Re: [Lazarus] TPageControl OnChange calling issue
On 15.11.2016 18:28, Bart via Lazarus wrote: Mode switches are about coding (how the compiler should behave), not about how components should behave once compiled. Of course I do know that they are used in that way. I just wanted to say that the Delphi compatibility modes *could* be used to define the *default* setting of this property. at compile time. Seems rather logical to me. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] TPageControl OnChange calling issue
On 16.11.2016 10:30, Michael Schnell via Lazarus wrote: On 15.11.2016 18:28, Bart via Lazarus wrote: Mode switches are about coding (how the compiler should behave), not about how components should behave once compiled. Of course I do know that they are used in that way. I just wanted to say that the Delphi compatibility modes *could* be used to define the *default* setting of this property. at compile time. Seems rather logical to me. No, this is not technically possible. The mode settings have unit-scope. TPageControl/TCustomTabControl are in unit ComCtrls that is always built with objfpc mode. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] TPageControl OnChange calling issue
On 16.11.2016 10:33, Ondrej Pokorny via Lazarus wrote: The mode settings have unit-scope. TPageControl/TCustomTabControl are in unit ComCtrls that is always built with objfpc mode. I see. Thanks, -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] TPageControl OnChange calling issue
If the existing functionality differs from Delphi, i say to keep the existing functionality as the default. After all what is more important? Breaking existing Lazarus users' code or potentially having a Delphi code migration become slightly harder because a project will need to change a property (also isn't stuff like this why the IDE has options to import Delphi projects/units/forms/etc?). On Wed, Nov 16, 2016 at 11:35 AM, Michael Schnell via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 16.11.2016 10:33, Ondrej Pokorny via Lazarus wrote: > >> The mode settings have unit-scope. TPageControl/TCustomTabControl are in >> unit ComCtrls that is always built with objfpc mode. >> > I see. > > Thanks, > -Michael > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus