Стартовый пул
This commit is contained in:
123
bgracontrols/test/test_windows_theme/umain.lfm
Normal file
123
bgracontrols/test/test_windows_theme/umain.lfm
Normal file
@@ -0,0 +1,123 @@
|
||||
object frmWindowsTheme: TfrmWindowsTheme
|
||||
Left = 63
|
||||
Height = 480
|
||||
Top = 225
|
||||
Width = 848
|
||||
Caption = 'Windows Theme'
|
||||
ClientHeight = 480
|
||||
ClientWidth = 848
|
||||
Color = 15987699
|
||||
DesignTimePPI = 192
|
||||
Position = poScreenCenter
|
||||
LCLVersion = '3.99.0.0'
|
||||
OnCreate = FormCreate
|
||||
object BCPanel1: TBCPanel
|
||||
Left = 16
|
||||
Height = 224
|
||||
Top = 16
|
||||
Width = 816
|
||||
Anchors = [akTop, akLeft, akRight]
|
||||
Background.Color = 16514043
|
||||
Background.Gradient1.StartColor = clWhite
|
||||
Background.Gradient1.EndColor = clBlack
|
||||
Background.Gradient1.GradientType = gtLinear
|
||||
Background.Gradient1.Point1XPercent = 0
|
||||
Background.Gradient1.Point1YPercent = 0
|
||||
Background.Gradient1.Point2XPercent = 0
|
||||
Background.Gradient1.Point2YPercent = 100
|
||||
Background.Gradient2.StartColor = clWhite
|
||||
Background.Gradient2.EndColor = clBlack
|
||||
Background.Gradient2.GradientType = gtLinear
|
||||
Background.Gradient2.Point1XPercent = 0
|
||||
Background.Gradient2.Point1YPercent = 0
|
||||
Background.Gradient2.Point2XPercent = 0
|
||||
Background.Gradient2.Point2YPercent = 100
|
||||
Background.Gradient1EndPercent = 35
|
||||
Background.Style = bbsColor
|
||||
BevelInner = bvNone
|
||||
BevelOuter = bvNone
|
||||
BevelWidth = 1
|
||||
Border.Color = 15066597
|
||||
Border.Style = bboSolid
|
||||
BorderBCStyle = bpsBorder
|
||||
FontEx.Color = clDefault
|
||||
FontEx.FontQuality = fqSystemClearType
|
||||
FontEx.Shadow = False
|
||||
FontEx.ShadowRadius = 5
|
||||
FontEx.ShadowOffsetX = 5
|
||||
FontEx.ShadowOffsetY = 5
|
||||
FontEx.Style = []
|
||||
ParentBackground = False
|
||||
Rounding.RoundX = 5
|
||||
Rounding.RoundY = 5
|
||||
TabOrder = 0
|
||||
object BCLabel1: TBCLabel
|
||||
Left = 48
|
||||
Height = 28
|
||||
Top = 48
|
||||
Width = 267
|
||||
Background.Gradient1.StartColor = clWhite
|
||||
Background.Gradient1.EndColor = clBlack
|
||||
Background.Gradient1.GradientType = gtLinear
|
||||
Background.Gradient1.Point1XPercent = 0
|
||||
Background.Gradient1.Point1YPercent = 0
|
||||
Background.Gradient1.Point2XPercent = 0
|
||||
Background.Gradient1.Point2YPercent = 100
|
||||
Background.Gradient2.StartColor = clWhite
|
||||
Background.Gradient2.EndColor = clBlack
|
||||
Background.Gradient2.GradientType = gtLinear
|
||||
Background.Gradient2.Point1XPercent = 0
|
||||
Background.Gradient2.Point1YPercent = 0
|
||||
Background.Gradient2.Point2XPercent = 0
|
||||
Background.Gradient2.Point2YPercent = 100
|
||||
Background.Gradient1EndPercent = 35
|
||||
Background.Style = bbsClear
|
||||
Border.Style = bboNone
|
||||
Caption = 'Configuración recomendada'
|
||||
FontEx.Color = 1776411
|
||||
FontEx.FontQuality = fqSystemClearType
|
||||
FontEx.Height = 20
|
||||
FontEx.Shadow = False
|
||||
FontEx.ShadowRadius = 5
|
||||
FontEx.ShadowOffsetX = 5
|
||||
FontEx.ShadowOffsetY = 5
|
||||
FontEx.Style = [fsBold]
|
||||
Rounding.RoundX = 1
|
||||
Rounding.RoundY = 1
|
||||
end
|
||||
object BCLabel2: TBCLabel
|
||||
Left = 48
|
||||
Height = 19
|
||||
Top = 128
|
||||
Width = 280
|
||||
Background.Gradient1.StartColor = clWhite
|
||||
Background.Gradient1.EndColor = clBlack
|
||||
Background.Gradient1.GradientType = gtLinear
|
||||
Background.Gradient1.Point1XPercent = 0
|
||||
Background.Gradient1.Point1YPercent = 0
|
||||
Background.Gradient1.Point2XPercent = 0
|
||||
Background.Gradient1.Point2YPercent = 100
|
||||
Background.Gradient2.StartColor = clWhite
|
||||
Background.Gradient2.EndColor = clBlack
|
||||
Background.Gradient2.GradientType = gtLinear
|
||||
Background.Gradient2.Point1XPercent = 0
|
||||
Background.Gradient2.Point1YPercent = 0
|
||||
Background.Gradient2.Point2XPercent = 0
|
||||
Background.Gradient2.Point2YPercent = 100
|
||||
Background.Gradient1EndPercent = 35
|
||||
Background.Style = bbsClear
|
||||
Border.Style = bboNone
|
||||
Caption = 'Configuración reciente y usada habitualmente'
|
||||
FontEx.Color = 6250335
|
||||
FontEx.FontQuality = fqSystemClearType
|
||||
FontEx.Height = 14
|
||||
FontEx.Shadow = False
|
||||
FontEx.ShadowRadius = 5
|
||||
FontEx.ShadowOffsetX = 5
|
||||
FontEx.ShadowOffsetY = 5
|
||||
FontEx.Style = []
|
||||
Rounding.RoundX = 1
|
||||
Rounding.RoundY = 1
|
||||
end
|
||||
end
|
||||
end
|
42
bgracontrols/test/test_windows_theme/umain.pas
Normal file
42
bgracontrols/test/test_windows_theme/umain.pas
Normal file
@@ -0,0 +1,42 @@
|
||||
unit umain;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, BCPanel, BCLabel;
|
||||
|
||||
type
|
||||
|
||||
{ TfrmWindowsTheme }
|
||||
|
||||
TfrmWindowsTheme = class(TForm)
|
||||
BCLabel1: TBCLabel;
|
||||
BCLabel2: TBCLabel;
|
||||
BCPanel1: TBCPanel;
|
||||
procedure FormCreate(Sender: TObject);
|
||||
private
|
||||
|
||||
public
|
||||
|
||||
end;
|
||||
|
||||
var
|
||||
frmWindowsTheme: TfrmWindowsTheme;
|
||||
|
||||
implementation
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
{ TfrmWindowsTheme }
|
||||
|
||||
procedure TfrmWindowsTheme.FormCreate(Sender: TObject);
|
||||
begin
|
||||
BCLabel1.FontEx.Height := ScaleY(BCLabel1.FontEx.Height, 96);
|
||||
BCLabel2.FontEx.Height := ScaleY(BCLabel2.FontEx.Height, 96);
|
||||
BCPanel1.Border.Width := ScaleY(BCPanel1.Border.Width, 96);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
BIN
bgracontrols/test/test_windows_theme/windowstheme.ico
Normal file
BIN
bgracontrols/test/test_windows_theme/windowstheme.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 130 KiB |
140
bgracontrols/test/test_windows_theme/windowstheme.lpi
Normal file
140
bgracontrols/test/test_windows_theme/windowstheme.lpi
Normal file
@@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CONFIG>
|
||||
<ProjectOptions>
|
||||
<Version Value="12"/>
|
||||
<PathDelim Value="\"/>
|
||||
<General>
|
||||
<SessionStorage Value="InProjectDir"/>
|
||||
<Title Value="windowstheme"/>
|
||||
<Scaled Value="True"/>
|
||||
<ResourceType Value="res"/>
|
||||
<UseXPManifest Value="True"/>
|
||||
<XPManifest>
|
||||
<DpiAware Value="True"/>
|
||||
</XPManifest>
|
||||
</General>
|
||||
<BuildModes>
|
||||
<Item Name="Debug" Default="True"/>
|
||||
<Item Name="Release">
|
||||
<CompilerOptions>
|
||||
<Version Value="11"/>
|
||||
<PathDelim Value="\"/>
|
||||
<Target>
|
||||
<Filename Value="windowstheme"/>
|
||||
</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"/>
|
||||
<RunWithoutDebug Value="True"/>
|
||||
</Debugging>
|
||||
<LinkSmart Value="True"/>
|
||||
<Options>
|
||||
<Win32>
|
||||
<GraphicApplication Value="True"/>
|
||||
</Win32>
|
||||
</Options>
|
||||
</Linking>
|
||||
<Other>
|
||||
<ConfigFile>
|
||||
<WriteConfigFilePath Value=""/>
|
||||
</ConfigFile>
|
||||
</Other>
|
||||
</CompilerOptions>
|
||||
</Item>
|
||||
</BuildModes>
|
||||
<PublishOptions>
|
||||
<Version Value="2"/>
|
||||
<UseFileFilters Value="True"/>
|
||||
</PublishOptions>
|
||||
<RunParams>
|
||||
<FormatVersion Value="2"/>
|
||||
</RunParams>
|
||||
<RequiredPackages>
|
||||
<Item>
|
||||
<PackageName Value="bgracontrols"/>
|
||||
</Item>
|
||||
<Item>
|
||||
<PackageName Value="LCL"/>
|
||||
</Item>
|
||||
</RequiredPackages>
|
||||
<Units>
|
||||
<Unit>
|
||||
<Filename Value="windowstheme.lpr"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
</Unit>
|
||||
<Unit>
|
||||
<Filename Value="umain.pas"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<ComponentName Value="frmWindowsTheme"/>
|
||||
<HasResources Value="True"/>
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
</Unit>
|
||||
</Units>
|
||||
</ProjectOptions>
|
||||
<CompilerOptions>
|
||||
<Version Value="11"/>
|
||||
<PathDelim Value="\"/>
|
||||
<Target>
|
||||
<Filename Value="windowstheme"/>
|
||||
</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="dsDwarf3"/>
|
||||
<UseHeaptrc Value="True"/>
|
||||
<TrashVariables Value="True"/>
|
||||
<UseExternalDbgSyms Value="True"/>
|
||||
</Debugging>
|
||||
<Options>
|
||||
<Win32>
|
||||
<GraphicApplication Value="True"/>
|
||||
</Win32>
|
||||
</Options>
|
||||
</Linking>
|
||||
<Other>
|
||||
<ConfigFile>
|
||||
<WriteConfigFilePath Value=""/>
|
||||
</ConfigFile>
|
||||
</Other>
|
||||
</CompilerOptions>
|
||||
<Debugging>
|
||||
<Exceptions>
|
||||
<Item>
|
||||
<Name Value="EAbort"/>
|
||||
</Item>
|
||||
<Item>
|
||||
<Name Value="ECodetoolError"/>
|
||||
</Item>
|
||||
<Item>
|
||||
<Name Value="EFOpenError"/>
|
||||
</Item>
|
||||
</Exceptions>
|
||||
</Debugging>
|
||||
</CONFIG>
|
25
bgracontrols/test/test_windows_theme/windowstheme.lpr
Normal file
25
bgracontrols/test/test_windows_theme/windowstheme.lpr
Normal file
@@ -0,0 +1,25 @@
|
||||
program windowstheme;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
uses
|
||||
{$IFDEF UNIX}
|
||||
cthreads,
|
||||
{$ENDIF}
|
||||
{$IFDEF HASAMIGA}
|
||||
athreads,
|
||||
{$ENDIF}
|
||||
Interfaces, // this includes the LCL widgetset
|
||||
Forms, umain
|
||||
{ you can add units after this };
|
||||
|
||||
{$R *.res}
|
||||
|
||||
begin
|
||||
RequireDerivedFormResource:=True;
|
||||
Application.Scaled:=True;
|
||||
Application.Initialize;
|
||||
Application.CreateForm(TfrmWindowsTheme, frmWindowsTheme);
|
||||
Application.Run;
|
||||
end.
|
||||
|
Reference in New Issue
Block a user