summaryrefslogtreecommitdiffstats
path: root/source/text/sbasic/shared/03/sf_dialogcontrol.xhp
blob: 547b2147b8ccdfcb259867c405550acfc955d7b1 (plain)
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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
-->

<meta>
  <topic id="SF_DialogControl" indexer="include" status="PUBLISH">
    <title id="tit" xml-lang="en-US">SFDialogs.DialogControl service</title>
    <filename>/text/sbasic/shared/03/sf_dialogcontrol.xhp</filename>
  </topic>
  </meta>

<body>
<section id="abstract">
   <bookmark localize="false" branch="index" id="bm_id41582391760252">
      <bookmark_value>DialogControl service</bookmark_value>
   </bookmark>

  <h1 id="bm_id781582391760253" xml-lang="en-US"><variable id="ctrls_h1"><link href="text/sbasic/shared/03/sf_dialogcontrol.xhp" name="SFDialogs.DialogControl service"><literal>SFDialogs</literal>.<literal>DialogControl</literal> service</link></variable></h1>

  <paragraph role="paragraph" id="par_id931583589764919" xml-lang="en-US">The <literal>DialogControl</literal> service manages the controls belonging to a dialog defined with the Basic <link href="text/sbasic/guide/create_dialog.xhp" name="Dialog Editor">Dialog Editor</link>. Each instance of the current service represents a single control within a dialog box.</paragraph>

  <bookmark xml-lang="en-US" branch="index" id="bm_id331612167249331" localize="false">
     <bookmark_value>API;awt.XControl</bookmark_value>
     <bookmark_value>API;awt.XControlModel</bookmark_value>
  </bookmark>
  <paragraph role="paragraph" id="par_id701598191157426" xml-lang="en-US">The focus is set on getting and setting the values displayed by the controls of the dialog box. Formatting is accessible via the <literal>XControlModel</literal> and <literal>XControlView</literal> properties.</paragraph>
  <paragraph role="paragraph" id="par_id981598191184526" xml-lang="en-US">Note that <literal>DialogControl.Value</literal> property content varies according to UNO control types.</paragraph>
