Some important TMaskEdit methods don't work anymore
Original Reporter info from Mantis: zex2011
-
Reporter name: Zex Atilla
Original Reporter info from Mantis: zex2011
- Reporter name: Zex Atilla
Description:
Seems that some of the virtual methods of TCustomEdit aren't virtual anymore. Code that worked perfectly in previous versions (1.2.0) now fails. See the example below, or the attached project.
Steps to reproduce:
procedure CustomEdit_WriteTime (ctl: TCustomEdit);
// this function doesn't work properly when ctl is TMaskEdit
const
EDIT_MASK = '99\:99\:99;1;0';
EDIT_TEXT = '00:02:25';
begin
if (ctl is TMaskEdit) then
(ctl as TMaskEdit).EditMask := EDIT_MASK;
// instead of the specified text displays all zeros
ctl.Text := EDIT_TEXT;
end;
Mantis conversion info:
- Mantis ID: 26865
- OS: Windows
- OS Build: Windows 7
- Platform: PC
- Version: 1.2.6
- Fixed in version: 1.4
- Fixed in revision: r46593 (#89bce7fb)
- Target version: 1.4