Translation

sf_ui.xhp par_id761587913266388 help.text
English iE5hR
Context English Chinese (Traditional) Actions
sf_timer.xhp
par_id281610740093006
help.text
If you call the <literal>Terminate</literal> method, subsequent calls for the <literal>Continue</literal> method will not resume time measurement. Similarly, after a Timer has been terminated, calling the <literal>Start</literal> method will restart it as if it were a clean new Timer.
sf_timer.xhp
par_id391626872019832
help.text
Be aware that the <literal>Wait</literal> function in BASIC takes in a duration argument in milliseconds whereas the <literal>sleep</literal> function in Python uses seconds in its argument.
sf_timer.xhp
hd_id431610989623086
help.text
Working with Multiple Timers
sf_timer.xhp
par_id741610989639201
help.text
It is possible to instantiate multiple <literal>Timer</literal> services in parallel, which gives flexibility in measuring time in different parts of the code.
sf_timer.xhp
par_id921610989722908
help.text
The following example illustrates how to create two <literal>Timer</literal> objects and start them separately.
sf_timer.xhp
bas_id481610989853679
help.text
'Starts myTimerA
sf_timer.xhp
bas_id331610989849501
help.text
'Starts myTimerB
sf_timer.xhp
bas_id931610989837747
help.text
'Terminate both timers
sf_ui.xhp
tit
help.text
ScriptForge.UI service
sf_ui.xhp
hd_id371587913266310
help.text
<variable id="UIService"><link href="text/sbasic/shared/03/sf_ui.xhp" name="ScriptForge.UI service"><literal>ScriptForge</literal>.<literal>UI</literal> service</link></variable>
sf_ui.xhp
par_id31587913266153
help.text
The UI (User Interface) service simplifies the identification and the manipulation of the different windows composing the whole %PRODUCTNAME application:
sf_ui.xhp
par_id591587913266547
help.text
Windows selection
sf_ui.xhp
par_id511587913266292
help.text
Windows moving and resizing
sf_ui.xhp
par_id51587913266596
help.text
Statusbar settings
sf_ui.xhp
par_id401599404339702
help.text
Display of a floating progress bar
sf_ui.xhp
par_id761587913266388
help.text
Creation of new windows
sf_ui.xhp
par_id591587913266489
help.text
Access to the underlying "documents"
sf_ui.xhp
par_id181620312953395
help.text
The UI service is the starting point to open, create or access to the content of new or existing documents from a user script.
sf_ui.xhp
hd_id881587913266307
help.text
Definitions
sf_ui.xhp
par_id741587913266919
help.text
A window can be designated using various ways:
sf_ui.xhp
par_id291587913946648
help.text
a full path and file name
sf_ui.xhp
par_id991587914045862
help.text
the last component of the full file name or even only the last component without its suffix
sf_ui.xhp
par_id541587914079744
help.text
the title of the window
sf_ui.xhp
par_id191587914134221
help.text
for new documents, something like "Untitled 1"
sf_ui.xhp
par_id911587914185746
help.text
one of the special windows "<literal>BASICIDE</literal>" and "<literal>WELCOMESCREEN</literal>"
sf_ui.xhp
par_id181587914255236
help.text
The window name is case-sensitive.
sf_ui.xhp
hd_id541588520711430
help.text
Document object
sf_ui.xhp
par_id841588521238711
help.text
The methods <literal>CreateDocument</literal>, <literal>CreateBaseDocument</literal>, <literal>GetDocument</literal>, <literal>OpenBaseDocument</literal> and <literal>OpenDocument</literal>, described below, generate document objects. When a window contains a document, an instance of the <literal>Document</literal> class represents that document. A counterexample the Basic IDE is not a document but is a window in our terminology. Additionally a document has a type: <literal>Calc</literal>, <literal>Impress</literal>, <literal>Writer</literal>, ...
sf_ui.xhp
par_id331588521254916
help.text
The specific properties and methods applicable on documents are implemented in a document class.
sf_ui.xhp
par_id971588521292976
help.text
The implementation of the document objects class is done in the <literal>SFDocuments</literal> associated library. See its "<literal>Document</literal>" service.
sf_ui.xhp
hd_id91587913266988
help.text
Service invocation

Loading…

No matching activity found.
Browse all component changes

Glossary

English Chinese (Traditional)
No related strings found in the glossary.

String information

Context
sf_ui.xhp
par_id761587913266388
help.text
Source string description
iE5hR
Source string location
sf_ui.xhp
String age
a year ago
Source string age
a year ago
Translation file
zh-TW/helpcontent2/source/text/sbasic/shared/03.po, string 3100