mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-28 12:11:38 +01:00
TAChart: Usability improvement of colorboxes in combodemo.
git-svn-id: trunk@54126 -
This commit is contained in:
parent
8e3611d3c1
commit
53007bd715
@ -6,6 +6,7 @@ object Form1: TForm1
|
|||||||
Caption = 'Form1'
|
Caption = 'Form1'
|
||||||
ClientHeight = 444
|
ClientHeight = 444
|
||||||
ClientWidth = 803
|
ClientWidth = 803
|
||||||
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
LCLVersion = '1.7'
|
LCLVersion = '1.7'
|
||||||
object Chart1: TChart
|
object Chart1: TChart
|
||||||
@ -206,8 +207,7 @@ object Form1: TForm1
|
|||||||
Height = 22
|
Height = 22
|
||||||
Top = 74
|
Top = 74
|
||||||
Width = 118
|
Width = 118
|
||||||
Selected = 394758
|
Style = [cbStandardColors, cbExtendedColors, cbCustomColor, cbPrettyNames]
|
||||||
Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbPrettyNames]
|
|
||||||
Anchors = [akTop, akRight]
|
Anchors = [akTop, akRight]
|
||||||
BorderSpacing.Top = 8
|
BorderSpacing.Top = 8
|
||||||
BorderSpacing.Bottom = 10
|
BorderSpacing.Bottom = 10
|
||||||
@ -325,8 +325,7 @@ object Form1: TForm1
|
|||||||
Height = 22
|
Height = 22
|
||||||
Top = 74
|
Top = 74
|
||||||
Width = 118
|
Width = 118
|
||||||
Selected = 263172
|
Style = [cbStandardColors, cbExtendedColors, cbCustomColor, cbPrettyNames]
|
||||||
Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbPrettyNames]
|
|
||||||
Anchors = [akTop, akRight]
|
Anchors = [akTop, akRight]
|
||||||
BorderSpacing.Top = 8
|
BorderSpacing.Top = 8
|
||||||
ItemHeight = 16
|
ItemHeight = 16
|
||||||
@ -344,7 +343,7 @@ object Form1: TForm1
|
|||||||
Height = 22
|
Height = 22
|
||||||
Top = 44
|
Top = 44
|
||||||
Width = 118
|
Width = 118
|
||||||
Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbPrettyNames]
|
Style = [cbStandardColors, cbExtendedColors, cbCustomColor, cbPrettyNames]
|
||||||
Anchors = [akTop, akRight]
|
Anchors = [akTop, akRight]
|
||||||
BorderSpacing.Top = 8
|
BorderSpacing.Top = 8
|
||||||
ItemHeight = 16
|
ItemHeight = 16
|
||||||
@ -483,7 +482,7 @@ object Form1: TForm1
|
|||||||
Top = 60
|
Top = 60
|
||||||
Width = 118
|
Width = 118
|
||||||
DefaultColorColor = 460551
|
DefaultColorColor = 460551
|
||||||
Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbPrettyNames]
|
Style = [cbStandardColors, cbExtendedColors, cbCustomColor, cbPrettyNames]
|
||||||
Anchors = [akTop, akRight]
|
Anchors = [akTop, akRight]
|
||||||
BorderSpacing.Top = 8
|
BorderSpacing.Top = 8
|
||||||
BorderSpacing.Bottom = 10
|
BorderSpacing.Bottom = 10
|
||||||
@ -542,7 +541,7 @@ object Form1: TForm1
|
|||||||
Top = 30
|
Top = 30
|
||||||
Width = 118
|
Width = 118
|
||||||
DefaultColorColor = 263172
|
DefaultColorColor = 263172
|
||||||
Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbPrettyNames]
|
Style = [cbStandardColors, cbExtendedColors, cbCustomColor, cbPrettyNames]
|
||||||
Anchors = [akTop, akRight]
|
Anchors = [akTop, akRight]
|
||||||
BorderSpacing.Top = 8
|
BorderSpacing.Top = 8
|
||||||
BorderSpacing.Bottom = 10
|
BorderSpacing.Bottom = 10
|
||||||
@ -619,7 +618,7 @@ object Form1: TForm1
|
|||||||
Height = 22
|
Height = 22
|
||||||
Top = 30
|
Top = 30
|
||||||
Width = 118
|
Width = 118
|
||||||
Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbPrettyNames]
|
Style = [cbStandardColors, cbExtendedColors, cbCustomColor, cbPrettyNames]
|
||||||
Anchors = [akTop, akRight]
|
Anchors = [akTop, akRight]
|
||||||
BorderSpacing.Top = 8
|
BorderSpacing.Top = 8
|
||||||
BorderSpacing.Bottom = 10
|
BorderSpacing.Bottom = 10
|
||||||
@ -741,7 +740,7 @@ object Form1: TForm1
|
|||||||
Height = 22
|
Height = 22
|
||||||
Top = 60
|
Top = 60
|
||||||
Width = 118
|
Width = 118
|
||||||
Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbPrettyNames]
|
Style = [cbStandardColors, cbExtendedColors, cbCustomColor, cbPrettyNames]
|
||||||
Anchors = [akTop, akRight]
|
Anchors = [akTop, akRight]
|
||||||
BorderSpacing.Top = 8
|
BorderSpacing.Top = 8
|
||||||
BorderSpacing.Bottom = 10
|
BorderSpacing.Bottom = 10
|
||||||
@ -846,7 +845,7 @@ object Form1: TForm1
|
|||||||
Height = 22
|
Height = 22
|
||||||
Top = 60
|
Top = 60
|
||||||
Width = 118
|
Width = 118
|
||||||
Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbPrettyNames]
|
Style = [cbStandardColors, cbExtendedColors, cbCustomColor, cbPrettyNames]
|
||||||
Anchors = [akTop, akRight]
|
Anchors = [akTop, akRight]
|
||||||
BorderSpacing.Top = 8
|
BorderSpacing.Top = 8
|
||||||
BorderSpacing.Bottom = 10
|
BorderSpacing.Bottom = 10
|
||||||
|
|||||||
@ -88,6 +88,7 @@ type
|
|||||||
procedure AreaLinesChange(Sender: TObject);
|
procedure AreaLinesChange(Sender: TObject);
|
||||||
procedure BarBrushChange(Sender: TObject);
|
procedure BarBrushChange(Sender: TObject);
|
||||||
procedure BarPenChange(Sender: TObject);
|
procedure BarPenChange(Sender: TObject);
|
||||||
|
procedure FormCreate(Sender: TObject);
|
||||||
procedure LinePenChange(Sender: TObject);
|
procedure LinePenChange(Sender: TObject);
|
||||||
procedure LinePointerChange(Sender: TObject);
|
procedure LinePointerChange(Sender: TObject);
|
||||||
procedure CbShowChange(Sender: TObject);
|
procedure CbShowChange(Sender: TObject);
|
||||||
@ -292,6 +293,15 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TForm1.FormCreate(Sender: TObject);
|
||||||
|
var
|
||||||
|
i: Integer;
|
||||||
|
begin
|
||||||
|
for i:=0 to ComponentCount - 1 do
|
||||||
|
if Components[i] is TCustomCombobox then
|
||||||
|
TCustomCombobox(Components[i]).DropDownCount := DEFAULT_DROPDOWN_COUNT;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TForm1.FormShow(Sender: TObject);
|
procedure TForm1.FormShow(Sender: TObject);
|
||||||
const
|
const
|
||||||
DEFAULT_PATTERN = '2|1|1|1|1|1|1|1';
|
DEFAULT_PATTERN = '2|1|1|1|1|1|1|1';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user