TMaskEdit, caretPos always reports 0 inside of OnChange event.
Original Reporter info from Mantis: jamie @jamie
-
Reporter name: jamie philbrook
Original Reporter info from Mantis: jamie @jamie
- Reporter name: jamie philbrook
Description:
If you implement the OnChange event with a Maskedit, the CaretPos.X always
reports 0.
Found this while trying to enhance the formatting of an Editing session.
TEdit.OnChange works ok so its something to do with the maskedit.
Steps to reproduce:
drop a TMaskEdit on the form.
EditMask string ='#9999 (closed).99;1;_'
Implement the event..
MaskEdit1.OnChange(.....)
Begin
Caption := MaskEdit1.CaretPos.X.ToString;
End;
and make some changes so this event will get called, watch the values.
Additional information:
All other events like keyboard, mouse etc do get a correct CaretPos report,
instead of 0.
Mantis conversion info:
- Mantis ID: 32842
- OS: Windows
- OS Build: 10
- Build: 56594
- Platform: 64/32
- Version: 1.8
- Monitored by: » a.ramos (a.ramos), » @flyingsheep (Bart Broersma)