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

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

View File

@@ -0,0 +1,183 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<General>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
<Title Value="ptestupdown"/>
<ResourceType Value="res"/>
<UseXPManifest Value="True"/>
<Icon Value="0"/>
</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="ptestupdown"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<CodeGeneration>
<SmartLinkUnit Value="True"/>
<Optimizations>
<OptimizationLevel Value="3"/>
</Optimizations>
</CodeGeneration>
<Linking>
<Debugging>
<GenerateDebugInfo Value="False"/>
</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="ptestupdown"/>
</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>
<VerifyObjMethodCallValidity Value="True"/>
<TargetCPU Value="x86_64"/>
<TargetOS Value="darwin"/>
</CodeGeneration>
<Linking>
<Debugging>
<DebugInfoType Value="dsDwarf2Set"/>
<UseHeaptrc Value="True"/>
<TrashVariables Value="True"/>
<UseExternalDbgSyms Value="True"/>
</Debugging>
<Options>
<Win32>
<GraphicApplication Value="True"/>
</Win32>
</Options>
</Linking>
</CompilerOptions>
</Item3>
<SharedMatrixOptions Count="1">
<Item1 ID="705264493448" 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="ptestupdown.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="ptestupdown"/>
</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>
<VerifyObjMethodCallValidity Value="True"/>
</CodeGeneration>
<Linking>
<Debugging>
<DebugInfoType Value="dsDwarf2Set"/>
<UseHeaptrc Value="True"/>
<TrashVariables 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 ptestupdown;
{$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,372 @@
object Form1: TForm1
Left = 326
Height = 138
Top = 38
Width = 320
Caption = 'Form1'
ClientHeight = 138
ClientWidth = 320
LCLVersion = '1.0.10.0'
object BCTrackbarUpdown1: TBCTrackbarUpdown
Left = 8
Height = 45
Top = 32
Width = 100
BarExponent = 1
Increment = 1
LongTimeInterval = 400
MinValue = 0
MaxValue = 100
Value = 50
ShortTimeInterval = 100
Background.Color = clWindow
Background.ColorOpacity = 255
Background.Gradient1.StartColor = clWhite
Background.Gradient1.StartColorOpacity = 255
Background.Gradient1.DrawMode = dmSet
Background.Gradient1.EndColor = clBlack
Background.Gradient1.EndColorOpacity = 255
Background.Gradient1.ColorCorrection = True
Background.Gradient1.GradientType = gtLinear
Background.Gradient1.Point1XPercent = 0
Background.Gradient1.Point1YPercent = 0
Background.Gradient1.Point2XPercent = 0
Background.Gradient1.Point2YPercent = 100
Background.Gradient1.Sinus = False
Background.Gradient2.StartColor = clWhite
Background.Gradient2.StartColorOpacity = 255
Background.Gradient2.DrawMode = dmSet
Background.Gradient2.EndColor = clBlack
Background.Gradient2.EndColorOpacity = 255
Background.Gradient2.ColorCorrection = True
Background.Gradient2.GradientType = gtLinear
Background.Gradient2.Point1XPercent = 0
Background.Gradient2.Point1YPercent = 0
Background.Gradient2.Point2XPercent = 0
Background.Gradient2.Point2YPercent = 100
Background.Gradient2.Sinus = False
Background.Gradient1EndPercent = 35
Background.Style = bbsColor
ButtonBackground.Color = clBlack
ButtonBackground.ColorOpacity = 255
ButtonBackground.Gradient1.StartColor = clBtnShadow
ButtonBackground.Gradient1.StartColorOpacity = 255
ButtonBackground.Gradient1.DrawMode = dmSet
ButtonBackground.Gradient1.EndColor = clBtnFace
ButtonBackground.Gradient1.EndColorOpacity = 255
ButtonBackground.Gradient1.ColorCorrection = True
ButtonBackground.Gradient1.GradientType = gtLinear
ButtonBackground.Gradient1.Point1XPercent = 0
ButtonBackground.Gradient1.Point1YPercent = -50
ButtonBackground.Gradient1.Point2XPercent = 0
ButtonBackground.Gradient1.Point2YPercent = 50
ButtonBackground.Gradient1.Sinus = False
ButtonBackground.Gradient2.StartColor = clBtnFace
ButtonBackground.Gradient2.StartColorOpacity = 255
ButtonBackground.Gradient2.DrawMode = dmSet
ButtonBackground.Gradient2.EndColor = clBtnShadow
ButtonBackground.Gradient2.EndColorOpacity = 255
ButtonBackground.Gradient2.ColorCorrection = True
ButtonBackground.Gradient2.GradientType = gtLinear
ButtonBackground.Gradient2.Point1XPercent = 0
ButtonBackground.Gradient2.Point1YPercent = 50
ButtonBackground.Gradient2.Point2XPercent = 0
ButtonBackground.Gradient2.Point2YPercent = 150
ButtonBackground.Gradient2.Sinus = False
ButtonBackground.Gradient1EndPercent = 50
ButtonBackground.Style = bbsGradient
ButtonDownBackground.Color = clBtnShadow
ButtonDownBackground.ColorOpacity = 255
ButtonDownBackground.Gradient1.StartColor = clWhite
ButtonDownBackground.Gradient1.StartColorOpacity = 255
ButtonDownBackground.Gradient1.DrawMode = dmSet
ButtonDownBackground.Gradient1.EndColor = clBlack
ButtonDownBackground.Gradient1.EndColorOpacity = 255
ButtonDownBackground.Gradient1.ColorCorrection = True
ButtonDownBackground.Gradient1.GradientType = gtLinear
ButtonDownBackground.Gradient1.Point1XPercent = 0
ButtonDownBackground.Gradient1.Point1YPercent = 0
ButtonDownBackground.Gradient1.Point2XPercent = 0
ButtonDownBackground.Gradient1.Point2YPercent = 100
ButtonDownBackground.Gradient1.Sinus = False
ButtonDownBackground.Gradient2.StartColor = clWhite
ButtonDownBackground.Gradient2.StartColorOpacity = 255
ButtonDownBackground.Gradient2.DrawMode = dmSet
ButtonDownBackground.Gradient2.EndColor = clBlack
ButtonDownBackground.Gradient2.EndColorOpacity = 255
ButtonDownBackground.Gradient2.ColorCorrection = True
ButtonDownBackground.Gradient2.GradientType = gtLinear
ButtonDownBackground.Gradient2.Point1XPercent = 0
ButtonDownBackground.Gradient2.Point1YPercent = 0
ButtonDownBackground.Gradient2.Point2XPercent = 0
ButtonDownBackground.Gradient2.Point2YPercent = 100
ButtonDownBackground.Gradient2.Sinus = False
ButtonDownBackground.Gradient1EndPercent = 35
ButtonDownBackground.Style = bbsColor
Border.Color = clWindowText
Border.ColorOpacity = 255
Border.LightColor = clWhite
Border.LightOpacity = 255
Border.LightWidth = 0
Border.Style = bboSolid
Border.Width = 2
Rounding.RoundX = 8
Rounding.RoundY = 8
Rounding.RoundOptions = []
Font.Color = clWindowText
Font.Name = 'Arial'
HasTrackBar = True
ArrowColor = clBtnText
TabOrder = 0
TabStop = True
UseDockManager = False
end
object BCTrackbarUpdown2: TBCTrackbarUpdown
Left = 136
Height = 37
Top = 88
Width = 68
BarExponent = 1
Increment = 1
LongTimeInterval = 400
MinValue = 0
MaxValue = 9
Value = 9
ShortTimeInterval = 100
Background.Color = clGreen
Background.ColorOpacity = 255
Background.Gradient1.StartColor = clWhite
Background.Gradient1.StartColorOpacity = 255
Background.Gradient1.DrawMode = dmSet
Background.Gradient1.EndColor = clBlack
Background.Gradient1.EndColorOpacity = 255
Background.Gradient1.ColorCorrection = True
Background.Gradient1.GradientType = gtLinear
Background.Gradient1.Point1XPercent = 0
Background.Gradient1.Point1YPercent = 0
Background.Gradient1.Point2XPercent = 0
Background.Gradient1.Point2YPercent = 100
Background.Gradient1.Sinus = False
Background.Gradient2.StartColor = clWhite
Background.Gradient2.StartColorOpacity = 255
Background.Gradient2.DrawMode = dmSet
Background.Gradient2.EndColor = clBlack
Background.Gradient2.EndColorOpacity = 255
Background.Gradient2.ColorCorrection = True
Background.Gradient2.GradientType = gtLinear
Background.Gradient2.Point1XPercent = 0
Background.Gradient2.Point1YPercent = 0
Background.Gradient2.Point2XPercent = 0
Background.Gradient2.Point2YPercent = 100
Background.Gradient2.Sinus = False
Background.Gradient1EndPercent = 35
Background.Style = bbsColor
ButtonBackground.Color = clBlack
ButtonBackground.ColorOpacity = 255
ButtonBackground.Gradient1.StartColor = clOlive
ButtonBackground.Gradient1.StartColorOpacity = 255
ButtonBackground.Gradient1.DrawMode = dmSet
ButtonBackground.Gradient1.EndColor = clYellow
ButtonBackground.Gradient1.EndColorOpacity = 255
ButtonBackground.Gradient1.ColorCorrection = True
ButtonBackground.Gradient1.GradientType = gtLinear
ButtonBackground.Gradient1.Point1XPercent = 0
ButtonBackground.Gradient1.Point1YPercent = -50
ButtonBackground.Gradient1.Point2XPercent = 0
ButtonBackground.Gradient1.Point2YPercent = 50
ButtonBackground.Gradient1.Sinus = False
ButtonBackground.Gradient2.StartColor = clYellow
ButtonBackground.Gradient2.StartColorOpacity = 255
ButtonBackground.Gradient2.DrawMode = dmSet
ButtonBackground.Gradient2.EndColor = clOlive
ButtonBackground.Gradient2.EndColorOpacity = 255
ButtonBackground.Gradient2.ColorCorrection = True
ButtonBackground.Gradient2.GradientType = gtLinear
ButtonBackground.Gradient2.Point1XPercent = 0
ButtonBackground.Gradient2.Point1YPercent = 50
ButtonBackground.Gradient2.Point2XPercent = 0
ButtonBackground.Gradient2.Point2YPercent = 150
ButtonBackground.Gradient2.Sinus = False
ButtonBackground.Gradient1EndPercent = 50
ButtonBackground.Style = bbsGradient
ButtonDownBackground.Color = clOlive
ButtonDownBackground.ColorOpacity = 255
ButtonDownBackground.Gradient1.StartColor = clWhite
ButtonDownBackground.Gradient1.StartColorOpacity = 255
ButtonDownBackground.Gradient1.DrawMode = dmSet
ButtonDownBackground.Gradient1.EndColor = clBlack
ButtonDownBackground.Gradient1.EndColorOpacity = 255
ButtonDownBackground.Gradient1.ColorCorrection = True
ButtonDownBackground.Gradient1.GradientType = gtLinear
ButtonDownBackground.Gradient1.Point1XPercent = 0
ButtonDownBackground.Gradient1.Point1YPercent = 0
ButtonDownBackground.Gradient1.Point2XPercent = 0
ButtonDownBackground.Gradient1.Point2YPercent = 100
ButtonDownBackground.Gradient1.Sinus = False
ButtonDownBackground.Gradient2.StartColor = clWhite
ButtonDownBackground.Gradient2.StartColorOpacity = 255
ButtonDownBackground.Gradient2.DrawMode = dmSet
ButtonDownBackground.Gradient2.EndColor = clBlack
ButtonDownBackground.Gradient2.EndColorOpacity = 255
ButtonDownBackground.Gradient2.ColorCorrection = True
ButtonDownBackground.Gradient2.GradientType = gtLinear
ButtonDownBackground.Gradient2.Point1XPercent = 0
ButtonDownBackground.Gradient2.Point1YPercent = 0
ButtonDownBackground.Gradient2.Point2XPercent = 0
ButtonDownBackground.Gradient2.Point2YPercent = 100
ButtonDownBackground.Gradient2.Sinus = False
ButtonDownBackground.Gradient1EndPercent = 35
ButtonDownBackground.Style = bbsColor
Border.Color = clYellow
Border.ColorOpacity = 255
Border.LightColor = clWhite
Border.LightOpacity = 255
Border.LightWidth = 0
Border.Style = bboSolid
Border.Width = 1
Rounding.RoundX = 1
Rounding.RoundY = 1
Rounding.RoundOptions = []
Font.Color = clCream
Font.Name = 'Arial'
HasTrackBar = True
ArrowColor = clMaroon
TabOrder = 1
TabStop = True
UseDockManager = False
end
object BCTrackbarUpdown3: TBCTrackbarUpdown
Left = 144
Height = 25
Top = 8
Width = 56
BarExponent = 1
Increment = 1
LongTimeInterval = 400
MinValue = 20
MaxValue = 100
OnChange = BCTrackbarUpdown3Change
Value = 50
ShortTimeInterval = 100
Background.Color = clWindow
Background.ColorOpacity = 255
Background.Gradient1.StartColor = clWhite
Background.Gradient1.StartColorOpacity = 255
Background.Gradient1.DrawMode = dmSet
Background.Gradient1.EndColor = clBlack
Background.Gradient1.EndColorOpacity = 255
Background.Gradient1.ColorCorrection = True
Background.Gradient1.GradientType = gtLinear
Background.Gradient1.Point1XPercent = 0
Background.Gradient1.Point1YPercent = 0
Background.Gradient1.Point2XPercent = 0
Background.Gradient1.Point2YPercent = 100
Background.Gradient1.Sinus = False
Background.Gradient2.StartColor = clWhite
Background.Gradient2.StartColorOpacity = 255
Background.Gradient2.DrawMode = dmSet
Background.Gradient2.EndColor = clBlack
Background.Gradient2.EndColorOpacity = 255
Background.Gradient2.ColorCorrection = True
Background.Gradient2.GradientType = gtLinear
Background.Gradient2.Point1XPercent = 0
Background.Gradient2.Point1YPercent = 0
Background.Gradient2.Point2XPercent = 0
Background.Gradient2.Point2YPercent = 100
Background.Gradient2.Sinus = False
Background.Gradient1EndPercent = 35
Background.Style = bbsColor
ButtonBackground.Color = clBlack
ButtonBackground.ColorOpacity = 255
ButtonBackground.Gradient1.StartColor = clBtnShadow
ButtonBackground.Gradient1.StartColorOpacity = 255
ButtonBackground.Gradient1.DrawMode = dmSet
ButtonBackground.Gradient1.EndColor = clBtnFace
ButtonBackground.Gradient1.EndColorOpacity = 255
ButtonBackground.Gradient1.ColorCorrection = True
ButtonBackground.Gradient1.GradientType = gtLinear
ButtonBackground.Gradient1.Point1XPercent = 0
ButtonBackground.Gradient1.Point1YPercent = -50
ButtonBackground.Gradient1.Point2XPercent = 0
ButtonBackground.Gradient1.Point2YPercent = 50
ButtonBackground.Gradient1.Sinus = False
ButtonBackground.Gradient2.StartColor = clBtnFace
ButtonBackground.Gradient2.StartColorOpacity = 255
ButtonBackground.Gradient2.DrawMode = dmSet
ButtonBackground.Gradient2.EndColor = clBtnShadow
ButtonBackground.Gradient2.EndColorOpacity = 255
ButtonBackground.Gradient2.ColorCorrection = True
ButtonBackground.Gradient2.GradientType = gtLinear
ButtonBackground.Gradient2.Point1XPercent = 0
ButtonBackground.Gradient2.Point1YPercent = 50
ButtonBackground.Gradient2.Point2XPercent = 0
ButtonBackground.Gradient2.Point2YPercent = 150
ButtonBackground.Gradient2.Sinus = False
ButtonBackground.Gradient1EndPercent = 50
ButtonBackground.Style = bbsGradient
ButtonDownBackground.Color = clBtnShadow
ButtonDownBackground.ColorOpacity = 255
ButtonDownBackground.Gradient1.StartColor = clWhite
ButtonDownBackground.Gradient1.StartColorOpacity = 255
ButtonDownBackground.Gradient1.DrawMode = dmSet
ButtonDownBackground.Gradient1.EndColor = clBlack
ButtonDownBackground.Gradient1.EndColorOpacity = 255
ButtonDownBackground.Gradient1.ColorCorrection = True
ButtonDownBackground.Gradient1.GradientType = gtLinear
ButtonDownBackground.Gradient1.Point1XPercent = 0
ButtonDownBackground.Gradient1.Point1YPercent = 0
ButtonDownBackground.Gradient1.Point2XPercent = 0
ButtonDownBackground.Gradient1.Point2YPercent = 100
ButtonDownBackground.Gradient1.Sinus = False
ButtonDownBackground.Gradient2.StartColor = clWhite
ButtonDownBackground.Gradient2.StartColorOpacity = 255
ButtonDownBackground.Gradient2.DrawMode = dmSet
ButtonDownBackground.Gradient2.EndColor = clBlack
ButtonDownBackground.Gradient2.EndColorOpacity = 255
ButtonDownBackground.Gradient2.ColorCorrection = True
ButtonDownBackground.Gradient2.GradientType = gtLinear
ButtonDownBackground.Gradient2.Point1XPercent = 0
ButtonDownBackground.Gradient2.Point1YPercent = 0
ButtonDownBackground.Gradient2.Point2XPercent = 0
ButtonDownBackground.Gradient2.Point2YPercent = 100
ButtonDownBackground.Gradient2.Sinus = False
ButtonDownBackground.Gradient1EndPercent = 35
ButtonDownBackground.Style = bbsColor
Border.Color = clWindowText
Border.ColorOpacity = 255
Border.LightColor = clWhite
Border.LightOpacity = 255
Border.LightWidth = 0
Border.Style = bboSolid
Border.Width = 1
Rounding.RoundX = 4
Rounding.RoundY = 4
Rounding.RoundOptions = []
Font.Color = clWindowText
Font.Name = 'Arial'
HasTrackBar = False
ArrowColor = clBtnText
TabOrder = 2
TabStop = True
UseDockManager = False
end
object Label1: TLabel
Left = 144
Height = 16
Top = 40
Width = 70
Caption = 'Not changed'
ParentColor = False
end
object CheckBox1: TCheckBox
Left = 8
Height = 19
Top = 8
Width = 62
Caption = 'Enabled'
Checked = True
OnChange = CheckBox1Change
State = cbChecked
TabOrder = 3
end
end

View File

@@ -0,0 +1,51 @@
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
BCTrackbarUpdown;
type
{ TForm1 }
TForm1 = class(TForm)
BCTrackbarUpdown1: TBCTrackbarUpdown;
BCTrackbarUpdown2: TBCTrackbarUpdown;
BCTrackbarUpdown3: TBCTrackbarUpdown;
CheckBox1: TCheckBox;
Label1: TLabel;
procedure BCTrackbarUpdown3Change(Sender: TObject; {%H-}AByUser: boolean);
procedure CheckBox1Change(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
changeCount: integer;
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.BCTrackbarUpdown3Change(Sender: TObject; AByUser: boolean);
begin
inc(changeCount);
label1.Caption := 'Change #'+inttostr(changeCount)+': value '+inttostr(TBCTrackbarUpdown(Sender).Value);
end;
procedure TForm1.CheckBox1Change(Sender: TObject);
begin
BCTrackbarUpdown1.Enabled := CheckBox1.Checked;
end;
end.