Стартовый пул

This commit is contained in:
2024-04-02 08:46:59 +03:00
parent fd57fffd3a
commit 3bb34d000b
5591 changed files with 3291734 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
object BCImageButton5: TBCImageButton
Left = 32
Height = 55
Top = 269
Width = 275
Anchors = [akTop, akLeft, akRight]
BitmapFile = 'D:\repositorios\bgracontrols\test\test_bcimagebutton\sample_5.png'
BitmapOptions.AutoDetectRepeat = True
BitmapOptions.MarginTop = 4
BitmapOptions.MarginRight = 4
BitmapOptions.MarginBottom = 4
BitmapOptions.MarginLeft = 4
BitmapOptions.Direction = sdVertical
Caption = 'BCImageButton5'
ParentFont = False
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -0,0 +1,188 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<General>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
<Title Value="test"/>
<ResourceType Value="res"/>
<UseXPManifest Value="True"/>
</General>
<i18n>
<EnableI18N LFM="False"/>
</i18n>
<BuildModes Count="3">
<Item1 Name="Debug" Default="True"/>
<Item2 Name="Release">
<CompilerOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="test"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<CodeGeneration>
<SmartLinkUnit Value="True"/>
<Optimizations>
<OptimizationLevel Value="3"/>
<VariablesInRegisters Value="True"/>
</Optimizations>
</CodeGeneration>
<Linking>
<Debugging>
<GenerateDebugInfo Value="False"/>
<StripSymbols Value="True"/>
</Debugging>
<LinkSmart Value="True"/>
<Options>
<Win32>
<GraphicApplication Value="True"/>
</Win32>
</Options>
</Linking>
</CompilerOptions>
</Item2>
<Item3 Name="Debug macOS 64">
<MacroValues Count="1">
<Macro1 Name="LCLWidgetType" Value="cocoa"/>
</MacroValues>
<CompilerOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="test"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<IncludeAssertionCode Value="True"/>
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<Checks>
<IOChecks Value="True"/>
<RangeChecks Value="True"/>
<OverflowChecks Value="True"/>
<StackChecks Value="True"/>
</Checks>
<TargetCPU Value="x86_64"/>
<TargetOS Value="darwin"/>
<Optimizations>
<VariablesInRegisters Value="True"/>
</Optimizations>
</CodeGeneration>
<Linking>
<Debugging>
<DebugInfoType Value="dsDwarf2Set"/>
<UseHeaptrc Value="True"/>
<StripSymbols Value="True"/>
<UseExternalDbgSyms Value="True"/>
</Debugging>
<Options>
<Win32>
<GraphicApplication Value="True"/>
</Win32>
</Options>
</Linking>
</CompilerOptions>
</Item3>
<SharedMatrixOptions Count="1">
<Item1 ID="565344327308" Modes="Debug macOS 64" Type="IDEMacro" MacroName="LCLWidgetType" Value="cocoa"/>
</SharedMatrixOptions>
</BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
<ExcludeFileFilter Value="*.(bak|ppu|o|so);*~;backup"/>
</PublishOptions>
<RunParams>
<FormatVersion Value="2"/>
<Modes Count="1">
<Mode0 Name="default"/>
</Modes>
</RunParams>
<RequiredPackages Count="2">
<Item1>
<PackageName Value="bgracontrols"/>
</Item1>
<Item2>
<PackageName Value="LCL"/>
</Item2>
</RequiredPackages>
<Units Count="2">
<Unit0>
<Filename Value="test.lpr"/>
<IsPartOfProject Value="True"/>
</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="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="test"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<IncludeAssertionCode Value="True"/>
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<Checks>
<IOChecks Value="True"/>
<RangeChecks Value="True"/>
<OverflowChecks Value="True"/>
<StackChecks Value="True"/>
</Checks>
<Optimizations>
<VariablesInRegisters Value="True"/>
</Optimizations>
</CodeGeneration>
<Linking>
<Debugging>
<DebugInfoType Value="dsDwarf2Set"/>
<UseHeaptrc Value="True"/>
<StripSymbols Value="True"/>
<UseExternalDbgSyms Value="True"/>
</Debugging>
<Options>
<Win32>
<GraphicApplication Value="True"/>
</Win32>
</Options>
</Linking>
</CompilerOptions>
<Debugging>
<Exceptions Count="3">
<Item1>
<Name Value="EAbort"/>
</Item1>
<Item2>
<Name Value="ECodetoolError"/>
</Item2>
<Item3>
<Name Value="EFOpenError"/>
</Item3>
</Exceptions>
</Debugging>
</CONFIG>

View File

@@ -0,0 +1,21 @@
program test;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, Unit1
{ you can add units after this };
{$R *.res}
begin
RequireDerivedFormResource := True;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.

View File

