From 24c3f2cd67aeb88f21ab3c4bbb644f13390aa02a Mon Sep 17 00:00:00 2001 From: dopi Date: Thu, 19 Apr 2012 20:32:23 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2393 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/tdi/Demo/TDIDemo.lps | 226 +++++++++++++++--------------- components/tdi/Demo/umainform.lfm | 46 +++--- components/tdi/Demo/umainform.pas | 6 +- components/tdi/Make_lrs.bat | 33 +++++ components/tdi/tdi.lrs | 27 ++++ components/tdi/tdireg.pas | 2 + components/tdi/ttdinotebook.png | Bin 0 -> 629 bytes 7 files changed, 196 insertions(+), 144 deletions(-) create mode 100644 components/tdi/Make_lrs.bat create mode 100644 components/tdi/tdi.lrs create mode 100644 components/tdi/ttdinotebook.png diff --git a/components/tdi/Demo/TDIDemo.lps b/components/tdi/Demo/TDIDemo.lps index 5e60767f4..b5f488bf7 100644 --- a/components/tdi/Demo/TDIDemo.lps +++ b/components/tdi/Demo/TDIDemo.lps @@ -12,7 +12,7 @@ - + @@ -23,7 +23,7 @@ - + @@ -36,7 +36,7 @@ - + @@ -46,12 +46,11 @@ - - - - + + + @@ -62,7 +61,7 @@ - + @@ -76,30 +75,31 @@ - + - + - + + - - + + @@ -111,7 +111,7 @@ - + @@ -119,7 +119,7 @@ - + @@ -127,14 +127,14 @@ - + - + @@ -143,7 +143,7 @@ - + @@ -156,7 +156,7 @@ - + @@ -166,7 +166,7 @@ - + @@ -175,7 +175,7 @@ - + @@ -183,7 +183,7 @@ - + @@ -191,7 +191,7 @@ - + @@ -199,14 +199,14 @@ - + - + @@ -214,7 +214,7 @@ - + @@ -222,14 +222,14 @@ - + - + @@ -237,21 +237,21 @@ - + - + - + @@ -259,7 +259,7 @@ - + @@ -267,14 +267,14 @@ - + - + @@ -282,7 +282,7 @@ - + @@ -290,7 +290,7 @@ - + @@ -298,7 +298,7 @@ - + @@ -306,7 +306,7 @@ - + @@ -314,7 +314,7 @@ - + @@ -322,21 +322,21 @@ - + - + - + @@ -344,7 +344,7 @@ - + @@ -352,14 +352,14 @@ - + - + @@ -367,7 +367,7 @@ - + @@ -375,7 +375,7 @@ - + @@ -383,14 +383,14 @@ - + - + @@ -401,21 +401,21 @@ - + - + - + @@ -424,7 +424,7 @@ - + @@ -433,14 +433,14 @@ - + - + @@ -448,7 +448,7 @@ - + @@ -456,7 +456,7 @@ - + @@ -464,28 +464,28 @@ - + - + - + - + @@ -497,7 +497,7 @@ - + @@ -506,21 +506,21 @@ - + - + - + @@ -529,123 +529,123 @@ - + - + - + - + - - + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - + - - + + - + - + - + - + - + - - + + - - + + diff --git a/components/tdi/Demo/umainform.lfm b/components/tdi/Demo/umainform.lfm index d1ad58ff4..210ff0510 100644 --- a/components/tdi/Demo/umainform.lfm +++ b/components/tdi/Demo/umainform.lfm @@ -58,41 +58,33 @@ object fMainForm: TfMainForm ClientHeight = 363 ClientWidth = 579 ImageIndex = 5 - object Edit1: TEdit - Left = 92 - Height = 23 - Top = 24 - Width = 80 - TabOrder = 0 - Text = 'Edit1' - end - object Edit2: TEdit - Left = 92 - Height = 23 - Top = 73 - Width = 80 - TabOrder = 1 - Text = 'Edit2' - end - object Button1: TButton - Left = 92 - Height = 25 - Top = 120 - Width = 75 - Caption = 'Button1' - TabOrder = 2 - end object Label2: TLabel AnchorSideLeft.Control = TabSheet1 AnchorSideLeft.Side = asrCenter Left = 167 Height = 31 - Top = 208 + Top = 304 Width = 244 Alignment = taCenter Caption = 'This is a Fixed Page, and cannot be closed.'#13#10'You can configure it on "FixedPages" Property' ParentColor = False end + object IpHtmlPanel1: TIpHtmlPanel + Left = 0 + Height = 290 + Top = 0 + Width = 579 + Align = alTop + FixedTypeface = 'Courier New' + DefaultTypeFace = 'default' + DefaultFontSize = 12 + FlagErrors = False + PrintSettings.MarginLeft = 0.5 + PrintSettings.MarginTop = 0.5 + PrintSettings.MarginRight = 0.5 + PrintSettings.MarginBottom = 0.5 + TabOrder = 0 + end end end object pBottom: TPanel @@ -644,11 +636,11 @@ object fMainForm: TfMainForm object MenuItem1: TMenuItem Caption = 'Forms' object miForm1: TMenuItem - Caption = 'Open Form 1' + Caption = 'Open New Form 1' OnClick = miForm1Click end object miForm2: TMenuItem - Caption = 'Open Form 2' + Caption = 'Show Already Created Form 2' end object MenuItem2: TMenuItem Caption = '-' diff --git a/components/tdi/Demo/umainform.pas b/components/tdi/Demo/umainform.pas index a779915ce..7b8139518 100644 --- a/components/tdi/Demo/umainform.pas +++ b/components/tdi/Demo/umainform.pas @@ -6,19 +6,17 @@ interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, - ComCtrls, Buttons, StdCtrls, ExtCtrls, TDIClass , types; + ComCtrls, Buttons, StdCtrls, ExtCtrls, TDIClass , types, SynMemo, IpHtml; type { TfMainForm } TfMainForm = class(TForm) - Button1 : TButton ; cbxBackgroundCorner : TComboBox ; - Edit1 : TEdit ; - Edit2 : TEdit ; Image1 : TImage ; ImageList1 : TImageList ; + IpHtmlPanel1 : TIpHtmlPanel ; Label1 : TLabel ; Label2 : TLabel ; MainMenu1 : TMainMenu ; diff --git a/components/tdi/Make_lrs.bat b/components/tdi/Make_lrs.bat new file mode 100644 index 000000000..5223c5749 --- /dev/null +++ b/components/tdi/Make_lrs.bat @@ -0,0 +1,33 @@ +@ECHO OFF +@ECHO OFF + +if "%1" == "" goto param_default + +if NOT EXIST %1\lazarus.exe goto error_param + +if NOT EXIST %1\tools\lazres.exe GOTO error_lazres + +del tdi.lrs +%1\tools\lazres.exe tdi.lrs ttdinotebook.png + +GOTO end + +:param_default +Make_lrs.bat c:\lazarus +goto :end + +:error_param +ECHO "Please Inform Lazarus folder. For instance:" +echo. +ECHO "Make_lrs.bat c:\lazarus" +goto :end + +:error_lazres +ECHO "Arquivo:" +echo %1\tools\lazres.exe +ECHO "was not found... Please compile the project \lazarus\tools\lazres.lpi" +goto end + +:end +echo "Press ENTER to leave" . +pause \ No newline at end of file diff --git a/components/tdi/tdi.lrs b/components/tdi/tdi.lrs new file mode 100644 index 000000000..c5a0074fd --- /dev/null +++ b/components/tdi/tdi.lrs @@ -0,0 +1,27 @@ +LazarusResources.Add('ttdinotebook','PNG',[ + #137'PNG'#13#10#26#10#0#0#0#13'IHDR'#0#0#0#24#0#0#0#24#8#6#0#0#0#224'w='#248#0 + +#0#0#1'sRGB'#0#174#206#28#233#0#0#0#4'gAMA'#0#0#177#143#11#252'a'#5#0#0#0#9 + +'pHYs'#0#0#14#196#0#0#14#196#1#149'+'#14#27#0#0#0#6'bKGD'#0#255#0#255#0#255 + +#160#189#167#147#0#0#0#7'tIME'#7#216#2#27#8#14#17'5A'#235#216#0#0#1#229'IDAT' + +'HK'#181'V'#187'JCA'#16'='#138#133#224#23'H'#10#197#31#176'2'#160#146#248#136 + +#230#29'c'#132#136'~'#132'hg'#16#11#197'&e0'#165#189#22#1#223'y?4W'#212'V{' + +#193#136#16',l|'#23'bbfa/'#155#155#189'!'#209'd`'#24#238#204#238'9gg'#216#229 + +'v'#148'+'#134'6Zg'#27#177#25't'#7#157' rY@8r'#173#203#181#228#31#134#127#180 + +#255'OZ'#24#129'ye'#15'JhQ'#23#128#234'2#b'#153#176'*AD`Z'#222#165'P~y'#253 + +#150':'#175#179'E'#130'5'#146#175#154#193#251#199#23'd'#206#213#23#159#222' ' + +':'#229#181'9'#250#22#173#138#224#227#253#19'2'#231#27#180'5'#202#215'['#175 + +#14'9'#16#8#195'h'#28#210#157'AH'#185'oj'#192'#'#221#207'p9'#6'a'#26'3'#3#212 + +#210#213#213'm'#181#179#165#210'O'#185#190#151'*u}'#231'x'#202'y'#158'av'#137 + +#210#10#133';'#236'\5%'#182'f'#177#221'P'#212#159#1#175#12#247#220'`ka'#0#178 + +#184'9'#223#207#242#27#254'>'#22#215'}'#6#22#215#188#189'Re'#210#155#236#244 + +#204'!v'#178#15#30#29'n'#31#251#182#187'f'#145#136#30#194#234#152'A2v'#4#139 + +#213#133'l*'#138'q'#139#29'g'#153'x'#227#4'"8'#129#198'O'#15'`sz'#25#248#180 + +#221#131'T'#252#24#147#211'N'#21#252'<'#155#192#216#164#173'q'#2#173'b'#2#229 + +#138#211#137#19'LL9'#144'K'#199#152'r'#14#158#207'%'#27''''#16#21'O'#217#220 + +' PQ1'#181#131#20#139#224'M'#157#128'+&'#240'L'#242'TW1'#129#146'r'#30'eG' + +#144#14#153#183#129#192'i3)6OX'#153'b'#138#4'*'#139'2'#2#246#154#210'M'#14#6 + +#151#208#170'{'#16#141#223#170'7'#185#134#224#127#215#12'x|(B$'#168'j'#17#21 + +#255#235'Z'#129#236#4#148#164'6'#181#202#232#161'#'#163#199'N%'#184#200'+' + +#173#194'W'#193#213#231#186#165#200#26#176#182#255'U'#252#2#230#197#31'?'#177 + +#153'q'#226#0#0#0#0'IEND'#174'B`'#130 +]); diff --git a/components/tdi/tdireg.pas b/components/tdi/tdireg.pas index 378d977f7..60feca8a7 100644 --- a/components/tdi/tdireg.pas +++ b/components/tdi/tdireg.pas @@ -18,6 +18,8 @@ begin RegisterComponents('TDI', [ TTDINoteBook ]); end ; +initialization +{$I tdi.lrs} end. diff --git a/components/tdi/ttdinotebook.png b/components/tdi/ttdinotebook.png new file mode 100644 index 0000000000000000000000000000000000000000..e7021ba7b7c6a1ab337e84274fadd0d88d9e8221 GIT binary patch literal 629 zcmV-*0*d{KP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXf00v@9M??Vs0RI60 zpuMM)00007bV*G`2iO7|2o4c7LF?E600HGmL_t(YOSM+JN<%>qJ&J|k7f1@lAFwi@ zlK6<`9b<%ueuQXe5DUd7WiX|^76IRRKQvd=R(rvS5G-tb7h+;&VK1ATy&=(LU>NSq z?m1^?*yVPVD~2{&XB)8@bO)Uva#=t)a;?j?K~Bi+w%IR;@GGXvDp)zxjav!&8cxxSYwb$#b}%6Xn)c8Sso zg*)tAH6^xYvE5MAp8>B7_uOD>VF0qYIp5Fn8~#2P*L?;S*Sx(_Wzw7M^vof4vJV~| zZXf%$yJnGy9>VIFK{9p(i`9i}DvEK79cP(%;{+l&fyPe{U~_sI__W=FRQwo|(@quq zJe$DSq^)rRtzrV@iqnY`OiVeDOUIaU4xY~?8z&GIPubicP*E|pgA|M4O`U)%Ch$!1 zR97*9l5!qpN01Jgw}HTEGbuJtSeasq1S*R%0`{8HO%4W^(5ib7jo+#_xrX3>*9>@k zC_*HtY7rIx>so>A1eByUwaVzBBcsPoCAi2dt-@Eq)#tjU$QrP=|5f|~=EWaBv6*q= P00000NkvXXu0mjfjVcPL literal 0 HcmV?d00001