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

Aw: Re: Important change in MaskBox control



Le 14/04/2026 à 14:16, Claus Dietrich a écrit :
> Am 14.04.26 um 12:21 schrieb Benoît Minisini:
>> 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,
>
> And this is not what my version is doing and not what I expect.
>
> Just compare how the cursor is advancing when you enter a time. It never
> stops left of the ":". So why (and for purpose) should it stop there
> when moving backwards with the backstep key? It is a useless position
> and the control also doesn't accept any entry in that situation. This is
> the reason I modified the MaskBox and regard this as a bug.
>
> Best regards
>
> Claus
>

It's not a useless position, as it's from there than you can delete the
character just before the ':' with Backspace.

Otherwise, you're right, it's not logical to behave differently in that
direction, except that I'm not sure that everybody will think like you.

Moreover it's more tricky with Backspace because it should behave
differently according to the text direction before the separator, which
may been right aligned.

I will see what I can do.

--
Benoît Minisini.


Hi Claus,
for me this behaviour of a time- or date- maskbox absolutely does make sense. Users that came previously from MS Office applications, for instance, are used to maskboxes where every single position in the predefined mask is just overwritten by typing characters or digits. This happens in "forward" direction. Using backspace, characters are deleted and replaced by the placeholders and the cursor is moved left.
Either way the separators are just ignored as if they weren't there. That is the fastest way to insert data in specified maskboxes that I can think of, as it is not necessary to click or use arrow keys. 
Therefore I like Benoîts latest MaskBox... ;-)

Regards, 
Florian

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