@@ -0,0 +1,106 @@
object Form1: TForm1
Left = 214
Height = 403
Top = 122
Width = 331
Caption = 'Form1'
ClientHeight = 403
ClientWidth = 331
Color = clWhite
OnCreate = FormCreate
LCLVersion = '2.0.4.0'
object BCImageButton1: TBCImageButton
Left = 32
Height = 55
Top = 16
Width = 275
AlphaTest = False
Anchors = [akTop, akLeft, akRight]
Animation = False
BitmapFile = 'sample_1.png'
BitmapOptions.AutoDetectRepeat = True
BitmapOptions.MarginTop = 4
BitmapOptions.MarginRight = 4
BitmapOptions.MarginBottom = 2
BitmapOptions.MarginLeft = 2
BitmapOptions.Direction = sdVertical
Caption = 'BCImageButton1'
OnClick = BCImageButton1Click
ParentFont = False
end
object BCImageButton2: TBCImageButton
Left = 32
Height = 55
Top = 79
Width = 275
AlphaTest = False
Anchors = [akTop, akLeft, akRight]
BitmapFile = 'sample_2.png'
BitmapOptions.Direction = sdVertical
BitmapOptions.Proportional = True
ParentFont = False
end
object BCImageButton3: TBCImageButton
Left = 32
Height = 55
Top = 143
Width = 275
Anchors = [akTop, akLeft, akRight]
BitmapFile = 'sample_3.png'
BitmapOptions.AutoDetectRepeat = True
BitmapOptions.RepeatMiddleHorizontal = True
BitmapOptions.RepeatMiddleVertical = True
BitmapOptions.MarginTop = 2
BitmapOptions.MarginRight = 2
BitmapOptions.MarginBottom = 2
BitmapOptions.MarginLeft = 2
BitmapOptions.Direction = sdVertical
BitmapOptions.ResampleMode = rmSimpleStretch
Caption = 'BCImageButton3'
ParentFont = False
end
object BCImageButton4: TBCImageButton
Left = 32
Height = 55
Top = 205
Width = 275
Anchors = [akTop, akLeft, akRight]
BitmapFile = 'sample_4.png'
BitmapOptions.AutoDetectRepeat = True
BitmapOptions.MarginTop = 5
BitmapOptions.MarginRight = 5
BitmapOptions.MarginBottom = 5
BitmapOptions.MarginLeft = 5
BitmapOptions.Direction = sdVertical
BitmapOptions.ResampleMode = rmSimpleStretch
Caption = 'BCImageButton4'
ParentFont = False
end
object BCImageButton5: TBCImageButton
Left = 32
Height = 55
Top = 269
Width = 275
Anchors = [akTop, akLeft, akRight]
BitmapFile = 'sample_5.png'
BitmapOptions.AutoDetectRepeat = True
BitmapOptions.MarginTop = 4
BitmapOptions.MarginRight = 4
BitmapOptions.MarginBottom = 4
BitmapOptions.MarginLeft = 4
BitmapOptions.Direction = sdVertical
Caption = 'BCImageButton5'
ParentFont = False
end
object BCImageButton6: TBCImageButton
Left = 32
Height = 55
Top = 333
Width = 275
Anchors = [akTop, akLeft, akRight]
Animation = False
BitmapOptions.Direction = sdVertical
Caption = 'BCImageButton6'
ParentFont = False
end
end

View File

@@ -0,0 +1,68 @@
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Forms, Graphics,
BCImageButton, BGRABitmap,
BCFilters, BCButton, Classes;
type
{ TForm1 }
TForm1 = class(TForm)
BCImageButton1: TBCImageButton;
BCImageButton2: TBCImageButton;
BCImageButton3: TBCImageButton;
BCImageButton4: TBCImageButton;
BCImageButton5: TBCImageButton;
BCImageButton6: TBCImageButton;
procedure BCImageButton1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.FormCreate(Sender: TObject);
begin
BCImageButton1.BitmapFile := Application.Location + BCImageButton1.BitmapFile;
BCImageButton2.BitmapFile := Application.Location + BCImageButton2.BitmapFile;
BCImageButton3.BitmapFile := Application.Location + BCImageButton3.BitmapFile;
BCImageButton4.BitmapFile := Application.Location + BCImageButton4.BitmapFile;
BCImageButton5.BitmapFile := Application.Location + BCImageButton5.BitmapFile;
BCImageButton6.BitmapFile := Application.Location + BCImageButton6.BitmapFile;
BCImageButton1.LoadFromBitmapFile;
BCImageButton2.LoadFromBitmapFile;
BCImageButton2.TextVisible := False;
BCImageButton3.LoadFromBitmapFile;
BCImageButton4.LoadFromBitmapFile;
BCImageButton5.LoadFromBitmapFile;
GrayScale(BCImageButton1.BitmapOptions.Bitmap);
BCImageButton5.SaveToFile('button.bcimagebutton');
BCImageButton6.AssignFromFile('button.bcimagebutton');
end;
procedure TForm1.BCImageButton1Click(Sender: TObject);
begin
BCImageButton1.Assign(BCImageButton2);
end;
end.