Skip to content

guitexteditsliderctrl: members

26 implemented, 0 reserved. Entries are sorted by name.

guitexteditsliderctrl.allowedit: boolean

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Property of GuiTextEditSliderCtrl in the legacy GUI toolkit (gui.md§2, §3).

new GuiTextEditSliderCtrl("MyControl") { allowedit = 1; }

Specification: gui.md§3.

guitexteditsliderctrl.clear() -> number

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Empties a text edit, drop-down, tab bar, context menu, or text list.

List.clear();

Specification: gui.md§3.

guitexteditsliderctrl.deniedsound: string

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Property of GuiTextEditSliderCtrl in the legacy GUI toolkit (gui.md§2, §3).

new GuiTextEditSliderCtrl("MyControl") { deniedsound = 1; }

Specification: gui.md§3.

guitexteditsliderctrl.format: string

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Property of GuiTextEditSliderCtrl in the legacy GUI toolkit (gui.md§2, §3).

new GuiTextEditSliderCtrl("MyControl") { format = 1; }

Specification: gui.md§3.

guitexteditsliderctrl.getvalue() -> any

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

The value of a check box, radio button, slider, progress bar, number input, or the text of a text edit.

echo(Box.getValue());

Specification: gui.md§3.

guitexteditsliderctrl.historysize: number

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Property of GuiTextEditSliderCtrl in the legacy GUI toolkit (gui.md§2, §3).

new GuiTextEditSliderCtrl("MyControl") { historysize = 1; }

Specification: gui.md§3.

guitexteditsliderctrl.increment: number

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Property of GuiTextEditSliderCtrl in the legacy GUI toolkit (gui.md§2, §3).

new GuiTextEditSliderCtrl("MyControl") { increment = 1; }

Specification: gui.md§3.

guitexteditsliderctrl.inputtype: string

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

What the field is for: default, password (shows stars), email, url or numbers.

new GuiTextEditSliderCtrl("MyControl") { inputtype = "password"; }

Specification: gui.md§3.11.

guitexteditsliderctrl.maxchars: number

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

Longest text the player can type; 255 by default and 0 for no limit.

new GuiTextEditSliderCtrl("MyControl") { maxchars = 20; }

Specification: gui.md§3.11.

guitexteditsliderctrl.maxlength: number

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Most characters the player can type.

new GuiTextEditSliderCtrl("MyControl") { maxlength = 10; }

Specification: gui.md§3.

guitexteditsliderctrl.numbersonly: boolean

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Whether only digits can be typed.

new GuiTextEditSliderCtrl("MyControl") { numbersonly = true; }

Specification: gui.md§3.

guitexteditsliderctrl.onAction(value: number)

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Raised by the main action of a control: a button click, Enter in a text edit, a changed slider or check box value.

function MyControl.onAction() {
echo("onAction");
}

Specification: gui.md§2.5.

guitexteditsliderctrl.onTabComplete(shift: boolean)

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

Raised when Tab is pressed in a field with tabcomplete set, with its text; the focus stays.

function MyControl.onTabComplete(text) {
echo(text);
}

Specification: gui.md§3.13.

guitexteditsliderctrl.onTextEditStart()

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

Raised when the field gets the focus and the player can start typing.

function MyControl.onTextEditStart() {
echo("typing");
}

Specification: gui.md§3.13.

guitexteditsliderctrl.password: boolean

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Whether typed characters are hidden.

new GuiTextEditSliderCtrl("MyControl") { password = true; }

Specification: gui.md§3.

guitexteditsliderctrl.range: string

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Smallest and largest value as “min max”.

new GuiTextEditSliderCtrl("MyControl") { range = "0 100"; }

Specification: gui.md§3.

guitexteditsliderctrl.selectall() -> number

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Selects all the text of a text edit.

Edit.selectAll();

Specification: gui.md§3.

guitexteditsliderctrl.setselection(arg1: number, arg2: number) -> number

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Selects a range of the text of an edit.

Control.setselection(0, 0);

Specification: gui.md§3.

guitexteditsliderctrl.settext(text: string) -> number

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Replaces the text of a text edit; the caret goes to the end.

Edit.setText("hello");

Specification: gui.md§3.

guitexteditsliderctrl.setvalue(value: any) -> number

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Sets the value of a check box, radio button, or slider without raising onAction.

Box.setValue(true);

Specification: gui.md§3.

guitexteditsliderctrl.showcursor: boolean

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

Whether the caret is drawn while the field has the focus; true by default.

new GuiTextEditSliderCtrl("MyControl") { showcursor = false; }

Specification: gui.md§3.11.

guitexteditsliderctrl.stylesection: string

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

Name of the part of the GUI style the text color comes from; kept without GUI styles.

new GuiTextEditSliderCtrl("MyControl") { stylesection = "Clock"; }

Specification: gui.md§3.11.

guitexteditsliderctrl.tabcomplete: boolean

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Property of GuiTextEditSliderCtrl in the legacy GUI toolkit (gui.md§2, §3).

new GuiTextEditSliderCtrl("MyControl") { tabcomplete = 1; }

Specification: gui.md§3.

guitexteditsliderctrl.text: string

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

The text the control shows.

new GuiTextEditSliderCtrl("MyControl") { text = "Hello"; }

Specification: gui.md§3.

guitexteditsliderctrl.undo() -> number

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Brings back the text an edit had before its last change.

Control.undo();

Specification: gui.md§3.

guitexteditsliderctrl.value: number

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

The current value.

new GuiTextEditSliderCtrl("MyControl") { value = 1; }

Specification: gui.md§3.

Engine version 0.1.0. Built 2026-11-18.