Стартовый пул
This commit is contained in:
BIN
bgracontrols/test/test_bcimagebutton_3dbutton/boton3d.png
Normal file
BIN
bgracontrols/test/test_bcimagebutton_3dbutton/boton3d.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CONFIG>
|
||||
<ProjectOptions>
|
||||
<Version Value="12"/>
|
||||
<PathDelim Value="\"/>
|
||||
<General>
|
||||
<Flags>
|
||||
<CompatibilityMode Value="True"/>
|
||||
</Flags>
|
||||
<SessionStorage Value="InProjectDir"/>
|
||||
<Title Value="test_drawing"/>
|
||||
<ResourceType Value="res"/>
|
||||
<UseXPManifest Value="True"/>
|
||||
<XPManifest>
|
||||
<DpiAware Value="True"/>
|
||||
</XPManifest>
|
||||
<Resources Count="1">
|
||||
<Resource_0 FileName="boton3d.png" Type="RCDATA" ResourceName="BOTON3D"/>
|
||||
</Resources>
|
||||
</General>
|
||||
<BuildModes Count="1">
|
||||
<Item1 Name="Default" Default="True"/>
|
||||
</BuildModes>
|
||||
<PublishOptions>
|
||||
<Version Value="2"/>
|
||||
</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_drawing.lpr"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
</Unit0>
|
||||
<Unit1>
|
||||
<Filename Value="umain.pas"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<ComponentName Value="frmMain"/>
|
||||
<HasResources Value="True"/>
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
</Unit1>
|
||||
</Units>
|
||||
</ProjectOptions>
|
||||
<CompilerOptions>
|
||||
<Version Value="11"/>
|
||||
<PathDelim Value="\"/>
|
||||
<Target>
|
||||
<Filename Value="test_drawing"/>
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir)"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<Linking>
|
||||
<Debugging>
|
||||
<DebugInfoType Value="dsDwarf2Set"/>
|
||||
</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>
|
@@ -0,0 +1,21 @@
|
||||
program test_drawing;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
uses
|
||||
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
||||
cthreads,
|
||||
{$ENDIF}{$ENDIF}
|
||||
Interfaces, // this includes the LCL widgetset
|
||||
Forms, umain
|
||||
{ you can add units after this };
|
||||
|
||||
{$R *.res}
|
||||
|
||||
begin
|
||||
RequireDerivedFormResource:=True;
|
||||
Application.Initialize;
|
||||
Application.CreateForm(TfrmMain, frmMain);
|
||||
Application.Run;
|
||||
end.
|
||||
|
45
bgracontrols/test/test_bcimagebutton_3dbutton/umain.lfm
Normal file
45
bgracontrols/test/test_bcimagebutton_3dbutton/umain.lfm
Normal file
@@ -0,0 +1,45 @@
|
||||
object frmMain: TfrmMain
|
||||
Left = 354
|
||||
Height = 353
|
||||
Top = 146
|
||||
Width = 491
|
||||
Caption = 'Test Drawing'
|
||||
ClientHeight = 353
|
||||
ClientWidth = 491
|
||||
Color = clSilver
|
||||
DesignTimePPI = 120
|
||||
OnCreate = FormCreate
|
||||
LCLVersion = '1.8.4.0'
|
||||
object BCImageButton1: TBCImageButton
|
||||
Left = 8
|
||||
Height = 137
|
||||
Top = 8
|
||||
Width = 188
|
||||
BitmapOptions.MarginTop = 9
|
||||
BitmapOptions.MarginRight = 13
|
||||
BitmapOptions.MarginBottom = 15
|
||||
BitmapOptions.MarginLeft = 13
|
||||
BitmapOptions.Direction = sdVertical
|
||||
Caption = 'Button'
|
||||
Font.Height = 30
|
||||
ParentFont = False
|
||||
ParentShowHint = False
|
||||
end
|
||||
object BCImageButton2: TBCImageButton
|
||||
Left = 208
|
||||
Height = 137
|
||||
Top = 8
|
||||
Width = 188
|
||||
BitmapOptions.MarginTop = 9
|
||||
BitmapOptions.MarginRight = 13
|
||||
BitmapOptions.MarginBottom = 15
|
||||
BitmapOptions.MarginLeft = 13
|
||||
BitmapOptions.Direction = sdVertical
|
||||
Caption = 'Toggle Button'
|
||||
Font.Height = 30
|
||||
ParentFont = False
|
||||
ParentShowHint = False
|
||||
Toggle = True
|
||||
Pressed = True
|
||||
end
|
||||
end
|
41
bgracontrols/test/test_bcimagebutton_3dbutton/umain.pas
Normal file
41
bgracontrols/test/test_bcimagebutton_3dbutton/umain.pas
Normal file
@@ -0,0 +1,41 @@
|
||||
unit umain;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,
|
||||
BCImageButton;
|
||||
|
||||
type
|
||||
|
||||
{ TfrmMain }
|
||||
|
||||
TfrmMain = class(TForm)
|
||||
BCImageButton1: TBCImageButton;
|
||||
BCImageButton2: TBCImageButton;
|
||||
procedure FormCreate(Sender: TObject);
|
||||
private
|
||||
|
||||
public
|
||||
|
||||
end;
|
||||
|
||||
var
|
||||
frmMain: TfrmMain;
|
||||
|
||||
implementation
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
{ TfrmMain }
|
||||
|
||||
procedure TfrmMain.FormCreate(Sender: TObject);
|
||||
begin
|
||||
BCImageButton1.LoadFromBitmapResource('boton3d');
|
||||
BCImageButton2.LoadFromBitmapResource('boton3d');
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Reference in New Issue
Block a user