mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 09:39:25 +02:00
set transient forms with Screen object order
git-svn-id: trunk@3954 -
This commit is contained in:
parent
002ca709d8
commit
b54d888214
@ -497,6 +497,8 @@ type
|
||||
public
|
||||
constructor Create(AOwner : TComponent); override;
|
||||
destructor Destroy; Override;
|
||||
function CustomFormIndex(AForm: TCustomForm): integer;
|
||||
function FormIndex(AForm: TForm): integer;
|
||||
public
|
||||
property ActiveControl: TWinControl read FActiveControl;
|
||||
property ActiveCustomForm: TCustomForm read FActiveCustomForm;
|
||||
|
@ -59,6 +59,24 @@ begin
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
function TScreen.CustomFormIndex(AForm: TCustomForm): integer;
|
||||
------------------------------------------------------------------------------}
|
||||
function TScreen.CustomFormIndex(AForm: TCustomForm): integer;
|
||||
begin
|
||||
Result:=FCustomForms.Count-1;
|
||||
while (Result>=0) and (CustomForms[Result]<>AForm) do dec(Result);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
function TScreen.FormIndex(AForm: TForm): integer;
|
||||
------------------------------------------------------------------------------}
|
||||
function TScreen.FormIndex(AForm: TForm): integer;
|
||||
begin
|
||||
Result:=FFormList.Count-1;
|
||||
while (Result>=0) and (Forms[Result]<>AForm) do dec(Result);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
function TScreen.GetFonts : TStrings;
|
||||
------------------------------------------------------------------------------}
|
||||
|
Loading…
Reference in New Issue
Block a user