Skip to content

Commit 6ad1598

Browse files
committed
redo color picker history form
1 parent 10c2e87 commit 6ad1598

12 files changed

+452
-437
lines changed

Source/Simba.lpi

Lines changed: 91 additions & 91 deletions
Large diffs are not rendered by default.

Source/Simba.lpr

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
Classes, SysUtils, Interfaces, Forms,
1414
simba.base,
1515
simba.form_main, simba.form_tabs, simba.form_about, simba.form_debugimage, simba.form_imagestring,
16-
simba.form_functionlist, simba.form_output, simba.form_colorpickhistory, simba.form_filebrowser,
16+
simba.form_functionlist, simba.form_output, simba.form_filebrowser,
1717
simba.form_notes, simba.form_settings, simba.form_openexample, simba.form_shapebox,
1818
simba.form_backups, simba.form_findinfiles, simba.form_downloadsimba, simba.form_package,
19+
simba.form_colorpickhistory,
1920
simba.plugin_dump, simba.script_runner,
2021
simba.ide_initialization, simba.ide_analytics, simba.script;
2122

@@ -127,12 +128,12 @@
127128
Application.CreateForm(TSimbaSettingsForm, SimbaSettingsForm);
128129
Application.CreateForm(TSimbaImageStringForm, SimbaImageStringForm);
129130
Application.CreateForm(TSimbaOpenExampleForm, SimbaOpenExampleForm);
130-
Application.CreateForm(TSimbaColorPickHistoryForm, SimbaColorPickHistoryForm);
131131
Application.CreateForm(TSimbaShapeBoxForm, SimbaShapeBoxForm);
132132
Application.CreateForm(TSimbaBackupsForm, SimbaBackupsForm);
133133
Application.CreateForm(TSimbaFindInFilesForm, SimbaFindInFilesForm);
134134
Application.CreateForm(TSimbaDownloadSimbaForm, SimbaDownloadSimbaForm);
135135
Application.CreateForm(TSimbaPackageForm, SimbaPackageForm);
136+
Application.CreateForm(TSimbaColorPickHistoryForm, SimbaColorPickHistoryForm);
136137

