* Fix registering custom formscomponents/customform/custforms.pp

git-svn-id: trunk@60393 -
This commit is contained in:
michael 2019-02-09 18:37:18 +00:00
parent c1e3ea24a0
commit 85e16c046f
7 changed files with 17 additions and 9 deletions

View File

@ -97,6 +97,7 @@ begin
Inherited Create; Inherited Create;
FFormDescr:=ADescr; FFormDescr:=ADescr;
ResourceClass:=FFormDescr.FFormClass; ResourceClass:=FFormDescr.FFormClass;
FormEditingHook.RegisterDesignerBaseClass(FFormDescr.FFormClass);
Name:=FFormDescr.Caption; Name:=FFormDescr.Caption;
RequiredPackages:=ADescr.LazPackage; RequiredPackages:=ADescr.LazPackage;
//Writeln('TCustomFormFileDescriptor.Create RequiredPackages=',RequiredPackages); //Writeln('TCustomFormFileDescriptor.Create RequiredPackages=',RequiredPackages);

View File

@ -296,8 +296,8 @@ calculate the width and the linetype of a sigle bar
------------------------------------------------------------------ ------------------------------------------------------------------
'0' white 100% full '0' white 100% full
'1' white 100%*Ratio full '1' white 100%*Ratio full
'2' white 150%*Ratio full '2' white 150% full
'3' white 200%*Ratio full '3' white 200%Ratio full
'5' black 100% full '5' black 100% full
'6' black 100%*Ratio full '6' black 100%*Ratio full
'7' black 150%*Ratio full '7' black 150%*Ratio full
@ -1463,6 +1463,7 @@ begin
for i := 1 to Length(Data) do // examine the pattern string for i := 1 to Length(Data) do // examine the pattern string
begin begin
OneBarProps(Data[i], w, lt); OneBarProps(Data[i], w, lt);
Writeln('BC : ',w,' : ',lt,' (',Data[i],')');
{ {
case data[i] of case data[i] of

View File

@ -1,7 +1,7 @@
object Form1: TForm1 object Form1: TForm1
Left = 106 Left = 106
Height = 787 Height = 787
Top = 121 Top = 142
Width = 489 Width = 489
ActiveControl = Button7 ActiveControl = Button7
Caption = 'Form1' Caption = 'Form1'
@ -59,7 +59,7 @@ object Form1: TForm1
MaxSize = 350 MaxSize = 350
ReadOnly = True ReadOnly = True
Title.Caption = 'Value' Title.Caption = 'Value'
Width = 345 Width = 347
end> end>
DefaultColWidth = 120 DefaultColWidth = 120
FixedCols = 0 FixedCols = 0
@ -71,7 +71,7 @@ object Form1: TForm1
OnSelectCell = SGridSelectCell OnSelectCell = SGridSelectCell
ColWidths = ( ColWidths = (
120 120
345 347
) )
end end
object Button3: TButton object Button3: TButton

View File

@ -24,7 +24,7 @@
With the exception of the unit registersqldb, which is GPL-2. This unit contains code for the IDE and is usually not used by programs."/> With the exception of the unit registersqldb, which is GPL-2. This unit contains code for the IDE and is usually not used by programs."/>
<Version Major="1" Release="2"/> <Version Major="1" Release="2"/>
<Files Count="3"> <Files Count="4">
<Item1> <Item1>
<Filename Value="registersqldb.pas"/> <Filename Value="registersqldb.pas"/>
<HasRegisterProc Value="True"/> <HasRegisterProc Value="True"/>
@ -39,6 +39,10 @@ With the exception of the unit registersqldb, which is GPL-2. This unit contains
<Filename Value="sqlstringspropertyeditordlg.pas"/> <Filename Value="sqlstringspropertyeditordlg.pas"/>
<UnitName Value="SQLStringsPropertyEditorDlg"/> <UnitName Value="SQLStringsPropertyEditorDlg"/>
</Item3> </Item3>
<Item4>
<Filename Value="frmtypesafeaccess.pp"/>
<UnitName Value="frmtypesafeaccess"/>
</Item4>
</Files> </Files>
<i18n> <i18n>
<EnableI18N Value="True"/> <EnableI18N Value="True"/>

View File

@ -8,7 +8,8 @@ unit SQLDBLaz;
interface interface
uses uses
registersqldb, SQLStringsPropertyEditorDlg, LazarusPackageIntf; registersqldb, SQLStringsPropertyEditorDlg, frmtypesafeaccess,
LazarusPackageIntf;
implementation implementation

View File

@ -41,7 +41,7 @@ uses
{$ifdef mswindows} {$ifdef mswindows}
ServiceManager, ServiceManager,
{$endif} {$endif}
Classes, SysUtils, Process, DB, BufDataset, csvdataset, SimpleIPC, XMLConf, EventLog, Classes, SysUtils, Process, DB, BufDataset, csvdataset, fpjsondataset, SimpleIPC, XMLConf, EventLog,
UTF8Process; UTF8Process;
procedure RegisterFCLBaseComponents; procedure RegisterFCLBaseComponents;
@ -51,7 +51,7 @@ implementation
procedure RegisterDB; procedure RegisterDB;
begin begin
RegisterComponents('Data Access',[TDatasource,TBufDataset, TCSVDataset]); // this bites dbflaz RegisterComponents('Data Access',[TDatasource,TBufDataset, TCSVDataset, TExtJSJSONDataSet]); // this bites dbflaz
end; end;
procedure RegisterSimpleIPC; procedure RegisterSimpleIPC;

View File

@ -113,6 +113,7 @@
<Filename Value="frmaddtofavourite.pp"/> <Filename Value="frmaddtofavourite.pp"/>
<IsPartOfProject Value="True"/> <IsPartOfProject Value="True"/>
<ComponentName Value="SaveRequestDataForm"/> <ComponentName Value="SaveRequestDataForm"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/> <ResourceBaseClass Value="Form"/>
</Unit10> </Unit10>
</Units> </Units>