controls Module
Synopsis
Racket |
(require iup/controls) |
---|---|
CHICKEN | (require-extension iup-controls) |
CHICKEN 5 | (require-library iup) |
Support for IUP's controls. Initializes the IUP Controls library when loaded.
Standard Controls
(canvas [action (or/c symbol? string? #f) #f] #:<name> <value> ...) → ihandle?
Creates a canvas interface element with an action callback name. The action is triggered when the canvas needs to be redrawn.
(frame [child (or/c ihandle? #f) #f] #:<name> <value> ...) → ihandle?
Creates a frame element with a title around a given child.
(tabs [child ihandle?] ... #:<name> <value> ...) → ihandle?
Creates a tabs element with the given children.
(label [title (or/c string? #f) #f] #:<name> <value> ...) → ihandle?
Creates a label interface element, which displays a separator, a text or an image.
(link [url (or/c string? #f) #f] [title (or/c string? #f) #f] #:<name> <value> ...) → ihandle?
Creates a link interface element, which displays some text like a label and links to a URL.
(button [title (or/c string? #f) #f] [action (or/c symbol? string? #f) #f] #:<name> <value> ...) → 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] #:<name> <value> ...) → ihandle?
Creates a toggle button element with the given title and action callback name.
(spin #:<name> <value> ...) → 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) #f] #:<name> <value> ...) → ihandle?
Creates a box with a spin control around a given child.
(valuator [type string? "HORIZONTAL"] #:<name> <value> ...) → ihandle?
Creates a valuator control with the given orientation.
(textbox [action (or/c symbol? string? #f) #f] #:<name> <value> ...) → ihandle?
Creates an editable text field with a given action callback name.
(listbox [action (or/c symbol? string? #f) #f] #:<name> <value> ...) → ihandle?
Creates an interface element that displays a list of items with a given action callback name.
(treebox #:<name> <value> ...) → ihandle?
Creates a tree containing nodes of branches or leaves.
(calendar #:<name> <value> ...) → ihandle?
Creates a calendar control.
(date-picker #:<name> <value> ...) → ihandle?
Creates a date picker control.
(progress-bar #:<name> <value> ...) → ihandle?
Creates a progress bar control.
Extended Controls
(matrix [action (or/c symbol? string? #f) #f] [extended? boolean? #t] #:<name> <value> ...) → ihandle?
Creates a matrix of alphanumeric fields with a given action callback
name. If extended?
is not given or not false, extended
features will be enabled on the matrix control in case the underlying
library functionality is available.
(matrix-listbox #:<name> <value> ...) → ihandle?
Creates an interface element that displays a list of items, which is backed by a matrix of alphanumeric fields.
(cells #:<name> <value> ...) → ihandle?
Creates an element containing a grid of cells.
(color-bar #:<name> <value> ...) → ihandle?
Creates a color palette to enable a color selection from several samples.
(color-browser #:<name> <value> ...) → ihandle?
Creates an element for selecting a color.
(dial [type string? "HORIZONTAL"] #:<name> <value> ...) → ihandle?
Creates a dial for regulating a given angular variable with the given orientation.