</section>

  <tip id="par_id891598188164936" xml-lang="en-US">The <literal>SFDialogs.DialogControl</literal> service is closely related to the <link href="text/sbasic/shared/03/sf_dialog.xhp" name="Dialog service"><literal>SFDialogs.Dialog</literal></link> service.</tip>

   <h2 id="hd_id581582885621841" xml-lang="en-US">Service invocation</h2>
   <paragraph role="paragraph" id="par_id361598174756160" xml-lang="en-US">The <literal>DialogControl</literal><literal></literal> service is invoked from an existing <literal>Dialog</literal> service instance thru its <literal>Controls()</literal> method. The dialog must be initiated with the <literal>SFDialogs.Dialog</literal> service.</paragraph>
   <bascode>
      <paragraph role="bascode" localize="false" id="bas_id791598453192421">Dim myDialog As Object, myControl As Object</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id251598453197473">Set myDialog = CreateScriptService("SFDialogs.Dialog", "GlobalScope", myLibrary, DialogName)</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id421598453203458">Set myControl = myDialog.Controls("myTextBox")</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id581598453210170">myControl.Value = "Dialog started at " &amp; Now()</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id11598453215943">myDialog.Execute()</paragraph>
      <paragraph role="bascode" xml-lang="en-US" id="bas_id961598453222539">' ... process the controls actual values</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id981598453230245">myDialog.Terminate()</paragraph>
   </bascode>
   <paragraph role="paragraph" id="par_id951598174966322" xml-lang="en-US">Alternatively a control instance can be retrieved via the <literal>SFDialogs.DialogEvent</literal> service, providing the dialog was initiated with the <literal>Dialog</literal> service. <literal>DialogEvent</literal> returns the <literal>SFDialogs.DialogControl</literal> class instance that triggered the event.</paragraph>
   <bascode>
      <paragraph role="bascode" localize="false" id="bas_id311598175259794">Sub SomeEvent(ByRef poEvent As Object)</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id781598175253859">    Dim oControl As Object</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id921598175248581">    Set oControl = CreateScriptService("SFDialogs.DialogEvent", poEvent)</paragraph>
      <paragraph role="bascode" xml-lang="en-US" id="bas_id801598175242937">    ' oControl represents now the instance of the Control class having triggered the current event</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id711598175146308">    ' ...</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id421598175139021">End Sub</paragraph>
   </bascode>
   <paragraph role="paragraph" id="par_id251598176312571" xml-lang="en-US">Note that in previous examples, the prefix <literal>"SFDialogs."</literal> may be omitted.</paragraph>

   <h2 id="hd_id71598455687512" xml-lang="en-US">Control types</h2>
   <paragraph role="paragraph" id="par_id851598455863395" xml-lang="en-US">The <literal>DialogControl</literal> service is available for these control types:</paragraph>
   <list type="unordered">
      <listitem>
         <paragraph id="par_id121598455880500" localize="false" role="listitem">Button</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id441598455934376" localize="false" role="listitem">CheckBox</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id471598455940400" localize="false" role="listitem">ComboBox</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id181598455945642" localize="false" role="listitem">CurrencyField</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id181598455949653" localize="false" role="listitem">DateField</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id541598455953714" localize="false" role="listitem">FileControl</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id441598455957858" localize="false" role="listitem">FixedLine</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id971598455961404" localize="false" role="listitem">FixedText</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id721598455965612" localize="false" role="listitem">FormattedField</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id291598455969826" localize="false" role="listitem">GroupBox</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id861598455974724" localize="false" role="listitem">ImageControl</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id851598455979572" localize="false" role="listitem">ListBox</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id321598455984243" localize="false" role="listitem">NumericField</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id981598455990524" localize="false" role="listitem">PatternField</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id991598455998589" localize="false" role="listitem">ProgressBar</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id281598456002561" localize="false" role="listitem">RadioButton</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id91598456007438" localize="false" role="listitem">ScrollBar</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id271598456011504" localize="false" role="listitem">TextField</paragraph>
      </listitem>
      <listitem>
         <paragraph id="par_id661598456015339" localize="false" role="listitem">TimeField</paragraph>
      </listitem>
   </list>

   <h2 id="hd_id651583668365757" xml-lang="en-US">Properties</h2>
   <table id="tab_id381583668386455">
      <tablerow>
         <tablecell>
            <paragraph id="par_id871583668386455" role="tablehead" xml-lang="en-US">Name</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id491583668386455" role="tablehead" xml-lang="en-US">ReadOnly</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id271583668474014" role="tablehead" xml-lang="en-US">Type</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id291598538799794" role="tablehead" xml-lang="en-US">Applicable to</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id401583668386455" role="tablehead" xml-lang="en-US">Description</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id151583668386455" role="tablecontent" localize="false">Cancel</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id371583668519172" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id271583668386455" role="tablecontent" localize="false">Boolean</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id231598538847029" role="tablecontent" xml-lang="en-US" localize="false">Button</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id771583668386455" role="tablecontent" xml-lang="en-US">Specifies if a command button has or not the behaviour of a Cancel button.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id951583839708571" role="tablecontent" localize="false">Caption</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id541583839708548" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id751583839708362" role="tablecontent" localize="false">String</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id351598538934413" role="tablecontent" xml-lang="en-US" localize="false">Button, CheckBox, FixedLine, FixedText, GroupBox, RadioButton</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id731583839708412" role="tablecontent" xml-lang="en-US">Specifies the text associated with the control.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id511584027709311" role="tablecontent" localize="false">ControlType</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id761584027709516" role="tablecontent" xml-lang="en-US">Yes</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id491584027709825" role="tablecontent" localize="false">String</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id261598539120502" role="tablecontent" xml-lang="en-US">All</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id971584027709752" role="tablecontent" xml-lang="en-US">One of the types listed above.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id491583839767611" role="tablecontent" localize="false">Default</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id31583839767743" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id741583839767926" role="tablecontent" localize="false">Boolean</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id71598539168348" role="tablecontent" xml-lang="en-US" localize="false">Button</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id111583839767195" role="tablecontent" xml-lang="en-US">Specifies whether a command button is the default (OK) button.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id83158383992056" role="tablecontent" localize="false">Enabled</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id771583839920487" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id971583839920282" role="tablecontent" localize="false">Boolean</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id891598539196786" role="tablecontent" xml-lang="en-US">All</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id451583839920858" role="tablecontent" xml-lang="en-US">Specifies if the control is accessible with the cursor.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id751588333908795" role="tablecontent" localize="false">Format</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id571588333908716" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id781588333908500" role="tablecontent" localize="false">String</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id491598539231618" role="tablecontent" xml-lang="en-US">DateField, TimeField, FormattedField (read-only)</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id721588333908708" role="tablecontent" xml-lang="en-US">Specifies the format used to display dates and times. It must be one these strings:</paragraph>
            <paragraph role="paragraph" id="par_id891598456980194" xml-lang="en-US">For dates: "Standard (short)", "Standard (short YY)", "Standard (short YYYY)", "Standard (long)", "DD/MM/YY", "MM/DD/YY", "YY/MM/DD", "DD/MM/YYYY", "MM/DD/YYYY" , "YYYY/MM/DD", "YY-MM-DD", "YYYY-MM-DD".</paragraph>
            <paragraph role="paragraph" id="par_id221598456991070" xml-lang="en-US">For times: "24h short", "24h long", "12h short", "12h long".</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id251583774433989" role="tablecontent" localize="false">ListCount</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id501583774433513" role="tablecontent" xml-lang="en-US">Yes</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id411583774433779" role="tablecontent" localize="false">Long</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id531598539561342" role="tablecontent" xml-lang="en-US" localize="false">ComboBox, ListBox</paragraph>
         </tablecell>
         <tablecell>
            <paragraph role="paragraph" id="par_id151598177605296" xml-lang="en-US">Specifies the number of rows in a list box or a combo box.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id731588334016220" role="tablecontent" localize="false">ListIndex</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id271588334016191" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id991588334016273" role="tablecontent" localize="false">Long</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id451598539598242" role="tablecontent" xml-lang="en-US" localize="false">ComboBox, ListBox</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id251588334016874" role="tablecontent" xml-lang="en-US">Specifies which item is selected in a list box or combo box.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id451598457655392" role="tablecontent" localize="false">Locked</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id961598457655506" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id571598457655365" role="tablecontent" localize="false">Boolean</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id111598539631340" role="tablecontent" xml-lang="en-US" localize="false">ComboBox, CurrencyField, DateField, FileControl, FormattedField, ListBox, NumericField, PatternField, TextField, TimeField</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id2159845765568" role="tablecontent" xml-lang="en-US">Specifies if the control is read-only.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id21159845795140" role="tablecontent" localize="false">MultiSelect</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id621598457951781" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id311598457951281" role="tablecontent" localize="false">Boolean</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id361598539747680" role="tablecontent" xml-lang="en-US" localize="false">ListBox</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id821598457951782" role="tablecontent" xml-lang="en-US">Specifies whether a user can make multiple selections in a listbox.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id421598458170141" role="tablecontent" localize="false">Name</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id351598458170114" role="tablecontent" xml-lang="en-US">Yes</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id391598458170757" role="tablecontent" localize="false">String</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id151598539764402" role="tablecontent" xml-lang="en-US">All</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id621598458170392" role="tablecontent" xml-lang="en-US">The name of the control.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id281598458357593" role="tablecontent" localize="false">Page</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id80159845835726" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id191598458357402" role="tablecontent" localize="false">Integer</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id841598539781888" role="tablecontent" xml-lang="en-US">All</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id791598458357756" role="tablecontent" xml-lang="en-US">A dialog may have several pages that can be traversed by the user step by step. The Page property of the Dialog object defines which page of the dialog is active.</paragraph>
            <paragraph role="paragraph" id="par_id441598458459145" xml-lang="en-US">The Page property of a control defines the page of the dialog on which the control is visible.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id2915984585802" role="tablecontent" localize="false">Parent</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id161598458580581" role="tablecontent" xml-lang="en-US">Yes</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id921598458580608" role="tablecontent" xml-lang="en-US"><literal>Dialog</literal><br/>service</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id181598539807426" role="tablecontent" xml-lang="en-US">All</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id801598458580456" role="tablecontent" xml-lang="en-US">The parent <literal>SFDialogs.Dialog</literal> class object instance.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id181598458773220" role="tablecontent" localize="false">Picture</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id971598458773352" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id471598458773993" role="tablecontent" localize="false">String</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id831598539848472" role="tablecontent" xml-lang="en-US" localize="false">Button, ImageControl</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id451598458773588" role="tablecontent" xml-lang="en-US">Specifies the file name containing a bitmap or other type of graphic to be displayed on the specified control. The filename must comply with the <literal>FileNaming</literal> attribute of the <literal>ScriptForge.FileSystem</literal> service.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id681598516577774" role="tablecontent" localize="false">RowSource</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id401598516577225" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id59159851657754" role="tablecontent" localize="false">Array of strings</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id131598539880024" role="tablecontent" xml-lang="en-US" localize="false">ComboBox, ListBox</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id311598516577712" role="tablecontent" xml-lang="en-US">Specifies the data contained in a combobox or a listbox.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id491598516764653" role="tablecontent" localize="false">Text</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id781598516764550" role="tablecontent" xml-lang="en-US">Yes</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id741598516764696" role="tablecontent" localize="false">String</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id761598539912452" role="tablecontent" xml-lang="en-US" localize="false">ComboBox, FileControl, FormattedField, PatternField, TextField</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id11159851676440" role="tablecontent" xml-lang="en-US">Gives access to the text being displayed by the control.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id311598517275908" role="tablecontent" localize="false">TipText</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id411598517275112" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id971598517275920" role="tablecontent" localize="false">String</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id171598539985022" role="tablecontent" xml-lang="en-US">All</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id651598517275384" role="tablecontent" xml-lang="en-US">Specifies the text that appears as a tooltip when you hold the mouse pointer over the control.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id951598517418614" role="tablecontent" localize="false">TripleState</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id821598517418463" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id231598517418608" role="tablecontent" localize="false">Boolean</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id81598540007035" role="tablecontent" xml-lang="en-US" localize="false">CheckBox</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id141598517418822" role="tablecontent" xml-lang="en-US">Specifies if the checkbox control may appear dimmed (grayed) or not.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id31598517671415" role="tablecontent" localize="false">Value</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id701598517671373" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id2159851767113" role="tablecontent" localize="false">Any</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id1001598540024225" role="tablecontent" xml-lang="en-US" localize="false"></paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id991598517671916" role="tablecontent" xml-lang="en-US">Read below.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id571598517730264" role="tablecontent" localize="false">Visible</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id661598517730941" role="tablecontent" xml-lang="en-US">No</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id981598517730694" role="tablecontent" localize="false">Boolean</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id761598540042290" role="tablecontent" xml-lang="en-US">All</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id881598517730836" role="tablecontent" xml-lang="en-US">Specifies if the control is hidden or visible.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id741598177924441" role="tablecontent" localize="false">XControlModel</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id451598177924437" role="tablecontent" xml-lang="en-US">Yes</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id94159817792441" role="tablecontent" xml-lang="en-US">UNO<br/>object</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id311598540066789" role="tablecontent" xml-lang="en-US">All</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id191598177924897" role="tablecontent" xml-lang="en-US">The UNO object representing the control model. Refer to <link href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1XControlModel.html" name="awt.XControlModel">XControlModel</link> and <link href="https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1awt_1_1UnoControlDialogModel.html)" name="awt.XControlDialogModel">UnoControlDialogModel</link> in Application Programming Interface (API) documentation for detailed information.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id801598178083859" role="tablecontent" localize="false">XControlView</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id811598178083501" role="tablecontent" xml-lang="en-US">Yes</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id981598178083938" role="tablecontent" xml-lang="en-US">UNO<br/>object</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id551598540079329" role="tablecontent" xml-lang="en-US">All</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id731598178083442" role="tablecontent" xml-lang="en-US">The UNO object representing the control view. Refer to <link href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1XControl.html" name="awt.XControl">XControl</link> and <link href="https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1awt_1_1UnoControlDialog.html)" name="awt.UnoControlDialog">UnoControlDialog</link> in Application Programming Interface (API) documentation for detailed information.</paragraph>
         </tablecell>
      </tablerow>
   </table>

   <h2 id="hd_id81598540704978" xml-lang="en-US">The Value property</h2>
   <table id="tab_id48159854325479">
      <tablerow>
         <tablecell>
            <paragraph id="par_id10159854325492" role="tablehead" xml-lang="en-US">Control type</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id741598543254158" role="tablehead" xml-lang="en-US">Type</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id961598543254444" role="tablehead" xml-lang="en-US">Description</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id461598543254494" role="tablecontent" xml-lang="en-US" localize="false">Button</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id271598543254590" role="tablecontent" xml-lang="en-US" localize="false">Boolean</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id741598543254108" role="tablecontent" xml-lang="en-US">For toggle buttons only</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id131598543254931" role="tablecontent" xml-lang="en-US" localize="false">CheckBox</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id741598543254376" role="tablecontent" xml-lang="en-US">Boolean or Integer</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id521598543254630" role="tablecontent" xml-lang="en-US">0, False: not checked<br />1, True: checked<br />2: grayed, don't know</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id891598543254563" role="tablecontent" xml-lang="en-US" localize="false">ComboBox</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id781598543254887" role="tablecontent" xml-lang="en-US" localize="false">String</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id331598543254947" role="tablecontent" xml-lang="en-US">The selected value. The <literal>ListIndex</literal> property is an alternate option.</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id58159854325446" role="tablecontent" xml-lang="en-US" localize="false">CurrencyField</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id5159854325443" role="tablecontent" xml-lang="en-US">Numeric</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id90159854325450" role="tablecontent" xml-lang="en-US" localize="false"></paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id241598543254415" role="tablecontent" xml-lang="en-US" localize="false">DateField</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id401598543254743" role="tablecontent" xml-lang="en-US" localize="false">Date</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id421598543254587" role="tablecontent" xml-lang="en-US" localize="false"></paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id851598543254508" role="tablecontent" xml-lang="en-US" localize="false">FileControl</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id731598543254544" role="tablecontent" xml-lang="en-US" localize="false">String</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id971598543254757" role="tablecontent" xml-lang="en-US">A file name formatted in accordance with the <literal>FileNaming</literal> property of the <literal>ScriptForge.FileSystem</literal> service</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id921598543254323" role="tablecontent" xml-lang="en-US" localize="false">FormattedField</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id221598543254760" role="tablecontent" xml-lang="en-US">String or Numeric</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id651598543254212" role="tablecontent" xml-lang="en-US" localize="false"></paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id151598543254318" role="tablecontent" xml-lang="en-US" localize="false">ListBox</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id42159854325422" role="tablecontent" xml-lang="en-US">String or array of strings</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id601598543254780" role="tablecontent" xml-lang="en-US">The selected row(s) as a scalar or as an array depending on the <literal>MultiSelect</literal> attribute</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id771598543254973" role="tablecontent" xml-lang="en-US" localize="false">NumericField</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id461598543254909" role="tablecontent" xml-lang="en-US">Numeric</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id161598543254662" role="tablecontent" xml-lang="en-US" localize="false"></paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id38159854325480" role="tablecontent" xml-lang="en-US" localize="false">PatternField</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id81598543254625" role="tablecontent" xml-lang="en-US" localize="false">String</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id911598543254335" role="tablecontent" xml-lang="en-US" localize="false"></paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id951598543254998" role="tablecontent" xml-lang="en-US" localize="false">ProgressBar</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id631598543254771" role="tablecontent" xml-lang="en-US">Numeric</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id91598543254766" role="tablecontent" xml-lang="en-US">Must be within the predefined bounds</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id791598543254779" role="tablecontent" xml-lang="en-US" localize="false">RadioButton</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id561598543254115" role="tablecontent" xml-lang="en-US" localize="false">Boolean</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id851598543254624" role="tablecontent" xml-lang="en-US">Each button has its own name. They are linked together if their TAB positions are contiguous. If a radiobutton is set to <literal>True</literal>, the other related buttons are automatically set to <literal>False</literal></paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id141598543254361" role="tablecontent" xml-lang="en-US" localize="false">ScrollBar</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id531598543254869" role="tablecontent" xml-lang="en-US">Numeric</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id21598543254994" role="tablecontent" xml-lang="en-US">Must be within the predefined bounds</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id811598543254140" role="tablecontent" xml-lang="en-US" localize="false">TextField</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id751598543254299" role="tablecontent" xml-lang="en-US" localize="false">String</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id441598543254738" role="tablecontent" xml-lang="en-US">The text appearing in the field</paragraph>
         </tablecell>
      </tablerow>
      <tablerow>
         <tablecell>
            <paragraph id="par_id89159854325478" role="tablecontent" xml-lang="en-US" localize="false">TimeField</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id341598543254600" role="tablecontent" xml-lang="en-US" localize="false">Date</paragraph>
         </tablecell>
         <tablecell>
            <paragraph id="par_id881598543254964" role="tablecontent" xml-lang="en-US" localize="false"></paragraph>
         </tablecell>
      </tablerow>
   </table>

   <h2 id="hd_id421583670049913" xml-lang="en-US">Methods</h2>
    <table id="tab_id891606472825856">
    <tablerow>
       <tablecell colspan="2"><paragraph id="par_id891611613601554" role="tablehead" xml-lang="en-US">List of Methods in the DialogControl Service</paragraph></tablecell>
    </tablerow>
    <tablerow>
       <tablecell><paragraph id="par_id381606472825856" role="tablecontent" localize="false">
           <link href="text/sbasic/shared/03/sf_dialogcontrol.xhp#SetFocus" name="SetFocus method">SetFocus</link>
       </paragraph></tablecell>
       <tablecell><paragraph id="par_id161606472825856" role="tablecontent" localize="false">
           <link href="text/sbasic/shared/03/sf_dialogcontrol.xhp#WriteLine" name="WriteLine method">WriteLine</link><br/>
       </paragraph></tablecell>
    </tablerow>
    </table>

  <section id="SetFocus">
  <comment> SetFocus -------------------------------------------------------------------------------------------------------------------------- </comment>
   <bookmark localize="false" branch="index" id="bm_id721583933076548">
      <bookmark_value>DialogControl service;SetFocus</bookmark_value>
   </bookmark>
   <h2 id="hd_id681583933076692" localize="false">SetFocus</h2>
   <paragraph role="paragraph" id="par_id871583933076448">Set the focus on the control. Return <literal>True</literal> if focusing was successful.</paragraph>
   <paragraph role="paragraph" id="par_id151598178880227" xml-lang="en-US">This method is often called from a dialog or control event.</paragraph>
   <h3 id="hd_id61583933076171" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
   <bascode>
      <paragraph role="bascode" localize="false" id="bas_id731583933076815">oControl.SetFocus() As Boolean</paragraph>
   </bascode>
   <h3 id="hd_id26158393307687" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
   <bascode>
      <paragraph role="bascode" localize="false" id="bas_id221598179105596">Dim oDlg As Object, oControl As Object</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id171598179111121">Set oDlg = CreateScriptService(,, "myDialog")</paragraph>
      <paragraph role="bascode" id="bas_id841598179117184">'Dialog stored in current document's standard library</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id681598179123436">Set oControl = oDlg.Controls("thisControl")</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id361598179135096">oControl.SetFocus()</paragraph>
   </bascode>
   </section>

   <section id="WriteLine">
   <comment> WriteLine -------------------------------------------------------------------------------------------------------------------------- </comment>
   <bookmark localize="false" branch="index" id="bm_id761598619892798">
      <bookmark_value>DialogControl service;WriteLine</bookmark_value>
   </bookmark>
   <h2 id="hd_id961598619892816" localize="false">WriteLine</h2>
   <paragraph role="paragraph" id="par_id671598619892378">Add a new line at the end of a multiline text field. A newline character will be inserted when appropriate. The method returns <literal>True</literal> when successful.</paragraph>
   <paragraph role="paragraph" id="par_id941598619892915" xml-lang="en-US">An error is raised if the actual control is not of the type <literal>TextField</literal> or is not multiline.</paragraph>
   <h3 id="hd_id761598619892682" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
   <bascode>
      <paragraph role="bascode" localize="false" id="bas_id821598619892939">oControl.WriteLine([Line As String]) As Boolean</paragraph>
   </bascode>
   <h3 id="hd_id291584541257237" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
   <paragraph role="paragraph" id="par_id1001584541257789"><emph>Line</emph> : The string to insert. Default = an empty line.</paragraph>
   <h3 id="hd_id391598619892559" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
   <bascode>
      <paragraph role="bascode" localize="false" id="bas_id681598619892624">Dim oDlg As Object, oControl As Object</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id521598619892148">Set oDlg = CreateScriptService(,, "myDialog")</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id391598619892465">Set oControl = oDlg.Controls("thisControl")</paragraph>
      <paragraph role="bascode" localize="false" id="bas_id281598619892850">oControl.WriteLine("a new line")</paragraph>
   </bascode>
   </section>

   <embed href="text/sbasic/shared/03/lib_ScriptForge.xhp#SF_InternalUse"/>

   <section id="relatedtopics">
      <embed href="text/sbasic/shared/03/sf_dialog.xhp#dlg_h1"/>      
      <embed href="text/sbasic/shared/03/sf_ui.xhp#UIService"/>    
   </section>
  
</body>
</helpdocument>