Re: [Lazarus] TPageControl OnChange calling issue

2016-11-16 Thread Kostas Michalopoulos via Lazarus
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

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-16 Thread Michael Schnell via Lazarus
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

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-16 Thread Ondrej Pokorny via Lazarus
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

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-16 Thread Michael Schnell via Lazarus
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

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-15 Thread Bart via Lazarus
On 11/15/16, Ondrej Pokorny via Lazarus wrote: > Then there's the problem with what behavior should be default. If we say > LCL is VCL compatible then it is clear, but the more I think about it > the more I feel Delphi behavior is just strange. Probably thinking is

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-15 Thread Bart via Lazarus
On 11/15/16, Michael Schnell via Lazarus wrote: > That supposedly can easily be defined by the general "mode" setting. Mode switches are about coding (how the compiler should behave), not about how components should behave once compiled. Bart --

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-15 Thread Michael Schnell via Lazarus
On 15.11.2016 07:41, Ondrej Pokorny via Lazarus wrote: Then there's the problem with what behavior should be default. That supposedly can easily be defined by the general "mode" setting. -Michael -- ___ Lazarus mailing list

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-14 Thread Ondrej Pokorny via Lazarus
Then there's the problem with what behavior should be default. If we say LCL is VCL compatible then it is clear, but the more I think about it the more I feel Delphi behavior is just strange. Probably thinking is not appropriate here... The same problem is with TComboBox Style=csDropDownList.

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-14 Thread Michael W. Vogel via Lazarus
Am 14.11.2016 um 15:08 schrieb zeljko via Lazarus: +1 for new Options property instead of separate property. zeljko +1 Michl -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-14 Thread Ondrej Pokorny via Lazarus
On 14.11.2016 11:39, Michael Schnell via Lazarus wrote: On 13.11.2016 21:37, Ondrej Pokorny via Lazarus wrote: On 05.10.2016 14:07, Michael Schnell via Lazarus wrote: If not set it will be the old OnChange behavior. Or they other way round: nboOldOnChange? Or do you have any other name

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-14 Thread Michael Schnell via Lazarus
On 13.11.2016 21:37, Ondrej Pokorny via Lazarus wrote: On 05.10.2016 14:07, Michael Schnell via Lazarus wrote: If not set it will be the old OnChange behavior. Or they other way round: nboOldOnChange? Or do you have any other name suggestions? I suppose it will not be a Boolean but the user

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-13 Thread zeljko via Lazarus
On 13.11.2016 22:24, Bart via Lazarus wrote: On 11/13/16, Ondrej Pokorny via Lazarus wrote: Unfortunately this will probably be impossible to make for all LCL-controls systematically. But we can make it for TPageControl - add a new option nboDelphiOnChange (or

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-13 Thread Bart via Lazarus
On 11/13/16, Ondrej Pokorny via Lazarus wrote: > Unfortunately this will probably be impossible to make for all > LCL-controls systematically. But we can make it for TPageControl - add a > new option nboDelphiOnChange (or whatever) that defaults to Delphi >

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-13 Thread Ondrej Pokorny via Lazarus
On 05.10.2016 14:07, Michael Schnell via Lazarus wrote: On 05.10.2016 12:40, Ondrej Pokorny via Lazarus wrote: I am against. LCL is designed to be Delphi-compatible so the default events are what they are and they behave how they behave. This of course is granted by a property that is not

Re: [Lazarus] TPageControl OnChange calling issue

2016-10-25 Thread DougC via Lazarus
Delphi's developers faced exactly the same dilemma with respect to Windows' behavior. Some of the standard behavior triggering events did not make much sense and they had to decide to keep it as it was or define an improvement. For the most part they kept it as it was. These are not easy

Re: [Lazarus] TPageControl OnChange calling issue

2016-10-25 Thread vfclists . via Lazarus
On 10 October 2016 at 10:12, Bart via Lazarus wrote: > On 10/3/16, Michael W. Vogel via Lazarus > wrote: > > we want to discuss a bug report > > http://bugs.freepascal.org/view.php?id=25554 here, not in Mantis (hope, > > I

Re: [Lazarus] TPageControl OnChange calling issue

2016-10-05 Thread Michael Schnell via Lazarus
On 05.10.2016 12:40, Ondrej Pokorny via Lazarus wrote: I am against. LCL is designed to be Delphi-compatible so the default events are what they are and they behave how they behave. This of course is granted by a property that is not existing in Delphi and defaults to the Delphi behavior.

Re: [Lazarus] TPageControl OnChange calling issue

2016-10-05 Thread Ondrej Pokorny via Lazarus
On 05.10.2016 11:37, Michael W. Vogel via Lazarus wrote: But I'm not sure, would such a property be accepted by the Lazarus developer? I am against. LCL is designed to be Delphi-compatible so the default events are what they are and they behave how they behave. Furthermore it would be quite

Re: [Lazarus] TPageControl OnChange calling issue

2016-10-04 Thread Michael W. Vogel via Lazarus
Am 03.10.2016 um 22:53 schrieb Bart via Lazarus: OT reply: I can't see you on contributors list? Bart No, I'm sorry, I'm not a Lazarus developer. If I understand Bart right, he had a fix for that bug report, Not yet ;-) Bart Ah, OK. I inserted the solution from Ondrej in my current

Re: [Lazarus] TPageControl OnChange calling issue

2016-10-03 Thread Bart via Lazarus
On 10/3/16, Michael W. Vogel via Lazarus wrote: OT reply: I can't see you on contributors list? Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] TPageControl OnChange calling issue

2016-10-03 Thread Bart via Lazarus
On 10/3/16, Michael W. Vogel via Lazarus wrote: > If I understand Bart right, he had a fix for that bug report, Not yet ;-) Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] TPageControl OnChange calling issue

2016-10-03 Thread Michael W. Vogel via Lazarus
Am 03.10.2016 um 19:34 schrieb Ondrej Pokorny via Lazarus: Isn't TTabSheet.OnShow enough for you? Ondrej Interesting approach! I've just tested it in one of my apps and yes, it seems to work too. So this could be a obviously better solution for me. Thank you for that hint! Kind regards

Re: [Lazarus] TPageControl OnChange calling issue

2016-10-03 Thread Ondrej Pokorny via Lazarus
On 03.10.2016 19:01, Michael W. Vogel via Lazarus wrote: Hi, we want to discuss a bug report http://bugs.freepascal.org/view.php?id=25554 here, not in Mantis (hope, I understand Bart right). Today, the TPageControl.OnChange event behave different in Lazarus than in Delphi. In Delphi it is

[Lazarus] TPageControl OnChange calling issue

2016-10-03 Thread Michael W. Vogel via Lazarus
Hi, we want to discuss a bug report http://bugs.freepascal.org/view.php?id=25554 here, not in Mantis (hope, I understand Bart right). Today, the TPageControl.OnChange event behave different in Lazarus than in Delphi. In Delphi it is only called (so the bug report), if the user change the