Re: [Lazarus] TFilenameedit onchange osx

2017-08-31 Thread Dmitry Boyarintsev via Lazarus
On Wed, Aug 23, 2017 at 4:24 AM, Denis Kozlov via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> FYI, there are few related bug reports about OnChange not firing correctly
> on Mac OS:
> https://bugs.freepascal.org/view.php?id=24009 (year 2013)
> https://bugs.freepascal.org/view.php?id=30167 (year 2016)
>

This is a common Carbon behavior (and Cocoa as well).
Carbon "change" event is only triggered whenever an actual user input
occurred.
LCL OnChange event is triggered for both an actual user input or a
programmatic change.

Naturally, WSCarbon needs to updated to trigger LCL OnChange event whenever
a programmatic change occurs.

To be honest, it's surprising to see these issues again (a regression?)
since they've been worked on back in 2009-2010.
I might be wrong though, since similar problem might have been reported for
TMemo, TComboBox (rather than TEdit)

thanks,
Dmitry
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TFilenameedit onchange osx

2017-08-25 Thread Juha Manninen via Lazarus
On Fri, Aug 25, 2017 at 1:29 PM, Andrea Mauri via Lazarus
 wrote:
> I would. But I think that is out of my skills. Where should I look? Any
> starting point?

I don't know. I don't have a Mac.
In general contributors / developers just have to learn the code by
debugging and experimenting, little by little. There is no shortcut
for it really.

> I can se this bug only on osx, and I opened my first mac last week ;-)

Ok, congratulations. :)
That may hinder the development of course. You must learn the OS, then
setup the debugging environment and whatever is needed.
I don't know details, I only read that people had trouble debugging there.

Mac development has advanced slowly. Especially Cocoa should be improved ASAP.

Juha
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TFilenameedit onchange osx

2017-08-25 Thread Juha Manninen via Lazarus
On Wed, Aug 23, 2017 at 1:28 PM, Andrea Mauri via Lazarus
 wrote:
> any chance to fix them?
> how can I help?

You can help by providing a patch that fixes them. A valid patch will
be applied for sure.
I found other similar bug reports and marked them as related to the
ones Denis listed.

Juha
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TFilenameedit onchange osx

2017-08-23 Thread Denis Kozlov via Lazarus
FYI, there are few related bug reports about OnChange not firing 
correctly on Mac OS:

https://bugs.freepascal.org/view.php?id=24009 (year 2013)
https://bugs.freepascal.org/view.php?id=30167 (year 2016)

Denis


On 22/08/2017 15:34, Andrea Mauri via Lazarus wrote:

Dear all,

I noticed that
TFilenameedit onchange event is raised differently between win-linux 
and osx.

Windows and Linux behave in the same way, osx differently.

Onchange event is raised on windows and linux when click ok after file 
selection. While on osx Onchange is raised only if I directly edit the 
tfilenameedit.


Additionally, I tried onacceptfilename. It is raised when I select a 
file using the dialog but TFilenameedit.Filename = '' (win, lin, osx).


Any hints?

Andrea Mauri


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus