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

[Gambas-bugtracker] Bug #3149: MaskBox Cursor doesn't jump properly in time mask, e.g. "00:00", or any mask using "0"


http://gambaswiki.org/bugtracker/edit?object=BUG.3149&from=L21haW4-

Comment #1 by Benoît MINISINI:

Hi,

I rewrote the MaskBox management code in the master branch, to fix that problem, and a lot of other ones.

Tell me if it is better now than before.

I hope there will not be too many regressions.

I added a new syntax, normally backward-compatible, that I named "weak" separator. It's a separator that does not block character insertion or deletion, as if it was not there. Think about the thousand separators of a big number.

To add a weak separator, put it into square brackets in the mask.

For example, for typing a currency:

$##<[,]###<[,]##0<!.00

There is still some bugs I'm still working on, but I wanted this code to be tested as soon as possible by those like you who actually use the MaskBox control (not me!).

If this new behaviour cannot be backward-compatible, I will add some flag to keep the old MaskBox behaviour or use the new one, so that you don't have to adapt your project. And this flag may also be simply based on the version of the interpreter running the project.

Just tell me.

Benoît MINISINI changed the state of the bug to: NeedsInfo.



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----