137138
SimbaIDEInitialization_CallBeforeShow();
138139
end;
Lines changed: 34 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -1,172 +1,43 @@
11
object SimbaColorPickHistoryForm: TSimbaColorPickHistoryForm
2-
Left = -1034
3-
Height = 396
4-
Top = 893
5-
Width = 830
6-
ActiveControl = ColorListBox
2+
Left = -466
3+
Height = 240
4+
Top = 796
5+
Width = 320
76
Caption = 'Color Picker History'
8-
ClientHeight = 396
9-
ClientWidth = 830
10-
DesignTimePPI = 120
7+
FormStyle = fsStayOnTop
118
OnCreate = FormCreate
129
OnDestroy = FormDestroy
13-
ShowInTaskBar = stAlways
14-
LCLVersion = '3.4.0.0'
15-
object ColorListBox: TColorListBox
16-
AnchorSideLeft.Control = Owner
17-
AnchorSideTop.Control = Owner
18-
AnchorSideRight.Control = ColorPanel
19-
AnchorSideBottom.Control = ButtonDelete
20-
Left = 5
21-
Height = 351
22-
Top = 5
23-
Width = 535
24-
ColorRectWidth = 5
25-
ColorRectOffset = 2
26-
Style = []
27-
Align = alCustom
28-
Anchors = [akTop, akLeft, akRight, akBottom]
29-
BorderSpacing.Left = 5
30-
BorderSpacing.Top = 5
31-
BorderSpacing.Bottom = 5
32-
ExtendedSelect = False
33-
ItemHeight = 0
34-
OnSelectionChange = ColorListBoxSelectionChange
35-
TabOrder = 0
36-
end
37-
object ButtonDelete: TButton
38-
AnchorSideLeft.Control = Owner
39-
AnchorSideBottom.Control = Owner
40-
AnchorSideBottom.Side = asrBottom
41-
Left = 5
42-
Height = 30
43-
Top = 361
44-
Width = 70
45-
Anchors = [akLeft, akBottom]
46-
AutoSize = True
47-
BorderSpacing.Left = 5
48-
BorderSpacing.Bottom = 5
49-
Caption = 'Delete'
50-
TabOrder = 1
51-
OnClick = HandleButtonDeleteClick
52-
end
53-
object ButtonClear: TButton
54-
AnchorSideLeft.Control = ButtonDelete
55-
AnchorSideLeft.Side = asrBottom
56-
AnchorSideBottom.Control = Owner
57-
AnchorSideBottom.Side = asrBottom
58-
Left = 80
59-
Height = 30
60-
Top = 361
61-
Width = 60
62-
Align = alCustom
63-
Anchors = [akLeft, akBottom]
64-
AutoSize = True
65-
BorderSpacing.Left = 5
66-
BorderSpacing.Bottom = 5
67-
Caption = 'Clear'
68-
TabOrder = 2
69-
OnClick = HandleButtonClearClick
70-
end
71-
object ColorPanel: TPanel
72-
Left = 540
73-
Height = 396
74-
Top = 0
75-
Width = 290
76-
Align = alRight
77-
BevelOuter = bvNone
78-
ClientHeight = 396
79-
ClientWidth = 290
80-
TabOrder = 3
81-
object ButtonExit: TButton
82-
Left = 5
83-
Height = 30
84-
Top = 361
85-
Width = 280
86-
Align = alBottom
87-
AutoSize = True
88-
BorderSpacing.Left = 5
89-
BorderSpacing.Right = 5
90-
BorderSpacing.Bottom = 5
91-
Caption = 'Exit'
92-
TabOrder = 0
93-
OnClick = HandleButtonExitClick
10+
LCLVersion = '3.8.0.0'
11+
object ContextMenu: TPopupMenu
12+
OnPopup = ContextMenuPopup
13+
Left = 48
14+
Top = 16
15+
object MenuItemCopy: TMenuItem
16+
Caption = 'Copy'
17+
OnClick = ContextMenuCopyClick
18+
end
19+
object MenuItemCopyPoint: TMenuItem
20+
Caption = 'Copy Point'
21+
OnClick = ContextMenuCopyPointClick
22+
end
23+
object MenuItemCopyRGB: TMenuItem
24+
Caption = 'Copy RGB'
25+
OnClick = ContextMenuCopyRGB
26+
end
27+
object MenuItemCopyHSL: TMenuItem
28+
Caption = 'Copy HSL'
29+
OnClick = ContextMenuCopyHSLClick
30+
end
31+
object Separator1: TMenuItem
32+
Caption = '-'
9433
end
95-
object ButtonPickColor: TButton
96-
Left = 5
97-
Height = 30
98-
Top = 326
99-
Width = 280
100-
Align = alBottom
101-
AutoSize = True
102-
BorderSpacing.Left = 5
103-
BorderSpacing.Right = 5
104-
BorderSpacing.Bottom = 5
105-
Caption = 'Pick Color'
106-
TabOrder = 1
107-
OnClick = HandleButtonPickColorClick
34+
object MenuItemDelete: TMenuItem
35+
Caption = 'Delete'
36+
OnClick = ContextMenuDeleteClick
10837
end
109-
object StringGrid: TStringGrid
110-
AnchorSideLeft.Control = ColorPanel
111-
AnchorSideTop.Control = ColorPanel
112-
AnchorSideRight.Control = ColorPanel
113-
AnchorSideRight.Side = asrBottom
114-
AnchorSideBottom.Control = ButtonPickColor
115-
Left = 5
116-
Height = 321
117-
Top = 5
118-
Width = 280
119-
Align = alTop
120-
Anchors = [akTop, akLeft, akRight, akBottom]
121-
AutoFillColumns = True
122-
BorderSpacing.Left = 5
123-
BorderSpacing.Top = 5
124-
BorderSpacing.Right = 5
125-
BorderStyle = bsNone
126-
Color = clForm
127-
ColCount = 2
128-
Columns = <
129-
item
130-
MinSize = 12
131-
MaxSize = 250
132-
SizePriority = 0
133-
Title.Caption = 'Title'
134-
Width = 139
135-
end
136-
item
137-
MinSize = 12
138-
MaxSize = 250
139-
Title.Caption = 'Title'
140-
Width = 141
141-
end>
142-
DefaultDrawing = False
143-
FixedColor = clForm
144-
FixedCols = 0
145-
FixedRows = 0
146-
GridLineWidth = 0
147-
Options = []
148-
RowCount = 4
149-
TabOrder = 2
150-
OnKeyDown = StringGridKeyDown
151-
ColWidths = (
152-
139
153-
141
154-
)
155-
Cells = (
156-
4
157-
0
158-
0
159-
'Hex:'
160-
0
161-
1
162-
'RGB:'
163-
0
164-
2
165-
'HSL:'
166-
0
167-
3
168-
'Point:'
169-
)
38+
object MenuItemClear: TMenuItem
39+
Caption = 'Clear'
40+
OnClick = ContextMenuClearClick
17041
end
17142
end
17243
end

0 commit comments

Comments
 (0)