mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-26 22:23:49 +02:00
LCL: added dbgs for TWindoeState and TCloseAction
git-svn-id: trunk@25961 -
This commit is contained in:
parent
f4e38dd872
commit
48e0180fae
12
lcl/forms.pp
12
lcl/forms.pp
@ -1582,6 +1582,8 @@ function ShiftStateToKeys(ShiftState: TShiftState): PtrUInt;
|
||||
|
||||
function WindowStateToStr(const State: TWindowState): string;
|
||||
function StrToWindowState(const Name: string): TWindowState;
|
||||
function dbgs(const State: TWindowState): string; overload;
|
||||
function dbgs(const Action: TCloseAction): string; overload;
|
||||
|
||||
type
|
||||
TFocusState = Pointer;
|
||||
@ -1754,6 +1756,16 @@ begin
|
||||
ord(wsNormal)));
|
||||
end;
|
||||
|
||||
function dbgs(const State: TWindowState): string; overload;
|
||||
begin
|
||||
Result:=GetEnumName(TypeInfo(TWindowState),ord(State));
|
||||
end;
|
||||
|
||||
function dbgs(const Action: TCloseAction): string; overload;
|
||||
begin
|
||||
Result:=GetEnumName(TypeInfo(TCloseAction),ord(Action));
|
||||
end;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
function GetParentForm(Control: TControl): TCustomForm;
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user