Skip to content

Commit 4a167ed

Browse files
committed
Added new "license" page to Code Submission Wizards.
Replaced multi-paragraph TLabels with HTML frames loaded with required HTML text.
1 parent c48ced4 commit 4a167ed

File tree

7 files changed

+392
-63
lines changed

7 files changed

+392
-63
lines changed

Src/FmCodeSubmitDlg.dfm

Lines changed: 128 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
11
inherited CodeSubmitDlg: TCodeSubmitDlg
22
Caption = 'Code Submission Wizard'
33
ExplicitWidth = 565
4-
ExplicitHeight = 433
4+
ExplicitHeight = 435
55
PixelsPerInch = 96
66
TextHeight = 13
77
inherited pnlBody: TPanel
88
inherited pcWizard: TPageControl
9-
ActivePage = tsSnippets
9+
ActivePage = tsFinished
1010
object tsIntro: TTabSheet
1111
Caption = 'tsIntro'
1212
TabVisible = False
13-
object lblIntro: TLabel
13+
inline frmIntro: TFixedHTMLDlgFrame
1414
Left = 0
15-
Top = 8
15+
Top = 0
1616
Width = 369
17-
Height = 227
18-
AutoSize = False
19-
Caption =
20-
'Thanks for deciding to submit code for inclusion in the Code Sni' +
21-
'ppets database.'#13#10#13#10'This wizard collects some information from yo' +
22-
'u then contacts the DelphiDabbler.com website to submit the code' +
23-
'.'#13#10#13#10'Please note that you must have the right to donate this cod' +
24-
'e and you must be prepared to release the code into the public d' +
25-
'omain.'#13#10#13#10'Click the Next button below to begin.'
26-
WordWrap = True
17+
Height = 238
18+
Align = alClient
19+
TabOrder = 0
20+
TabStop = True
21+
ExplicitWidth = 369
22+
inherited pnlBrowser: TPanel
23+
Width = 369
24+
Height = 238
25+
inherited wbBrowser: TWebBrowser
26+
Width = 369
27+
Height = 238
28+
ControlData = {
29+
4C00000023260000991800000000000000000000000000000000000000000000
30+
000000004C000000000000000000000001000000E0D057007335CF11AE690800
31+
2B2E126208000000000000004C0000000114020000000000C000000000000046
32+
8000000000000000000000000000000000000000000000000000000000000000
33+
00000000000000000100000000000000000000000000000000000000}
34+
end
35+
end
2736
end
2837
end
2938
object tsSnippets: TTabSheet
@@ -33,17 +42,23 @@ inherited CodeSubmitDlg: TCodeSubmitDlg
3342
object lblSnippets: TLabel
3443
Left = 0
3544
Top = 8
36-
Width = 190
45+
Width = 198
3746
Height = 13
3847
Caption = '&Select the snippet(s) you want to submit:'
3948
FocusControl = frmSnippets
4049
end
4150
object lblSnippetPrompt: TLabel
4251
Left = 0
4352
Top = 221
44-
Width = 183
53+
Width = 221
4554
Height = 13
4655
Caption = 'One or more snippets must be selected'
56+
Font.Charset = DEFAULT_CHARSET
57+
Font.Color = clWindowText
58+
Font.Height = -11
59+
Font.Name = 'Tahoma'
60+
Font.Style = [fsBold]
61+
ParentFont = False
4762
Visible = False
4863
end
4964
inline frmSnippets: TSelectUserSnippetsFrame
@@ -79,15 +94,15 @@ inherited CodeSubmitDlg: TCodeSubmitDlg
7994
object lblEmail: TLabel
8095
Left = 0
8196
Top = 43
82-
Width = 69
97+
Width = 70
8398
Height = 13
8499
Caption = '&Email Address:'
85100
FocusControl = edEMail
86101
end
87102
object lblComments: TLabel
88103
Left = 0
89104
Top = 104
90-
Width = 77
105+
Width = 79
91106
Height = 13
92107
Caption = 'Your &Comments:'
93108
FocusControl = edComments
@@ -117,26 +132,26 @@ inherited CodeSubmitDlg: TCodeSubmitDlg
117132
Left = 0
118133
Top = 69
119134
Width = 369
120-
Height = 18
135+
Height = 5
121136
TabOrder = 2
122137
TabStop = True
123138
ExplicitTop = 69
124139
ExplicitWidth = 369
125-
ExplicitHeight = 18
140+
ExplicitHeight = 5
126141
inherited pnlBrowser: TPanel
127142
Width = 369
128-
Height = 18
143+
Height = 5
129144
ExplicitWidth = 369
130145
ExplicitHeight = 18
131146
inherited wbBrowser: TWebBrowser
132147
Width = 369
133-
Height = 18
148+
Height = 5
134149
TabStop = False
135150
ExplicitTop = -2
136151
ExplicitWidth = 369
137152
ExplicitHeight = 18
138153
ControlData = {
139-
4C00000023260000DC0100000000000000000000000000000000000000000000
154+
4C00000023260000840000000000000000000000000000000000000000000000
140155
000000004C000000000000000000000001000000E0D057007335CF11AE690800
141156
2B2E126208000000000000004C0000000114020000000000C000000000000046
142157
8000000000000000000000000000000000000000000000000000000000000000
@@ -145,52 +160,116 @@ inherited CodeSubmitDlg: TCodeSubmitDlg
145160
end
146161
end
147162
end
148-
object tsSubmit: TTabSheet
149-
Caption = 'tsSubmit'
150-
ImageIndex = 4
163+
object tsLicense: TTabSheet
164+
Caption = 'tsLicense'
165+
ImageIndex = 5
151166
TabVisible = False
152-
object lblSubmit: TLabel
167+
ExplicitLeft = 8
168+
ExplicitTop = 11
169+
object chkAgreeLicense: TCheckBox
170+
Left = 3
171+
Top = 200
172+
Width = 363
173+
Height = 17
174+
Caption = 'I confirm my &agreement with statements 1 and 2 above'
175+
Font.Charset = DEFAULT_CHARSET
176+
Font.Color = clWindowText
177+
Font.Height = -11
178+
Font.Name = 'Tahoma'
179+
Font.Style = [fsBold]
180+
ParentFont = False
181+
TabOrder = 0
182+
end
183+
inline frmLicenseTerms: TFixedHTMLDlgFrame
153184
Left = 0
154-
Top = 3
185+
Top = 0
155186
Width = 369
156-
Height = 127
157-
AutoSize = False
158-
Caption =
159-
'Ready to submit the code.'#13#10#13#10'The data that will be sent contains' +
160-
' the specified snippet(s), the information your gave on the prev' +
161-
'ious page and your program'#39's version number.'#13#10#13#10'If you want to s' +
162-
'ee the data before sending it, click the Preview Data button.'#13#10#13 +
163-
#10'To proceed please ensure you are connected to the internet and ' +
164-
'click the Submit button.'
165-
WordWrap = True
187+
Height = 169
188+
TabOrder = 1
189+
TabStop = True
190+
ExplicitWidth = 369
191+
ExplicitHeight = 169
192+
inherited pnlBrowser: TPanel
193+
Width = 369
194+
Height = 169
195+
inherited wbBrowser: TWebBrowser
196+
Width = 369
197+
Height = 169
198+
ControlData = {
199+
4C00000023260000771100000000000000000000000000000000000000000000
200+
000000004C000000000000000000000001000000E0D057007335CF11AE690800
201+
2B2E126208000000000000004C0000000114020000000000C000000000000046
202+
8000000000000000000000000000000000000000000000000000000000000000
203+
00000000000000000100000000000000000000000000000000000000}
204+
end
205+
end
166206
end
207+
end
208+
object tsSubmit: TTabSheet
209+
Caption = 'tsSubmit'
210+
ImageIndex = 4
211+
TabVisible = False
212+
ExplicitLeft = 0
167213
object btnPreview: TButton
168214
Left = 136
169-
Top = 144
215+
Top = 164
170216
Width = 98
171217
Height = 25
172218
Caption = '&Preview Data...'
173219
TabOrder = 0
174220
OnClick = btnPreviewClick
175221
end
222+
inline frmSubmit: TFixedHTMLDlgFrame
223+
Left = 0
224+
Top = 0
225+
Width = 366
226+
Height = 145
227+
TabOrder = 1
228+
TabStop = True
229+
ExplicitWidth = 366
230+
ExplicitHeight = 145
231+
inherited pnlBrowser: TPanel
232+
Width = 366
233+
Height = 145
234+
inherited wbBrowser: TWebBrowser
235+
Width = 366
236+
Height = 145
237+
ControlData = {
238+
4C000000D4250000FC0E00000000000000000000000000000000000000000000
239+
000000004C000000000000000000000001000000E0D057007335CF11AE690800
240+
2B2E126208000000000000004C0000000114020000000000C000000000000046
241+
8000000000000000000000000000000000000000000000000000000000000000
242+
00000000000000000100000000000000000000000000000000000000}
243+
end
244+
end
245+
end
176246
end
177247
object tsFinished: TTabSheet
178248
Caption = 'tsFinished'
179249
ImageIndex = 3
180250
TabVisible = False
181-
object lblFinished: TLabel
251+
inline frmFinished: TFixedHTMLDlgFrame
182252
Left = 0
183253
Top = 0
184254
Width = 369
185-
Height = 201
186-
AutoSize = False
187-
Caption =
188-
'Thank you. Your submission has been sent successfully.'#13#10#13#10'The da' +
189-
'tabase editor will review the code and, if it is in a suitable f' +
190-
'ormat and it works as advertised, it will be included in the onl' +
191-
'ine Code Snippets database in due course. You may be contacted i' +
192-
'f there are any queries.'
193-
WordWrap = True
255+
Height = 238
256+
Align = alClient
257+
TabOrder = 0
258+
TabStop = True
259+
inherited pnlBrowser: TPanel
260+
Width = 369
261+
Height = 238
262+
inherited wbBrowser: TWebBrowser
263+
Width = 369
264+
Height = 238
265+
ControlData = {
266+
4C00000023260000991800000000000000000000000000000000000000000000
267+
000000004C000000000000000000000001000000E0D057007335CF11AE690800
268+
2B2E126208000000000000004C0000000114020000000000C000000000000046
269+
8000000000000000000000000000000000000000000000000000000000000000
270+
00000000000000000100000000000000000000000000000000000000}
271+
end
272+
end
194273
end
195274
end
196275
end

0 commit comments

Comments
 (0)