Number Edit

The Number Edit View provides means to enter in a floating point number and access it from scripts.

The value has no effect on the ECU and is stored in the tabs file, not in the calibration as with options/tables/maps.

To access the value of a Number Edit View on the same tab / Group:

By ID (see the ID property of the Number Edit View):

var edit = window.findViewByID("my\_edit\_box");
print(edit.value);
edit.value = 10;

By Title (see the Title property of the Number Edit View):

var edit = window.findViewByTitle("My Edit Box");
print(edit.value);
edit.value = 10;

The ID method is slightly more robust than the title method in that any renaming of the window title will not break dependent scripts.

View Properties

Properties editable via the properties editor.

PropertyScript IDDescription
Editor Type editor_type Editor type (Double / Integer / CAN ID etc).
Value value Sets the value.
Title title The title of the window.
Script ID id The scripting ID of the window. Can be used as an alternative to the title for searching for windows from scripts.
Tool Tip tooltip Window tool tip.
Font Size font_size Size of the text.
Units Label units_label Optionally display units to the right of the editor.
Hexadecimal hex Use hexadecimal numeric base (integer editors only)
Hex Option hex_option Show toggleable hexadecimal option (unsigned integer editor)
Stretch stretch Stretch to fill view
Vertical Align valign Vertical alignment of the editor, if not using stretch mode
Text Align text_align Alignment of text in the editor