mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 16:21:01 +02:00
LCL: always registering ResourceHandler
git-svn-id: trunk@10580 -
This commit is contained in:
parent
31a49fa7d8
commit
8c958b060d
12
lcl/forms.pp
12
lcl/forms.pp
@ -1280,9 +1280,6 @@ function IsAccel(VK: word; const Str: string): Boolean;
|
|||||||
procedure NotifyApplicationUserInput(Msg: Cardinal);
|
procedure NotifyApplicationUserInput(Msg: Cardinal);
|
||||||
|
|
||||||
|
|
||||||
function InitResourceComponent(Instance: TComponent;
|
|
||||||
RootAncestor: TClass):Boolean;
|
|
||||||
|
|
||||||
function GetShortHint(const Hint: string): string;
|
function GetShortHint(const Hint: string): string;
|
||||||
function GetLongHint(const Hint: string): string;
|
function GetLongHint(const Hint: string): string;
|
||||||
|
|
||||||
@ -1458,12 +1455,6 @@ end;
|
|||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
||||||
function InitResourceComponent(Instance: TComponent;
|
|
||||||
RootAncestor: TClass):Boolean;
|
|
||||||
begin
|
|
||||||
Result:=InitLazResourceComponent(Instance,RootAncestor);
|
|
||||||
end;
|
|
||||||
|
|
||||||
function FindRootDesigner(AComponent: TComponent): TIDesigner;
|
function FindRootDesigner(AComponent: TComponent): TIDesigner;
|
||||||
var
|
var
|
||||||
Form: TCustomForm;
|
Form: TCustomForm;
|
||||||
@ -1778,9 +1769,6 @@ initialization
|
|||||||
Screen:=TScreen.Create(nil);
|
Screen:=TScreen.Create(nil);
|
||||||
Application:=TApplication.Create(nil);
|
Application:=TApplication.Create(nil);
|
||||||
|
|
||||||
{$IFDEF UseFCLDataModule}
|
|
||||||
RegisterInitComponentHandler(TComponent,@InitResourceComponent);
|
|
||||||
{$ENDIF}
|
|
||||||
finalization
|
finalization
|
||||||
//DebugLn('forms.pp - finalization section');
|
//DebugLn('forms.pp - finalization section');
|
||||||
LCLProc.OwnerFormDesignerModifiedProc:=nil;
|
LCLProc.OwnerFormDesignerModifiedProc:=nil;
|
||||||
|
@ -262,6 +262,8 @@ var
|
|||||||
LRSObjectReaderClass: TLRSObjectReaderClass=TLRSObjectReader;
|
LRSObjectReaderClass: TLRSObjectReaderClass=TLRSObjectReader;
|
||||||
LRSObjectWriterClass: TLRSObjectWriterClass=TLRSObjectWriter;
|
LRSObjectWriterClass: TLRSObjectWriterClass=TLRSObjectWriter;
|
||||||
|
|
||||||
|
function InitResourceComponent(Instance: TComponent;
|
||||||
|
RootAncestor: TClass):Boolean;
|
||||||
function InitLazResourceComponent(Instance: TComponent;
|
function InitLazResourceComponent(Instance: TComponent;
|
||||||
RootAncestor: TClass): Boolean;
|
RootAncestor: TClass): Boolean;
|
||||||
function CreateLRSReader(s: TStream; var DestroyDriver: boolean): TReader;
|
function CreateLRSReader(s: TStream; var DestroyDriver: boolean): TReader;
|
||||||
@ -498,6 +500,12 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function InitResourceComponent(Instance: TComponent;
|
||||||
|
RootAncestor: TClass):Boolean;
|
||||||
|
begin
|
||||||
|
Result:=InitLazResourceComponent(Instance,RootAncestor);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure DefineRectProperty(Filer: TFiler; const Name: string; ARect,
|
procedure DefineRectProperty(Filer: TFiler; const Name: string; ARect,
|
||||||
DefaultRect: PRect);
|
DefaultRect: PRect);
|
||||||
var
|
var
|
||||||
@ -4009,12 +4017,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
procedure InternalInit;
|
|
||||||
begin
|
|
||||||
LazarusResources:=TLResourceList.Create;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ TLRPositionLinks }
|
{ TLRPositionLinks }
|
||||||
|
|
||||||
function TLRPositionLinks.GetLFM(Index: integer): Int64;
|
function TLRPositionLinks.GetLFM(Index: integer): Int64;
|
||||||
@ -4332,6 +4334,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
procedure InternalInit;
|
||||||
|
begin
|
||||||
|
LazarusResources:=TLResourceList.Create;
|
||||||
|
RegisterInitComponentHandler(TComponent,@InitResourceComponent);
|
||||||
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
InternalInit;
|
InternalInit;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user