Стартовый пул
This commit is contained in:
89
bgracontrols/test/test_listbox/test.lpi
Normal file
89
bgracontrols/test/test_listbox/test.lpi
Normal file
@@ -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"/>
|
||||
<ResourceType Value="res"/>
|
||||
<UseXPManifest Value="True"/>
|
||||
<XPManifest>
|
||||
<DpiAware Value="True"/>
|
||||
</XPManifest>
|
||||
</General>
|
||||
<i18n>
|
||||
<EnableI18N LFM="False"/>
|
||||
</i18n>
|
||||
<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.lpr"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
</Unit0>
|
||||
<Unit1>
|
||||
<Filename Value="umain.pas"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<ComponentName Value="Form1"/>
|
||||
<HasResources Value="True"/>
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
</Unit1>
|
||||
</Units>
|
||||
</ProjectOptions>
|
||||
<CompilerOptions>
|
||||
<Version Value="11"/>
|
||||
<PathDelim Value="\"/>
|
||||
<Target>
|
||||
<Filename Value="test"/>
|
||||
</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>
|
21
bgracontrols/test/test_listbox/test.lpr
Normal file
21
bgracontrols/test/test_listbox/test.lpr
Normal 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, umain
|
||||
{ you can add units after this };
|
||||
|
||||
{$R *.res}
|
||||
|
||||
begin
|
||||
RequireDerivedFormResource:=True;
|
||||
Application.Initialize;
|
||||
Application.CreateForm(TForm1, Form1);
|
||||
Application.Run;
|
||||
end.
|
||||
|
79
bgracontrols/test/test_listbox/umain.lfm
Normal file
79
bgracontrols/test/test_listbox/umain.lfm
Normal file
@@ -0,0 +1,79 @@
|
||||
object Form1: TForm1
|
||||
Left = 329
|
||||
Height = 286
|
||||
Top = 184
|
||||
Width = 751
|
||||
Caption = 'Paper ListBox'
|
||||
ClientHeight = 286
|
||||
ClientWidth = 751
|
||||
Color = 16448250
|
||||
LCLVersion = '1.6.2.0'
|
||||
object BCPaperListBox1: TBCPaperListBox
|
||||
Left = 8
|
||||
Height = 272
|
||||
Top = 8
|
||||
Width = 368
|
||||
Alignment = taLeftJustify
|
||||
Caption = 'BCPaperListBox1'
|
||||
ChildSizing.LeftRightSpacing = 4
|
||||
ChildSizing.TopBottomSpacing = 5
|
||||
ChildSizing.ControlsPerLine = 1
|
||||
ClientHeight = 272
|
||||
ClientWidth = 368
|
||||
Color = clWhite
|
||||
ParentColor = False
|
||||
TabOrder = 0
|
||||
ListBox.Left = 5
|
||||
ListBox.Height = 260
|
||||
ListBox.Top = 6
|
||||
ListBox.Width = 358
|
||||
ListBox.Align = alClient
|
||||
ListBox.BorderStyle = bsNone
|
||||
ListBox.Items.Strings = (
|
||||
'One'
|
||||
'Two'
|
||||
'Three'
|
||||
'Four'
|
||||
'Five'
|
||||
)
|
||||
ListBox.ItemHeight = 60
|
||||
ListBox.ItemIndex = 0
|
||||
ListBox.MultiSelect = True
|
||||
ListBox.Style = lbOwnerDrawFixed
|
||||
ListBox.TabOrder = 0
|
||||
end
|
||||
object BCPaperListBox2: TBCPaperListBox
|
||||
Left = 376
|
||||
Height = 120
|
||||
Top = 8
|
||||
Width = 368
|
||||
Alignment = taLeftJustify
|
||||
Caption = 'BCPaperListBox2'
|
||||
ChildSizing.LeftRightSpacing = 4
|
||||
ChildSizing.TopBottomSpacing = 5
|
||||
ChildSizing.ControlsPerLine = 1
|
||||
ClientHeight = 120
|
||||
ClientWidth = 368
|
||||
Color = clWhite
|
||||
ParentColor = False
|
||||
TabOrder = 1
|
||||
ListBox.Left = 5
|
||||
ListBox.Height = 108
|
||||
ListBox.Top = 6
|
||||
ListBox.Width = 358
|
||||
ListBox.Align = alClient
|
||||
ListBox.BorderStyle = bsNone
|
||||
ListBox.Items.Strings = (
|
||||
'One'
|
||||
'Two'
|
||||
'Three'
|
||||
'Four'
|
||||
'Five'
|
||||
)
|
||||
ListBox.ItemHeight = 60
|
||||
ListBox.ItemIndex = 0
|
||||
ListBox.MultiSelect = True
|
||||
ListBox.Style = lbOwnerDrawFixed
|
||||
ListBox.TabOrder = 0
|
||||
end
|
||||
end
|
31
bgracontrols/test/test_listbox/umain.pas
Normal file
31
bgracontrols/test/test_listbox/umain.pas
Normal file
@@ -0,0 +1,31 @@
|
||||
unit umain;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, BCListBox;
|
||||
|
||||
type
|
||||
|
||||
{ TForm1 }
|
||||
|
||||
TForm1 = class(TForm)
|
||||
BCPaperListBox1: TBCPaperListBox;
|
||||
BCPaperListBox2: TBCPaperListBox;
|
||||
private
|
||||
{ private declarations }
|
||||
public
|
||||
{ public declarations }
|
||||
end;
|
||||
|
||||
var
|
||||
Form1: TForm1;
|
||||
|
||||
implementation
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
end.
|
||||
|
Reference in New Issue
Block a user