Custom Edit Box

15.4.05

April is full of troubles :(

I received two bug reports for the custom components but I still have no solution. Today I share one of them.It is about a custom edit box. My teammates have developed an edit box that can show the format during editing the text.
e.g. A user inputs 12345 with format "#,###.0000", the custom edit box has to show ',' behind '1' when typing '4' (i.e. 1,234.0000), show ',' behind '2' when typing the key '2'(t.e. 12,345.0000).
Before me someone had already developed this custom edit box (derived from TCustomMaskEdit) linking to a field in a dataset, so I just need to maintain it (lucky or not? I do not know yet). Now users complain that if the mouse cursor exits the edit box and back, it fails to add any digit before the decimal dot.

Checking the source codes, 'Waaaaa......', then I closed my Delphi at once.


Comments:
Gloria... don't worry... send me the source and I will give it a try...

Albert, you are very nice!
But I have to do by myself :(

Once Albert is done, remove all comments from here. Nobody will know who did it. ;-)

Well... (~~~ struggling ~~~) cannot do so.

Post a Comment

<< Home