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

Re: Important change in MaskBox control


Am 16.04.26 um 15:17 schrieb Florian Brunke:
Hi,
okay I will clarify this by something you can all test:
1- Use the following mask definition in a MaskBox: "!00:00"
2- now enter "12:34" into the MaskBox; you will see, every position will be OVERWRITTEN 3- next, put the cursor to the most leftposition again and try typing in new digits; you will see nothing happens, because the positions are not overwritten again.
4- now delete the whole MaskBox and insert: "11:05"
5- put the cursor just right of the ":" separator
6- type "12"; you see that theyou can insert the "1" by OVERWRITING but not the "2" (confronted by anything but "0", overwriting is blocked) 7- the same happens, resp. again nothing happens, if you put the cursor in the most left position 8- finally something special to demonstrate: delete the MaskBox contents again and insert "10:20" 9- now you will see that you can insert and OVERWRITE the segments before and after the ":" separator. So, apparently, if the right position of the segment is a "0", overwriting works. In this kind of mask I think digits should generally be overwritten in any position.
Best regards,
Florian

Ah, ok. This is indeed a new and puzzling behavior and looks like a bug. The MaskBox of the current Gambas Stable doesn't do this.

A Zero seems to tell the algorithm that no digit was entered at the current position (although is was). To me everything would be fine if a Zero would be regarded like any other number.

Regards, Claus



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