Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-08

TMemo: behavior difference between linux and windows

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Xiangrong Fang

Hi There,

I found that On Windows, TMemo.OnChange is triggered while Memo content is updated PROGRAMATICALLY, while on Linux (GTK) it is not triggered.

For this reason, I have to use OnKeyPress instead of OnChange to make my program behave same on both platform.

Is this a know problem (probably because of the underlying widget set), or is it considered a bug?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150805/e853dff0/attachment.html>

Reply by email

Graeme Geldenhuys
to Xiangrong Fang
Xiangrong Fang wrote
Is this a know problem (probably because of the underlying widget set), or is it considered a bug?

I haven't test, but have come across many cases/inconsistencies like that in LCL. I would consider that a bug. Search Mantis and if no existing report is found, please report it so as not to be forgotten.

Regards,
- Graeme -

Reply by email

leledumbo
to Xiangrong Fang: I found that On Windows, TMemo.OnChange is triggered while Memo content is updated…
TMemo.OnChange is triggered while Memo content is updated PROGRAMATICALLY,

while on Linux (GTK) it is not triggered.

Tested on both GTK2 and QT, OnChange fires when Memo1 content is updated programmatically.

Lazarus 1.5 r49595

Reply by email

Xiangrong Fang
to leledumbo

I tested with a simple program and confirmed leledumbo's test. I will keep an eye on it, if this happen again later.

2015-08-05 23:35 GMT+08:00 leledumbo :

Show quoted text 23 lines
> TMemo.OnChange is triggered while Memo content is updated PROGRAMATICALLY, while on Linux (GTK) it is not triggered. Tested on both GTK2 and QT, OnChange fires when Memo1 content is updated programmatically. Lazarus 1.5 r49595 -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TMemo-behavior-difference-between-linux-and-windows-tp4043450p4043452.html Sent from the Free Pascal - Lazarus mailing list . -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150807/1b744c6e/attachment.html>

Reply by email