examples: icons - use FPC resources

git-svn-id: trunk@26895 -
This commit is contained in:
paul 2010-07-29 09:13:16 +00:00
parent e6e6fe5c0a
commit 8fd1403f95
7 changed files with 27 additions and 129 deletions

3
.gitattributes vendored
View File

@ -3111,11 +3111,10 @@ examples/htmlhelp_ipro/htmlhelpsample.lpi svneol=native#text/plain
examples/htmlhelp_ipro/htmlhelpsample.lpr svneol=native#text/plain
examples/icons/icons/lazarus.icns -text svneol=unset#image/x-icns
examples/icons/icons/lazarus.ico -text svneol=unset#image/icon
examples/icons/manifest.rc svneol=native#text/plain
examples/icons/project1.lpi svneol=native#text/plain
examples/icons/project1.lpr svneol=native#text/plain
examples/icons/project1.res -text
examples/icons/unit1.lfm svneol=native#text/plain
examples/icons/unit1.lrs svneol=native#text/pascal
examples/icons/unit1.pas svneol=native#text/pascal
examples/idequickfix/quickfixdemo1.pas svneol=native#text/plain
examples/idequickfix/quickfixexample.lpk svneol=native#text/plain

View File

@ -1,25 +0,0 @@
#define RT_MANIFEST 24
#define CREATEPROCESS_MANIFEST_RESOURCE_ID 1
#define ISOLATIONAWARE_MANIFEST_RESOURCE_ID 2
#define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID 3
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST MOVEABLE PURE
{
"<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?>"
"<assembly xmlns=""urn:schemas-microsoft-com:asm.v1"" manifestVersion=""1.0"">"
"<assemblyIdentity version=""1.0.0.0"" processorArchitecture=""*"" name=""CompanyName.ProductName.YourApp"" type=""win32""/>"
"<description>Your application description here.</description>"
"<dependency>"
"<dependentAssembly>"
"<assemblyIdentity type=""win32"" name=""Microsoft.Windows.Common-Controls"" version=""6.0.0.0"" processorArchitecture=""*"" publicKeyToken=""6595b64144ccf1df"" language=""*""/>"
"</dependentAssembly>"
"</dependency>"
"<trustInfo xmlns=""urn:schemas-microsoft-com:asm.v3"">"
"<security>"
"<requestedPrivileges>"
"<requestedExecutionLevel level=""asInvoker"" uiAccess=""false""/>"
"</requestedPrivileges>"
"</security>"
"</trustInfo>"
"</assembly>"
}

View File

@ -1,17 +1,18 @@
<?xml version="1.0"?>
<CONFIG>
<ProjectOptions>
<PathDelim Value="/"/>
<Version Value="6"/>
<Version Value="8"/>
<General>
<Flags>
<LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InIDEConfig"/>
<MainUnit Value="0"/>
<IconPath Value="./"/>
<TargetFileExt Value=".exe"/>
<UseXPManifest Value="True"/>
</General>
<VersionInfo>
<ProjectVersion Value=""/>
<StringTable Comments="" CompanyName="" FileDescription="" FileVersion="0.0.0.0" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion=""/>
</VersionInfo>
<PublishOptions>
<Version Value="2"/>
@ -30,19 +31,29 @@
<PackageName Value="LCL"/>
</Item1>
</RequiredPackages>
<Units Count="1">
<Units Count="2">
<Unit0>
<Filename Value="project1.lpr"/>
<IsPartOfProject Value="True"/>
<UnitName Value="project1"/>
</Unit0>
<Unit1>
<Filename Value="unit1.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="Form1"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="Unit1"/>
</Unit1>
</Units>
</ProjectOptions>
<CompilerOptions>
<Version Value="5"/>
<CodeGeneration>
<Generate Value="Faster"/>
</CodeGeneration>
<Version Value="9"/>
<Parsing>
<SyntaxOptions>
<UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<Linking>
<Options>
<Win32>
@ -51,6 +62,9 @@
</Options>
</Linking>
<Other>
<CompilerMessages>
<UseMsgFile Value="True"/>
</CompilerMessages>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>

