mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 05:18:00 +02:00
LCL: Added property TApplication.Active (#8083)
git-svn-id: trunk@10387 -
This commit is contained in:
parent
735b70957a
commit
6694bbe784
@ -929,6 +929,7 @@ type
|
||||
FLastMouseControl: TControl;
|
||||
FLastMouseControlValid: Boolean;
|
||||
procedure DoOnIdleEnd;
|
||||
function GetActive: boolean;
|
||||
function GetCurrentHelpFile: string;
|
||||
function GetExename: String;
|
||||
function GetIconHandle: HICON;
|
||||
@ -1047,6 +1048,7 @@ type
|
||||
procedure DoReturnKey(AControl: TWinControl; var Key: Word;
|
||||
Shift: TShiftState);
|
||||
procedure DoTabKey(AControl: TWinControl; var Key: Word;Shift: TShiftState);
|
||||
property Active: boolean read GetActive;
|
||||
property CaptureExceptions: boolean read FCaptureExceptions
|
||||
write SetCaptureExceptions;
|
||||
property FindGlobalComponentEnabled: boolean read FFindGlobalComponentEnabled
|
||||
|
@ -869,6 +869,7 @@ begin
|
||||
DebugLn('TApplication.HandleException: ',
|
||||
'there was another exception during showing the first exception');
|
||||
HaltingProgram:=true;
|
||||
//DumpExceptionBackTrace;
|
||||
Halt;
|
||||
end;
|
||||
Include(FFlags,AppHandlingException);
|
||||
@ -1150,6 +1151,11 @@ begin
|
||||
Include(FFlags,AppIdleEndSent);
|
||||
end;
|
||||
|
||||
function TApplication.GetActive: boolean;
|
||||
begin
|
||||
Result := AppActive in Flags;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
function TApplication.GetCurrentHelpFile: string;
|
||||
------------------------------------------------------------------------------}
|
||||
|
Loading…
Reference in New Issue
Block a user