File: frmselprinter.lfm

package info (click to toggle)
lazarus 2.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 214,460 kB
  • sloc: pascal: 1,862,622; xml: 265,709; cpp: 56,595; sh: 3,008; java: 609; makefile: 535; perl: 297; sql: 222; ansic: 137
file content (353 lines) | stat: -rw-r--r-- 7,686 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
object Form1: TForm1
  Left = 106
  Height = 787
  Top = 121
  Width = 489
  ActiveControl = Button7
  Caption = 'Form1'
  ClientHeight = 787
  ClientWidth = 489
  OnCreate = FormCreate
  Position = poScreenCenter
  LCLVersion = '1.9.0.0'
  object Label1: TLabel
    Left = 12
    Height = 15
    Top = 4
    Width = 254
    Caption = 'This sample show how to use the printer dialogs'
    ParentColor = False
  end
  object Button2: TButton
    Left = 8
    Height = 27
    Top = 51
    Width = 176
    BorderSpacing.InnerBorder = 4
    Caption = 'Execute TPrinterSetupDialog'
    OnClick = Button2Click
    TabOrder = 0
  end
  object btnTPrintDialog: TButton
    Left = 8
    Height = 27
    Top = 78
    Width = 176
    BorderSpacing.InnerBorder = 4
    Caption = 'Execute TPrintDialog'
    OnClick = btnTPrintDialogClick
    TabOrder = 1
  end
  object SGrid: TStringGrid
    Left = 8
    Height = 459
    Top = 320
    Width = 469
    AlternateColor = clCream
    Anchors = [akTop, akLeft, akRight, akBottom]
    AutoFillColumns = True
    ColCount = 2
    Columns = <    
      item
        Color = clBtnFace
        SizePriority = 0
        Title.Caption = 'Property'
        Width = 120
      end    
      item
        MinSize = 60
        MaxSize = 350
        ReadOnly = True
        Title.Caption = 'Value'
        Width = 345
      end>
    DefaultColWidth = 120
    FixedCols = 0
    FixedRows = 0
    Options = [goVertLine, goRangeSelect, goSmoothScroll]
    RowCount = 15
    TabOrder = 7
    TitleStyle = tsNative
    OnSelectCell = SGridSelectCell
    ColWidths = (
      120
      345
    )
  end
  object Button3: TButton
    Left = 8
    Height = 27
    Top = 105
    Width = 176
    BorderSpacing.InnerBorder = 4
    Caption = 'Get default printer info'
    OnClick = Button3Click
    TabOrder = 2
  end
  object btnDirectPrint: TButton
    Left = 202
    Height = 27
    Top = 152
    Width = 126
    BorderSpacing.InnerBorder = 4
    Caption = 'Direct Print'
    OnClick = btnDirectPrintClick
    TabOrder = 3
  end
  object Button5: TButton
    Left = 8
    Height = 25
    Top = 132
    Width = 176
    BorderSpacing.InnerBorder = 4
    Caption = 'Update printer state info'
    OnClick = Button5Click
    TabOrder = 4
  end
  object Button6: TButton
    Left = 8
    Height = 25
    Top = 157
    Width = 176
    BorderSpacing.InnerBorder = 4
    Caption = 'Show printer properties'
    OnClick = Button6Click
    TabOrder = 5
  end
  object Button7: TButton
    Left = 8
    Height = 27
    Top = 24
    Width = 176
    BorderSpacing.InnerBorder = 4
    Caption = 'Execute TPageSetupDialog'
    OnClick = Button7Click
    TabOrder = 6
  end
  object chkTestImgs: TCheckBox
    Left = 392
    Height = 19
    Top = 100
    Width = 71
    Caption = 'Test Imgs'
    TabOrder = 8
  end
  object chkOutputFile: TCheckBox
    Left = 195
    Height = 19
    Top = 27
    Width = 79
    Caption = 'Output File'
    TabOrder = 9
  end
  object txtOutputFile: TFileNameEdit
    Left = 195
    Height = 23
    Top = 48
    Width = 261
    DialogKind = dkSave
    DialogOptions = []
    FilterIndex = 0
    HideDirectories = False
    ButtonWidth = 23
    NumGlyphs = 1
    Anchors = [akTop, akLeft, akRight]
    MaxLength = 0
    TabOrder = 10
  end
  object Label2: TLabel
    Left = 61
    Height = 15
    Top = 192
    Width = 103
    Alignment = taRightJustify
    Caption = 'PageSetupDlg Title:'
    ParentColor = False
  end
  object Label3: TLabel
    Left = 49
    Height = 15
    Top = 212
    Width = 112
    Alignment = taRightJustify
    Caption = 'PrinterSetupDlg Title:'
    ParentColor = False
  end
  object txtPageSetupDlgTitle: TEdit
    Left = 202
    Height = 23
    Top = 188
    Width = 275
    Anchors = [akTop, akLeft, akRight]
    TabOrder = 11
    Text = 'Printer Dialogs Tests: PageSetupDialog'
  end
  object txtPrinterSetupDlgTitle: TEdit
    Left = 202
    Height = 23
    Top = 212
    Width = 275
    Anchors = [akTop, akLeft, akRight]
    TabOrder = 12
    Text = 'Printer Dialogs Tests: PrinterSetupDialog'
  end
  object Label4: TLabel
    Left = 78
    Height = 15
    Top = 236
    Width = 88
    Alignment = taRightJustify
    Caption = 'PrintDialog Title:'
    ParentColor = False
  end
  object txtPrintDialogTitle: TEdit
    Left = 202
    Height = 23
    Top = 236
    Width = 275
    Anchors = [akTop, akLeft, akRight]
    TabOrder = 13
    Text = 'Printer Dialogs Tests: PrinterDialog'
  end
  object btnRotateBin: TButton
    Left = 195
    Height = 25
    Top = 72
    Width = 127
    Anchors = [akTop, akRight]
    Caption = 'Rotate Bin'
    OnClick = btnRotateBinClick
    TabOrder = 14
  end
  object btnRestoreDefaultBin: TButton
    Left = 332
    Height = 25
    Top = 72
    Width = 123
    Anchors = [akTop, akRight]
    Caption = 'Restore Default Bin'
    OnClick = btnRestoreDefaultBinClick
    TabOrder = 15
  end
  object btnPrintWithDlg: TButton
    Left = 334
    Height = 27
    Top = 152
    Width = 142
    Caption = 'Print with Dialog'
    OnClick = btnPrintWithDlgClick
    TabOrder = 16
  end
  object comboTests: TComboBox
    Left = 200
    Height = 23
    Top = 120
    Width = 272
    ItemHeight = 15
    Items.Strings = (
      'Single Page'
      'Single Page with Images'
      'Multi-Page'
      'Multipage with paper changes'
    )
    OnSelect = comboTestsSelect
    Style = csDropDownList
    TabOrder = 17
  end
  object Label5: TLabel
    Left = 202
    Height = 15
    Top = 104
    Width = 29
    Caption = 'Tests:'
    ParentColor = False
  end
  object chkAsSheet: TCheckBox
    Left = 360
    Height = 19
    Hint = 'Cocoa Only:'#10'Attach the dialogs to the main form:'#10'use the dialogs AttachTo property'#10'to select the target formulary.'
    Top = 4
    Width = 65
    Caption = 'As Sheet'
    Enabled = False
    TabOrder = 18
  end
  object cbPrinters: TComboBox
    Left = 202
    Height = 23
    Top = 264
    Width = 275
    ItemHeight = 15
    OnSelect = cbPrintersSelect
    TabOrder = 19
    Text = 'cbPrinters'
  end
  object cbPapers: TComboBox
    Left = 202
    Height = 23
    Top = 288
    Width = 275
    ItemHeight = 15
    OnSelect = cbPapersSelect
    TabOrder = 20
    Text = 'cbPapers'
  end
  object Label6: TLabel
    Left = 1
    Height = 15
    Top = 264
    Width = 153
    Alignment = taRightJustify
    Caption = 'Programmatically set printer:'
    ParentColor = False
  end
  object Label7: TLabel
    Left = 8
    Height = 15
    Top = 288
    Width = 148
    Alignment = taRightJustify
    Caption = 'Programmatically set paper:'
    ParentColor = False
  end
  object chkNativeDlg: TCheckBox
    Left = 360
    Height = 19
    Hint = 'Cocoa Only: '#10'Checked State: (default) Use the native cocoa look with print preview.'#10'Uncheck State: Use a dialog without print preview.'#10#10'By default the sistem uses the native look, to force the old look'#10'turn the print dialog option poBeforeBeginDoc on'
    Top = 22
    Width = 91
    Caption = 'Native Dialog'
    Checked = True
    Enabled = False
    ParentShowHint = False
    ShowHint = True
    State = cbChecked
    TabOrder = 21
  end
  object PSD: TPrinterSetupDialog
    Title = 'Testing dialog title'
    Left = 172
    Top = 452
  end
  object PD: TPrintDialog
    Title = 'Testing title'
    Collate = True
    FromPage = 1
    MinPage = 1
    MaxPage = 1
    Options = [poPrintToFile, poPageNums, poSelection, poWarning, poHelp]
    PrintToFile = True
    ToPage = 1
    Left = 172
    Top = 484
  end
  object PopupMenu1: TPopupMenu
    Left = 212
    Top = 452
  end
  object PAGED: TPageSetupDialog
    Title = 'Ustawienie strony raportu'
    Left = 172
    Top = 516
  end
end