[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Important change in MaskBox control


Le 14/04/2026 à 12:11, Claus Dietrich a écrit :
Dear Benoit

Am 12.04.26 um 23:37 schrieb Benoît Minisini:
The MaskBox control was not reliable, so I rewrote its management code in the master branch.

Tell me if it is better now than before.

I tested the new MaskBox (commit e339265)  and found, that it doesn't work as I would expect.

This is my use case:

   With MaskBox1
     .Mask = "#0:00"
     .placeholder = "00:00"
     .Alignment = Align.Center
     .ShowDefault = True
   End With

Enter a time (mm:ss) and use the backstep key to move back to the mm section - it should ignore the ":" separator and jump directly into the mm section.

I attached a snippet with the MaskBox modified by me for comparison. It is still not perfect because it doesn't handle the left arrow key yet as I would expect.

Best regards

Claus


I tested with the very last master, and everything seems to works as expected.

If I hit 'Backspace' when the cursor is just right after the ':', the cursor moves just left the ':'.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: Important change in MaskBox controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>
References:
Important change in MaskBox controlBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Important change in MaskBox controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>