SourceForge.net Controls

Controls

Controls
Functions/Procedures
Subtopics

Controls

[proc]
add_item
( atom combo, sequence text )

Category: Controls

Used to add an item into a wxListBox, wxComboBox or wxChoice.


Controls

[proc]
clear_items
( atom control )

Category: Controls

Clears all items from a wxListBox, wxListCtrl, wxChoice or wxComboBox.


Controls

[proc]
delete_item
( atom control, integer item )

Category: Controls

Delete an item from a wxListBox, wxListCtrl, wxComboBox or wxChoice.


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 wxPanel 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

[func]
find_string
( atom control, sequence string )

Category: Controls

Returns the item number of the item in the list with the specified string.


Controls

[func]
get_handle
( atom this )

Category: Controls

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


Controls

[func]
get_label
( atom control )

Category: Controls

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.


Controls

[func]
get_list_string
( atom list, integer item )

Category: Controls

This function works for both wxListCtrl and wxListBox.


Controls

[func]
get_rect
( atom win )

Category: Controls

Returns the size and position of the control.


Controls

[func]
get_selection
( atom control )

Category: Controls

Used to get the index of the selected item of a wxListBox, wxListCtrl, wxComboBox or wxChoice. For the case of a wxListBox, the return is always a sequence, or an empty sequence, if nothing is selected. The other types of controls return -1 is no item is selected.


Controls

[func]
get_string_selection
( atom list )

Category: Controls

Used to get the text of the selected item of a wxListBox, wxComboBox or wxChoice.


Controls

[proc]
insert_item
( atom list, integer position, sequence text )

Category: Controls


Controls

[func]
is_visible
( atom window )

Category: Controls

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


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_selection
( atom control, object item )

Category: Controls

To unselect a wxListBox item, the item parameter should be a sequence: {item_number, -1}. To unselect a wxListCtrl item, item should be {item_number, 0}.


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_string
( atom control, integer item, sequence string )

Category: Controls

Set the string of an item in a wxListBox, wxComboBox or wxChoice.


Controls

[proc]
set_tip
( atom this, sequence tip )

Category: Controls

Sets the tooltip for an object derived from class wxWindow.