Controls

Controls
Common widgets available in wxEuphoria

See also
Functions/Procedures
Subtopics

Controls

[func]
client_to_screen
( atom window, atom x, atom y )

Category: Controls

Converts from client to screen window coordinates.


Controls

[proc]
destroy
( atom this )

Category: Controls

You should use this instead of delete_instance to destroy any object that handles events (generally, any control or window).


Controls

[proc]
enable
( object control, integer bool )

Category: Controls

If bool is equal to 0, then the specified control will be frozen and changes will not be allowed to be made to it or any controls made upon it. If bool is equal to 1 then it reverses the effect. You can also use a sequence to enable or disable multiple windows at once with control.


Controls

[proc]
enable_tooltips
( integer enable )

Category: Controls

Enables or disables tooltips globally.

This procedure does not work under GTK2.12 or later.


Controls

[func]
get_children
( atom window )

Category: Controls

Returns a sequence of the window's children.


Controls

[func]
get_desktop_window
()

Category: Controls

Returns the desktop's window handle.


Controls

[func]
get_handle
( atom this )

Category: Controls

Returns: Object handle of the window

Returns the platform specific handle for objects derived from class wxWindow.


Controls

[func]
get_label
( atom control )

Category: Controls

Returns: Text label of the control

Returns the default label associated with the control. This would be the caption for a wxFrame or the label on a wxButton or the text of a wxStaticText. To get the text in a wxTextCtrl, you should use get_text_value.


Controls

[func]
get_parent
( atom window )

Category: Controls

Returns the parent of the window, or NULL if there is no parent.


Controls

[func]
get_rect
( atom win )

Category: Controls

Returns: {x, y, width, height}

Returns the size and position of the control.


Controls

[func]
hit_test
( atom window, atom x, atom y, atom flags )

Category: Controls

Hit-tests a wxListCtrl, wxTreeCtrl, or wxTextCtrl.

Note: flags is unused for wxTextCtrl.

See also:


Controls

[func]
is_visible
( atom window )

Category: Controls

Returns: Visible state of the window

Returns a 1 if the window is visible, or a zero if it is not. You can use show_window to toggle a window's visibility.


Controls

[proc]
move
( atom win, integer x, integer y )

Category: Controls

Moves the window to the given position.


Controls

[func]
screen_to_client
( atom window, atom x, atom y )

Category: Controls

Converts from screen to client window coordinates.


Controls

[proc]
set_cursor
( atom window, atom cursor )

Category: Controls

Changes the mouse cursor for the specified window to be the specified cursor.

See wxCursor for the available cursor shapes.


Controls

[proc]
set_focus
( atom window )

Category: Controls

Sets the cursor to the specified window as if it had clicked on it. If it is a text control, the blinking cursor will appear at the beginning of the control where text can be entered. If it is a control, then the top selection will be highlighted. If it is a wxTreeCtrl, then the root will be highlighted.


Controls

[proc]
set_size
( atom win, integer cx, integer cy )

Category: Controls

This sets the size of the control to the designated values. cx is the size from left to right and cy is the size from top to bottom.


Controls

[proc]
set_tip
( atom this, sequence tip )

Category: Controls

Sets the tooltip for an object derived from class wxWindow. To create multi-line tooltips, use \n under Linux/BSD, and \r\n under Windows.


Controls

[proc]
set_tooltip_delay
( integer msec )

Category: Controls

Set the delay (in milliseconds) after with tooltips display.

This procedure does not work under GTK2.12 or later.