Hi, I try to maintain MaskEdit.pp for Lazarus. I have a Delphi compatibility question that I cannot check for myself, since I only have an ancient Delphi 3.
If one specifies a '_' in the mask (that is not in the part where it sets the "blank" char used by the control) what does it do? - does it set a literal (= cannot be altered or deleted) '_' in the Text - does it set a literal space (#32) in the Text My Delphi 3 does the first. In maskedit.pp there is a cMask_SpaceOnly defined and the comments suggest it puts a space (#32) in the mask. Obviously D3 does not, but newer versions might? To give an example for a MaskEdit: Set EditMask to 'ccc_ccc;1;+' and clear the control (this should be done automatically when setting the mask) is the value of MaskEdit.Text ' _ ' (3 spaces, '_', 3 spaces) and MaskEdit.EditText '+++_+++' or is the value of MaskEdit.Text ' ' (7 spaces) and MaskEdit.EditText '+++ +++' (3 '+', space, 3 '+') Or to put it in other words: does EditMask 'ccc_ccc' behave as 'ccc\_ccc' or as 'ccc\ ccc' ? Currently Lazarus puts a "blank" in EditText and a space in Text, which probably is wrong. Can anyone testwith a recent version of delphi, so I can fix it if necessary? Bart -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
