Recent

Author Topic: OnChange event of TMaskEdit only fires if mask is incomplete on Mac OS X Carbon  (Read 8664 times)

LazProgger

  • Full Member
  • ***
  • Posts: 103
The OnChange event of the TMaskEdit control only fires on Mac OS X Carbon in case that the mask is incomplete. On Windows, it is working as expected.

Example:

Having a TMaskEdit with EditMask = '!99.99;1;_' and an assigned OnChange-Event leads to the following behavior:

At the beginning, __.__ is the text of the Edit and you can enter numbers. When writing the numbers 1, 2, 3 and 4, the OnChange event is triggerd after typing 1, 2 and 3 (as long as the mask is incomplete). When entering 4 or when overwriting one of the old values, the event is not called anymore.

What can I do to solve that?

Bart

  • Hero Member
  • *****
  • Posts: 5265
    • Bart en Mariska's Webstek
Which version of Lazarus?
If 1.6 or trunk, please open a ticket in the bugtracker (set category to Widgetset), attach a sample application (sources only) that demonstrates the issue.
If you use Lazarus < 1.6 then please upgrade and test again.

Bart

LazProgger

  • Full Member
  • ***
  • Posts: 103
It is version 1.6.

I have reported it, you can find the issue and the sample application on:
http://bugs.freepascal.org/view.php?id=30167

 

TinyPortal © 2005-2018