Property editor for MaskEdit: some issues
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
If in OE you set EditMask (for a MaskEdit) to a value that has no MaskFieldSeparator (like "999.999" then click the ellipsis to open the propertyeditor, SplitMask will set SaveLiterals to False, when in fact it should be true.
SaveLiterals should only be false (Delphi compatibility) if MaskNoSave is specified in the second maskfield.
So also an editmask like "ccc;9;_" should set SaveLiterals to True.
(Quoted from http://docwiki.embarcadero.com/VCL/en/MaskUtils.TEditMask:
"A 0 in the second field indicates that literals should not be included, any other character indicates that they should be included. The character that indicates whether literals should be included can be changed in the Edit Mask property editor, or programmatically by changing the MaskNoSave typed constant.")
Very, very minor detail:
If you leave EditMask in OE blank, then open property editor, InputMaskEdit has ";0;_" in it (the 0 is wrong, see above). In this case shouldn't it better be blank as well (it looks rather silly)?
Finally, when the form (propertyeditor) is shown, the InputMaskLabel, SampleMasksLabel, CharacterForBlanksLabel, SaveLiteralCheckBox and LoadSampleMaskButton are not visible (on GTK2/Linux, I did not yet test other widgetsets).
Mantis conversion info:
- Mantis ID: 14771
- OS: Suse Linux
- OS Build: 10.0
- Build: 21885M
- Platform: i386
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 22712 (#273a363d)
- Target version: 1.0.0
- LazTarget: 1.0