mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 09:59:32 +02:00
MG: broke actnlist <-> forms circle
git-svn-id: trunk@2389 -
This commit is contained in:
parent
95756401bd
commit
af88c037ec
@ -20,7 +20,7 @@
|
||||
* *
|
||||
*****************************************************************************
|
||||
|
||||
Useful helper functions.
|
||||
Useful lower level helper functions.
|
||||
}
|
||||
unit LCLProc;
|
||||
|
||||
@ -36,6 +36,20 @@ Function DeleteAmpersands(var Str : String) : Longint;
|
||||
function ShortCutToShortCutText(ShortCut: TShortCut): string;
|
||||
function ShortCutTextToShortCut(const ShortCutText: string): TShortCut;
|
||||
|
||||
// Hooks used to prevent unit circles
|
||||
type
|
||||
TSendApplicationMessageFunction =
|
||||
function(Msg: Cardinal; WParam, LParam: Longint):Longint;
|
||||
TOwnerFormDesignerModifiedProc =
|
||||
procedure(AComponent: TComponent);
|
||||
|
||||
var
|
||||
SendApplicationMessageFunction: TSendApplicationMessageFunction;
|
||||
OwnerFormDesignerModifiedProc: TOwnerFormDesignerModifiedProc;
|
||||
|
||||
function SendApplicationMessage(Msg: Cardinal; WParam, LParam: Longint):Longint;
|
||||
procedure OwnerFormDesignerModified(AComponent: TComponent);
|
||||
|
||||
|
||||
implementation
|
||||
|
||||
@ -195,5 +209,24 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function SendApplicationMessage(Msg: Cardinal; WParam, LParam: Longint
|
||||
): Longint;
|
||||
begin
|
||||
if SendApplicationMessageFunction<>nil then
|
||||
Result:=SendApplicationMessageFunction(Msg,WParam,LParam)
|
||||
else
|
||||
Result:=0;
|
||||
end;
|
||||
|
||||
procedure OwnerFormDesignerModified(AComponent: TComponent);
|
||||
begin
|
||||
if OwnerFormDesignerModifiedProc<>nil then
|
||||
OwnerFormDesignerModifiedProc(AComponent);
|
||||
end;
|
||||
|
||||
initialization
|
||||
SendApplicationMessageFunction:=nil;
|
||||
OwnerFormDesignerModifiedProc:=nil;
|
||||
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user