controls Module

Synopsis

Racket (require iup/controls)
CHICKEN (require-extension iup-controls)
Support for IUP's controls. Initializes the IUP Controls library when loaded.

Standard Controls

(canvas [action (or/c symbol? string? #f) #f] #: ...) → ihandle?

Creates a canvas interface element with an action callback name. The action is triggered when the canvas needs to be redrawn.

(frame [action (or/c symbol? string? #f) #f] #: ...) → ihandle?

Creates a frame element with a title around a given child.

(tabs [child ihandle?] ... #: ...) → ihandle?

Creates a tabs element with the given children.

(label [title (or/c string? #f) #f] #: ...) → ihandle?

Creates a label interface element, which displays a separator, a text or an image.

(button [title (or/c string? #f) #f] [action (or/c symbol? string? #f) #f] #: ...) → ihandle?

Creates a button element with the given title and action callback name.

(toggle [title (or/c string? #f) #f] [action (or/c symbol? string? #f) #f] #: ...) → ihandle?

Creates a toggle button element with the given title and action callback name.

(spin #: ...) → ihandle?

Create a spin control with two buttons, one with an up arrow and the other with a down arrow, to be used to increment and decrement values.

(spinbox [child (or/c ihandle? #f)] #: ...) → ihandle?

Creates a box with a spin control around a given child.

(valuator [type string? "HORIZONTAL"] #: ...) → ihandle?

Creates a valuator control with the given orientation.

(textbox [action (or/c symbol? string? #f) #f] #: ...) → ihandle?

Creates an editable text field with a given action callback name.

(listbox [action (or/c symbol? string? #f) #f] #: ...) → ihandle?

Creates an interface element that displays a list of items with a given action callback name.

(treebox #: ...) → ihandle?

Creates a tree containing nodes of branches or leaves.

(progress-bar #: ...) → ihandle?

Creates a progress bar control.

Extended Controls

(matrix [action (or/c symbol? string? #f) #f] #: ...) → ihandle?

Creates a matrix of alphanumeric fields with a given action callback name.

(cells #: ...) → ihandle?

Creates an element containing a grid of cells.

(color-bar #: ...) → ihandle?

Creates a color palette to enable a color selection from several samples.

(color-browser #: ...) → ihandle?

Creates an element for selecting a color.

(dial [type string? "HORIZONTAL"] #: ...) → ihandle?

Creates a dial for regulating a given angular variable with the given orientation.