Translation

sf_timer.xhp bas_id931610989837747 help.text
English t98Fv
Context English Chinese (Traditional) Actions
sf_timer.xhp
par_id81582734905507
help.text
Suspends a running timer
sf_timer.xhp
par_id661582734905507
help.text
<literal>False</literal> if the timer is not started or already suspended
sf_timer.xhp
par_id861582734996722
help.text
Stops a running timer
sf_timer.xhp
par_id381582734996722
help.text
<literal>False</literal> if the timer is neither started nor suspended
sf_timer.xhp
par_id731626871820490
help.text
The examples below in Basic and Python illustrate the use of the methods and properties in the <literal>Timer</literal> service.
sf_timer.xhp
bas_id141582735926821
help.text
'The time elapsed while the Dialog box is open will be counted as suspended time
sf_timer.xhp
bas_id901582735961725
help.text
'The time elapsed while the Dialog box is open will be counted as running time
sf_timer.xhp
bas_id941610739926687
help.text
'Shows the final time measurements
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
Beware 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

Loading…

No matching activity found.
Browse all component changes

Glossary

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

String information

Context
sf_timer.xhp
bas_id931610989837747
help.text
Source string description
t98Fv
Source string location
sf_timer.xhp
String age
a year ago
Source string age
a year ago
Translation file
zh-TW/helpcontent2/source/text/sbasic/shared/03.po, string 3089