View File

@ -11,7 +11,7 @@ uses
Forms
{ you can add units after this }, Unit1, IcnsTypes;
{$IFDEF WINDOWS}{$R manifest.rc}{$ENDIF}
{$R *.res}
begin
Application.Initialize;

BIN
examples/icons/project1.res Normal file

Binary file not shown.

View File

@ -1,89 +0,0 @@
{ This is an automatically generated lazarus resource file }
LazarusResources.Add('TForm1','FORMDATA',[
'TPF0'#6'TForm1'#5'Form1'#4'Left'#3'4'#2#6'Height'#3#131#1#3'Top'#3#167#1#5'W'
+'idth'#3'4'#1#7'Caption'#6#12'Icon example'#12'ClientHeight'#3#131#1#11'Clie'
+'ntWidth'#3'4'#1#8'Position'#7#14'poScreenCenter'#10'LCLVersion'#6#6'0.9.25'
+#0#6'TImage'#6'Image1'#22'AnchorSideLeft.Control'#7#5'Owner'#21'AnchorSideTo'
+'p.Control'#7#5'Owner'#23'AnchorSideRight.Control'#7#5'Owner'#20'AnchorSideR'
+'ight.Side'#7#9'asrBottom'#4'Left'#2#5#6'Height'#3#210#0#3'Top'#2#5#5'Width'
+#3'*'#1#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#18'BorderSpacing.Left'
+#2#5#17'BorderSpacing.Top'#2#5#19'BorderSpacing.Right'#2#5#11'Transparent'#9
+#0#0#6'TBevel'#6'Bevel1'#22'AnchorSideLeft.Control'#7#5'Owner'#21'AnchorSide'
+'Top.Control'#7#9'TrackBar1'#18'AnchorSideTop.Side'#7#9'asrBottom'#23'Anchor'
+'SideRight.Control'#7#5'Owner'#20'AnchorSideRight.Side'#7#9'asrBottom'#21'An'
+'chorSideBottom.Side'#7#9'asrBottom'#4'Left'#2#4#6'Height'#2#6#3'Top'#3#253#0
+#5'Width'#3','#1#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#18'BorderSpac'
+'ing.Left'#2#4#17'BorderSpacing.Top'#2#5#19'BorderSpacing.Right'#2#4#0#0#7'T'
+'Button'#7'Button1'#22'AnchorSideLeft.Control'#7#5'Owner'#21'AnchorSideTop.C'
+'ontrol'#7#6'Bevel1'#18'AnchorSideTop.Side'#7#9'asrBottom'#23'AnchorSideRigh'
+'t.Control'#7#5'Owner'#20'AnchorSideRight.Side'#7#9'asrBottom'#4'Left'#2#5#6
+'Height'#2' '#3'Top'#3#8#1#5'Width'#3'*'#1#7'Anchors'#11#5'akTop'#6'akLeft'#7
+'akRight'#0#18'BorderSpacing.Left'#2#5#17'BorderSpacing.Top'#2#5#19'BorderSp'
+'acing.Right'#2#5#7'Caption'#6#27'Load from Windows icon file'#7'OnClick'#7
+#12'Button1Click'#8'TabOrder'#2#0#0#0#9'TTrackBar'#9'TrackBar1'#22'AnchorSid'
+'eLeft.Control'#7#6'Image1'#21'AnchorSideTop.Control'#7#6'Image1'#18'AnchorS'
+'ideTop.Side'#7#9'asrBottom'#23'AnchorSideRight.Control'#7#6'Image1'#20'Anch'
+'orSideRight.Side'#7#9'asrBottom'#4'Left'#2#5#6'Height'#2#28#3'Top'#3#220#0#5
+'Width'#3'*'#1#8'OnChange'#7#15'TrackBar1Change'#8'PageSize'#2#1#8'ScalePos'
+#7#5'trTop'#9'TickStyle'#7#8'tsManual'#7'Anchors'#11#5'akTop'#6'akLeft'#7'ak'
+'Right'#0#17'BorderSpacing.Top'#2#5#7'Enabled'#8#8'TabOrder'#2#1#0#0#7'TButt'
+'on'#7'Button2'#22'AnchorSideLeft.Control'#7#7'Button1'#21'AnchorSideTop.Con'
+'trol'#7#7'Button1'#18'AnchorSideTop.Side'#7#9'asrBottom'#23'AnchorSideRight'
+'.Control'#7#7'Button1'#20'AnchorSideRight.Side'#7#9'asrBottom'#4'Left'#2#5#6
+'Height'#2' '#3'Top'#3'-'#1#5'Width'#3'*'#1#7'Anchors'#11#5'akTop'#6'akLeft'
+#7'akRight'#0#17'BorderSpacing.Top'#2#5#7'Caption'#6#23'Load from OSX icon f'
+'ile'#7'OnClick'#7#12'Button2Click'#8'TabOrder'#2#2#0#0#7'TButton'#7'Button3'
+#22'AnchorSideLeft.Control'#7#6'Bevel1'#21'AnchorSideTop.Control'#7#7'Button'
+'2'#18'AnchorSideTop.Side'#7#9'asrBottom'#4'Left'#2#4#6'Height'#2' '#3'Top'#3
+'R'#1#5'Width'#3#150#0#17'BorderSpacing.Top'#2#5#7'Caption'#6#16'Set as Form'
+' icon'#7'OnClick'#7#12'Button3Click'#8'TabOrder'#2#3#0#0#7'TButton'#7'Butto'
+'n4'#21'AnchorSideTop.Control'#7#7'Button2'#18'AnchorSideTop.Side'#7#9'asrBo'
+'ttom'#23'AnchorSideRight.Control'#7#7'Button2'#20'AnchorSideRight.Side'#7#9
+'asrBottom'#4'Left'#3#160#0#6'Height'#2' '#3'Top'#3'R'#1#5'Width'#3#143#0#7
+'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#17'BorderSpacing.Top'#2#5#7'Cap'
+'tion'#6#23'Set as Application icon'#7'OnClick'#7#12'Button4Click'#8'TabOrde'
+'r'#2#4#0#0#0#6'TForm1'#5'Form1'#4'Left'#3'4'#2#6'Height'#3#131#1#3'Top'#3
+#167#1#5'Width'#3'4'#1#7'Caption'#6#12'Icon example'#12'ClientHeight'#3#131#1
+#11'ClientWidth'#3'4'#1#8'Position'#7#14'poScreenCenter'#10'LCLVersion'#6#6
+'0.9.25'#0#6'TImage'#6'Image1'#22'AnchorSideLeft.Control'#7#5'Owner'#21'Anch'
+'orSideTop.Control'#7#5'Owner'#23'AnchorSideRight.Control'#7#5'Owner'#20'Anc'
+'horSideRight.Side'#7#9'asrBottom'#4'Left'#2#5#6'Height'#3#210#0#3'Top'#2#5#5
+'Width'#3'*'#1#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#18'BorderSpacin'
+'g.Left'#2#5#17'BorderSpacing.Top'#2#5#19'BorderSpacing.Right'#2#5#11'Transp'
+'arent'#9#0#0#6'TBevel'#6'Bevel1'#22'AnchorSideLeft.Control'#7#5'Owner'#21'A'
+'nchorSideTop.Control'#7#9'TrackBar1'#18'AnchorSideTop.Side'#7#9'asrBottom'
+#23'AnchorSideRight.Control'#7#5'Owner'#20'AnchorSideRight.Side'#7#9'asrBott'
+'om'#21'AnchorSideBottom.Side'#7#9'asrBottom'#4'Left'#2#4#6'Height'#2#6#3'To'
+'p'#3#253#0#5'Width'#3','#1#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#18
+'BorderSpacing.Left'#2#4#17'BorderSpacing.Top'#2#5#19'BorderSpacing.Right'#2
+#4#0#0#7'TButton'#7'Button1'#22'AnchorSideLeft.Control'#7#5'Owner'#21'Anchor'
+'SideTop.Control'#7#6'Bevel1'#18'AnchorSideTop.Side'#7#9'asrBottom'#23'Ancho'
+'rSideRight.Control'#7#5'Owner'#20'AnchorSideRight.Side'#7#9'asrBottom'#4'Le'
+'ft'#2#5#6'Height'#2' '#3'Top'#3#8#1#5'Width'#3'*'#1#7'Anchors'#11#5'akTop'#6
+'akLeft'#7'akRight'#0#18'BorderSpacing.Left'#2#5#17'BorderSpacing.Top'#2#5#19
+'BorderSpacing.Right'#2#5#7'Caption'#6#27'Load from Windows icon file'#7'OnC'
+'lick'#7#12'Button1Click'#8'TabOrder'#2#0#0#0#9'TTrackBar'#9'TrackBar1'#22'A'
+'nchorSideLeft.Control'#7#6'Image1'#21'AnchorSideTop.Control'#7#6'Image1'#18
,'AnchorSideTop.Side'#7#9'asrBottom'#23'AnchorSideRight.Control'#7#6'Image1'
+#20'AnchorSideRight.Side'#7#9'asrBottom'#4'Left'#2#5#6'Height'#2#28#3'Top'#3
+#220#0#5'Width'#3'*'#1#8'OnChange'#7#15'TrackBar1Change'#8'PageSize'#2#1#8'S'
+'calePos'#7#5'trTop'#9'TickStyle'#7#8'tsManual'#7'Anchors'#11#5'akTop'#6'akL'
+'eft'#7'akRight'#0#17'BorderSpacing.Top'#2#5#7'Enabled'#8#8'TabOrder'#2#1#0#0
+#7'TButton'#7'Button2'#22'AnchorSideLeft.Control'#7#7'Button1'#21'AnchorSide'
+'Top.Control'#7#7'Button1'#18'AnchorSideTop.Side'#7#9'asrBottom'#23'AnchorSi'
+'deRight.Control'#7#7'Button1'#20'AnchorSideRight.Side'#7#9'asrBottom'#4'Lef'
+'t'#2#5#6'Height'#2' '#3'Top'#3'-'#1#5'Width'#3'*'#1#7'Anchors'#11#5'akTop'#6
+'akLeft'#7'akRight'#0#17'BorderSpacing.Top'#2#5#7'Caption'#6#23'Load from OS'
+'X icon file'#7'OnClick'#7#12'Button2Click'#8'TabOrder'#2#2#0#0#7'TButton'#7
+'Button3'#22'AnchorSideLeft.Control'#7#6'Bevel1'#21'AnchorSideTop.Control'#7
+#7'Button2'#18'AnchorSideTop.Side'#7#9'asrBottom'#4'Left'#2#4#6'Height'#2' '
+#3'Top'#3'R'#1#5'Width'#3#150#0#17'BorderSpacing.Top'#2#5#7'Caption'#6#16'Se'
+'t as Form icon'#7'OnClick'#7#12'Button3Click'#8'TabOrder'#2#3#0#0#7'TButton'
+#7'Button4'#21'AnchorSideTop.Control'#7#7'Button2'#18'AnchorSideTop.Side'#7#9
+'asrBottom'#23'AnchorSideRight.Control'#7#7'Button2'#20'AnchorSideRight.Side'
+#7#9'asrBottom'#4'Left'#3#160#0#6'Height'#2' '#3'Top'#3'R'#1#5'Width'#3#143#0
+#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#17'BorderSpacing.Top'#2#5#7'C'
+'aption'#6#23'Set as Application icon'#7'OnClick'#7#12'Button4Click'#8'TabOr'
+'der'#2#4#0#0#0
]);

View File

@ -34,6 +34,8 @@ var
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
@ -76,8 +78,5 @@ begin
end;
end;
initialization
{$I unit1.lrs}
end.