Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfigurations Time progress

The panel counts the time period since opened. Then it is closed. The typical usage of this preconfiguration can be e.g. displaying the communication lag with another device.
 
This preconfiguration can be activated when creating a new object (e.g. by "New object" in the local object menu or by pressing the Insert key after selecting the object) and is included in the group: " / Panels (PmPanel) / Progress bar".

This preconfiguration can be used with the objects: PmFolder or PmRoot.

 
- Preconfiguration creates an object of type PmFolder with subobjets PmPanel and PmSequencer.
- The preconfiguration is created not including the panel functionality as a WEB panel.
 
The launch can be activated by the Start method of the PmFolder object. The method places a panel open request into the PmSequencer object. The panel is opened after the time period defined in the nStartDelay variable.

Before the defined time period passes, the request can be acknowledged by calling the Stop method. If the request is not acknowledged then the panel is until the time defined in the nMaxSec variable. It can be closed prematurely any time by calling the Stop method.

There are the following variables present in the Start method:
- nStartDelay the number of seconds to wait before panel open
- nMaxSec the number of seconds defining the period when the panel is oppened (infinite=-1).
- sText panel description text
- sTitle window header text.
 
Practically, the Start method is called, when there is some process being launched, that can possibly have some lags while being executed. The Stop method is called, when the process is terminated successfull/unsuccessfully.

For testing and demonstration purposes, the scripts can be placed into the PmKey.onKeyUp event.

(The preconfiguration folder (PmFolder type) is named ProgressTime and located in the application PmRoot.)

These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the application object tree. This is a system name and must not contain empty string, diacritics, spaces and the first character must not be a number.

Default: "ProgressTime"

PermissionsOn this page permissions of the object are defined. See Description of the page Permissions.
Progress status textProgress status text
Example1:
An example of calling the Start method.
pMe.Pm("/ProgressTime").Methods.Start
Example2:
An example of calling the Stop method.
pMe.Pm("/ProgressTime").Methods.Stop
 
This preconfiguration is used in PreCfg - Preconfiguration examples.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice