Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edits/style, syntax
Scripting_function


Panel
titleDescription

Checks whether or not the running Client's Touch Screen mode is currently enabled.

Client permissions restrictions


Panel
titleSyntax

system.gui.isTouchscreenModeEnabled()

  • Parameters

Nothing

  • Returns

booleanBoolean - True if the Client currently has Touch Screen mode activated.

  • Scope

Vision Client

Panel
titleCode Examples
Code Block
languagepy
titleCode Snippet
# This example should beis used in the Client Startup script to check if this Client is being run on a touch screen computer (judged by an IP address) and set Touch Screen mode.
 
ipAddress = system.net.getIpAddress()
query = "SELECT COUNT(*) FROM touchscreen_computer_ips WHERE ip_address = '%s' "
isTouchscreen = system.db.runScalarQuery(query %(ipAddress))
if isTouchscreen and not system.gui.isTouchscreenModeEnabled():
   system.gui.setTouchscreenModeEnabled(1)
Panel
titleKeywords

system gui isTouchscreenModeEnabled, gui.isTouchscreenModeEnabled