Ifsetmessageport, Iftouchscreencalibration, Ifserialcontrol – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 126

Advertising
background image

118

regions default to "enabled" when created, but you can set up all of the regions at the start of your script and then
enable the current ones when required.

SetRollOverOrigin(region_id As Integer, x As Integer, y As Integer) As Void: Changes
the origin so that more (or less) of the screen changes when the mouse rolls in and out of the region. This means
that bitmaps that are larger than the region can be drawn. The default requirement is that rollover bitmaps be the
same size and position as the touch region. Note that the bitmap is square for circular regions. The default origin
for circular regions is

x - r, y – r, where x, y is the center and r is the radius.

IsMousePresent() As Boolean: Returns whether a relative pointing device is attached or not.

Note: This does not work for absolute devices like touchscreens.

EnableSerialTouchscreen(a As Integer) As Boolean

SetSerialTouchscreenConfiguration(a As String) As Boolean

GetDiagnosticInfo() As String: Returns an HTML string with captured information describing hardware
that was connected and events that occurred during the calibration process. This method is used by the calibration
script to diagnose touchscreen issues.

The ifSetMessagePort interface provides the following:

SetPort(a As Object)

The ifTouchScreenCalibration interface provides the following:

StartCalibration() As Boolean

GetCalibrationStatus() As Integer


The ifSerialControl interface provides the following:

SetBaudRate(baud_rate As Integer) As Boolean: Sets the baud rate of the device. The supported baud
rates are as follows: 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400, 57600,
115200, 230400.

NotUsed1(a As String)

Advertising