
52
Class Reference
validInputModes
– number; a bitwise combination of input modes as defined by
gui.inputMode
(section 4.2.2.1); defines the input modes that are valid in the edit
control.
onChar
– function; the function to run when a character is entered into a multiple line edit
control.
Other Functionality:
insert
– function, arg: string; this function inserts a string where the cursor is when the
function is called.
Format:
<multiLineEditControlName>.insert(string);
Where
<
multiLineEditControlName>
– program- provided multiple line edit control.
string
– string; text to insert into multiLineEdit control.
Example:
var main = new gui.Menu
main.append(new gui.Button("Notes", function() {
gui.showDialog(captureNotes); }));
gui.showMenu(main);
storage.write("saveNotes.txt","");
var captureNotes = new gui.MultiLineEdit("", gui.inputMode.caps)
captureNotes.leftSoftkey = new gui.Softkey("Save", function()
{storage.append("saveNotes.txt", captureNotes.text);
captureNotes.text = ""; gui.showMenu(main); });
captureNotes.rightSoftkey = new gui.Softkey("Cancel", function() {
captureNotes.text = ""; gui.showMenu(main); });
4.2.3.9
gui.Separator
The gui.Separator constructor creates a separator control for display in a OHV300 GUI
menu or form. Use the separator to insert white space or lines into a form to increase
separation between controls.
Format:
var <separator_name> =
new gui.Separator(height, style);