Skip to contents

Text input box control with title and buttons.

Usage

gui_text_input_box(
  bounds,
  title,
  message,
  text,
  text_size,
  btn_text,
  btn_active,
  secret_view_active
)

Arguments

bounds

A rectangle.

title

A string.

message

A string.

text

A string (current text).

text_size

An integer (max text size).

btn_text

A string (button labels separated by semicolons).

btn_active

An integer (current active button).

secret_view_active

A logical.

Value

A list with result (integer), text (string), btn_active (integer), and secret_view_active (logical).

Examples

if (FALSE) {
gui_text_input_box(
  rectangle(100, 100, 400, 200), "Title", "Enter text:",
  "", 256L, "Ok;Cancel", 0L, FALSE
)
}