Functions, 27 functions, Webgui – CUE WebGUI User Manual
Page 27: Bargraphs, Textboxes, Other

User Manual
Page 27
www.cuesystem.com
[email protected]
WebGUI
Functions
Bargraphs
SetBargraphValue(bargraphid As Long, newvalue As Long) As Boolean
Function sets all Bargraphs identified by bargraphid to newvalue. More bagraphs can use the same ID and
all of them are set to the same value.
The function returns True if bargraphid is from 1 to 256 and newvalue is >= 0 and <= 100. Else it returns
false.
GetBargraphValue(bargraphid As Long) As Long
Function returns current value of Bargraph identified by bargraphid.
TextBoxes
SetTextBoxText(textboxid As Long, newtext As Text) As Boolean
This function sets current text of TextBox identified by textboxid to newtext.
As newtext you can use direct value of text (TextBoxSetText (“Hello”)). In this case you will lose the
possibility of changing the language of this text. You can also use addressof text (TextBoxSetText
(txtHello)) as parameter (txtHello must be declared in MyCommon/Text resources). In this case it is
possible to change the language of this caption.
The function returns True if textboxid is from 1 to 32 and text length is max. 64 characters. Else it
returns false.
GetTextBoxText(textboxid As Long, ByRef currenttext As Text)
Text variable currenttext is filled by current value of the TextBox identified by textboxid.
Other
DisableControl () As Boolean
This function disconnects all clients connected to the server and closes server.
EnableControl () As Boolean
This function starts server.
IsControlEnabled () As Boolean
This function returns True if server is running. Else it returns False.