Codecore Logo
Quick Search
»
Advanced Search »

Touch Screen

RSS
Scripts run from actions on a touch screen (user-interface display) can reference their touch screen, parent touch screen, the top level touch screen, and controls with this object.

The touch screens are accessible via the following object names:

  • TouchScreen : The current touch screen.
  • ParentTouchScreen : The parent touch screen of this touch screen.
  • TopTouchScreen : The touch screen at the very top of the touch screen hierarchy.

All of the following are semantically the same assuming TopContainer was a child of the root touch screen:


TopTouchScreen.TopContainer.LoadTouchScreen("abc");
this.TopTouchScreen.TopContainer.LoadTouchScreen("abc");
this.ParentTouchScreen.ParentTouchScreen.TopContainer.LoadTouchScreen("abc");
TouchScreen.TopTouchScreen.TopContainer.LoadTouchScreen("abc");
TouchScreen.ParentTouchScreen.TopContainer.LoadTouchScreen("abc");

For performance reasons (especially when running over a network) you would use one with the fewest dots in layman's terms... so for the examples above you would want to use:


TopTouchScreen.TopContainer.LoadTouchScreen("abc");

Each control within the touch screen can be referenced as a property of the touch screen by the control's name. This object can not be created in a script.

Syntax:

TouchScreen.ControlName.PropertyName

Example:

TouchScreen.Button1.Visible = false;

TouchScreenPath

The path of the currently loaded touchscreen.

While this property has the same affect as the LoadTouchScreen() method, the method is the preferred choice.

Type: String

Example:


path = TouchScreen.TouchScreenPath;

TouchScreen.TouchScreenPath = "lighting/kitchen";

UserAccountDisplayName

The display name of currently signed in user.

Type: String

Accessibility: Read Only

Example:


displayName = TouchScreen.UserAccountDisplayName;

UserAccountName

The account name of currently signed in user.

Type: String

Accessibility: Read Only

Example:


name = TouchScreen.UserAccountName;

ClosePopup()

Closes this touch screen when it is shown as a popup.

Syntax:

void ClosePopup( )

Example:

TouchScreen.ClosePopup();

LoadTouchScreen( String )

Loads the specified touch screen path.

Syntax:

void LoadTouchScreen( String path )

Example:

TouchScreen.LoadTouchScreen("lighting/kitchen");

Refresh()

Refreshes all the controls within the touch screen by updating any values such as display text, etc.

Syntax:

void Refresh( )

Example:

TouchScreen.Refresh();
Privacy Policy | Conditions Of Use

Copyright ©2014 Codecore Technologies, All rights reserved.