Screen Development Libraries

The Tsentry HMI libraries are composed of a set of objects to facilitate the creation and usage of real-time HMI screens on the Tsentry Windows NT/2000/XP platform.


TPRI.BaseScreen

The TPRI.BaseScreen class is the base class from which all user screens should be inherited. It provides the default functionality to automate communications with TSENTRY controller, access the data dictionary, and navigate between screens.

The TPRI.BaseScreen class should not be used by itself; it is intended solely for use as a base class for other screens.

The simplest custom user screens need only to inherit from the TPRI.BaseScreen class in order to take advantage of common functionality provided by the BaseScreen class.  However, if a custom screen wishes to perform some initialization as the screen is started (i.e. once the display is active and all contained objects are instantiated) it should override the StartScreen(..) method.  By the same token, if a custom screen wishes to implement some form of security, it should override the SecureScreen(..) method to modify itself for the current security level.

The following protected properties are exposed by the TPRI.BaseScreen class.

Property Name

Type

Default Value

Description

Property Name

Type

Default Value

Description

sHostName

String

""

Host IP address.

sFullPath

String

""

Full path of container page on host.

sPathDir

String

""

Directory of container page on host.

sPageName

String

""

Name of container page on host.

sStartArgs

String

""

Screen arguments used to modify program operation.

The following public methods are exposed by the TPRI.BaseScreen class.

Protected Overridable Function StartFromAsp( _ ByRef vobjWindow As Object _ ) As Integer

Description:

Start active operation of the screen from an ASP web page.

Parameters:

vobjWindow

Window object of the Document Object Model (DOM) API in the browser.

Return Value:

Zero for success; non-zero for failure.

Remarks:

This method should only be called by the container ASP to initiate activity on the screen.

 

Protected Overridable Function StartFromForm( _ ByRef vobjForm As Object, _ ByRef host As String, _ ByRef path As String, _ ByRef args As String _ ) As Integer

Description:

Start active operation of the screen.

Parameters:

vobjContainer

Form object containing this screen.

host

Name or IP address of the host system to which the screen should connect..

path

Path to page on host.

args

String argument(s) to pass to screen for initialization/customization.

Return Value:

Zero for success; non-zero for failure.

Remarks:

This method should only be called by the container form to initiate activity on the screen.

 

The following overridable methods are exposed by the TPRI.BaseScreen class.

 

Protected Overridable Function StartScreen( _ ByRef vobjContainer As Object _ ) As Integer

Description:

Start active operation of the screen.

Parameters:

vobjContainer

Container object.  If screen is started from a web page, this will contain a reference to the Window object of the Document Object Model (DOM) API in the browser.

Return Value:

Zero for success; non-zero for failure.

Remarks:

This method should be overridden by derived classes to provide custom startup functionality.

 

Description:

Secure the screen according to the specified security level.

Parameters:

securityLevel

Security level of the user.  This value is a bitmask of rights provided to the user.

Return Value:

Zero for success; non-zero for failure.

Remarks:

This method should be overridden by derived classes to implement security on individual screens.

 

Description:

Navigate the current screen to a new page.

Parameters:

URL

URL of the new page.  Alternatively, passing the string '@MENU' links the screen back to the most recent menu and passing the string '@BACK' links the screen back to the previous page.

Return Value:

Zero for success; non-zero for failure.

 

Description:

Navigate the current screen back to the most recent menu page.

Remarks:

Calling this method is equivalent to calling LinkTo("@MENU").

 

Description:

Navigate the current screen back to the previous page.

Remarks:

Calling this method is equivalent to calling LinkTo("@BACK").

The following events are exposed by the TPRI.BaseScreen class.

 

Description:

Indicates screen request to navigate to a different page.

Parameters:

page

Name of the next page to load.

 

Description:

Indicates the screen has reached a fatal error and must terminate.

TPRI.BaseControl

TPRI.TextBox

TPRI.Shape

TPRI.ActiveShape

TPRI.ActiveShapeArray

TPRI.CmdButton

TPRI.CmdButtonArray

TPRI.ToggleButton

TPRI.BarGraph

TPRI.CoverageBar

TPRI.LogMsg

TPRI.ComboBox

TPRI.OpcMgr

TPRI.OpcCom

TPRI.DataSetInfo

TPRI.DDVarSelect

TPRI.DataDict

TPRI.HMI.Controls.TrendCtrl

TPRI.TrendCtrl Variable Insert/Delete Form

TPRI.TrendPlayback

“O-” as in 'O-Example' is an Operation sub doc

TPRI.HMI.Controls.TrendSetLoader

TPRI.TrendSrcSelect

TPRI.TrendCom

TPRI.TriggerEd

TPRI.TriggerStat

TPRI.RpsEditor

“O-” as in 'O-Example' is an Operation sub doc


TPRI.HMI.Controls.NumericUpDown

TPRI.HMI.Controls.LevelDisplay

TPRI.HMI.Controls.SelectButton

TPRI.HMI.Controls.StateList

TPRI.HMI.Controls.ActiveGrid

© 2022 TelePro, Inc.
3811 Illinois Avenue, Suite 100, St. Charles, IL 60174