LCL: added dbgs for TWindoeState and TCloseAction

git-svn-id: trunk@25961 -
This commit is contained in:
mattias 2010-06-07 18:32:47 +00:00
parent f4e38dd872
commit 48e0180fae

View File

@ -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