mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-21 07:40:23 +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;
|
property SpaceChar;
|
||||||
end;
|
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 SplitEditMask(AEditMask: String; out AMaskPart: String; out AMaskSave: Boolean; out ASpaceChar: Char);
|
||||||
|
|
||||||
procedure Register;
|
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
|
var
|
||||||
CME: TCustomMaskEdit;
|
CME: TCustomMaskEdit;
|
||||||
begin
|
begin
|
||||||
CME := TCustomMaskEdit.Create(nil);
|
CME := TCustomMaskEdit.Create(nil);
|
||||||
try
|
try
|
||||||
|
CME.EnableSets := EnableSets;
|
||||||
CME.EditMask := AEditMask;
|
CME.EditMask := AEditMask;
|
||||||
if CME.IsMasked then
|
if CME.IsMasked then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user