mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 11:31:52 +02:00
MWE: Applied patch from "Andrew Johnson" <aj_genius@hotmail.com>
Patch includes: -fixes Problems with hiding modal forms -temporarily fixes TCustomForm.BorderStyle in bsNone -temporarily fixes problems with improper tabbing in TSynEdit git-svn-id: trunk@3375 -
This commit is contained in:
parent
24f1528f15
commit
df7fc46334
@ -18,6 +18,26 @@ Begin
|
|||||||
List.Add(Item);
|
List.Add(Item);
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
Procedure ListInsert(var List : TList; Index : Longint; Item: Pointer);
|
||||||
|
Begin
|
||||||
|
if List = nil then List := TList.Create;
|
||||||
|
List.Insert(Index, Item);
|
||||||
|
End;
|
||||||
|
|
||||||
|
Function ListIndexOf(var List : TList; Item: Pointer) : Longint;
|
||||||
|
Begin
|
||||||
|
Result := -1;
|
||||||
|
if List = nil then exit;
|
||||||
|
Result := List.IndexOf(Item);
|
||||||
|
End;
|
||||||
|
|
||||||
|
Function ListCount(List : TList) : Longint;
|
||||||
|
Begin
|
||||||
|
Result := 0;
|
||||||
|
if List = nil then exit;
|
||||||
|
Result := List.Count;
|
||||||
|
End;
|
||||||
|
|
||||||
Procedure ListRemove(var List : TList; Item: Pointer);
|
Procedure ListRemove(var List : TList; Item: Pointer);
|
||||||
Begin
|
Begin
|
||||||
if List=nil then exit;
|
if List=nil then exit;
|
||||||
|
@ -874,6 +874,8 @@ end;
|
|||||||
{------------------------------------------------------------------------------}
|
{------------------------------------------------------------------------------}
|
||||||
procedure TCustomForm.Hide;
|
procedure TCustomForm.Hide;
|
||||||
begin
|
begin
|
||||||
|
If fsModal in FormState then
|
||||||
|
ModalResult := mrCancel;
|
||||||
Visible := False;
|
Visible := False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -1133,6 +1135,13 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.60 2002/09/29 15:08:38 lazarus
|
||||||
|
MWE: Applied patch from "Andrew Johnson" <aj_genius@hotmail.com>
|
||||||
|
Patch includes:
|
||||||
|
-fixes Problems with hiding modal forms
|
||||||
|
-temporarily fixes TCustomForm.BorderStyle in bsNone
|
||||||
|
-temporarily fixes problems with improper tabbing in TSynEdit
|
||||||
|
|
||||||
Revision 1.59 2002/09/16 16:18:50 lazarus
|
Revision 1.59 2002/09/16 16:18:50 lazarus
|
||||||
MG: fixed mem leak in TPixmap
|
MG: fixed mem leak in TPixmap
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user