mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 13:59:20 +02:00
MaskEdit: adapt FormatMaskText for EnableSets.
(cherry picked from commit a09b37afad
)
This commit is contained in:
parent
b43b509320
commit
7182005618
@ -388,7 +388,7 @@ const
|
||||
property SpaceChar;
|
||||
end;
|
||||
|
||||
function FormatMaskText(const AEditMask: string; const Value: string ): string;
|
||||
function FormatMaskText(const AEditMask: string; const Value: string; EnableSets: Boolean = False): string;
|
||||
procedure SplitEditMask(AEditMask: String; out AMaskPart: String; out AMaskSave: Boolean; out ASpaceChar: Char);
|
||||
|
||||
procedure Register;
|
||||
@ -585,12 +585,13 @@ end;
|
||||
|
||||
|
||||
|
||||
function FormatMaskText(const AEditMask: string; const Value: string): string;
|
||||
function FormatMaskText(const AEditMask: string; const Value: string; EnableSets: Boolean): string;
|
||||
var
|
||||
CME: TCustomMaskEdit;
|
||||
begin
|
||||
CME := TCustomMaskEdit.Create(nil);
|
||||
try
|
||||
CME.EnableSets := EnableSets;
|
||||
CME.EditMask := AEditMask;
|
||||
if CME.IsMasked then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user