SourceForge.net wxGrid

wxGrid

wxGrid
This is a grid control that can be used to display tabular data. It also allows editing in place by users, similar to a spreadsheet.

Creation Parameters
It is important to remember that all wxGrid functions and procedures use zero-based references to all cells (0, 1, 2,...)
Functions/Procedures
Supertopics
Subtopics

wxGrid

[proc]
append_cols
( atom grid, integer cols )

Category: wxGrid

Appends cols columns to the grid.


wxGrid

[proc]
append_rows
( atom grid, integer rows )

Category: wxGrid

Appends rows rows to the grid.


wxGrid

[proc]
auotosize_row
( atom grid, atom row )

Category: wxGrid


wxGrid

[proc]
autosize_columns
( atom grid )

Category: wxGrid

Resizes each column to the minimum size required to display all the data in each column.


wxGrid

[proc]
autosize_grid
( atom grid )

Category: wxGrid


wxGrid

[proc]
autosize_rows
( atom grid )

Category: wxGrid


wxGrid

[func]
batch_count
( atom grid )

Category: wxGrid


wxGrid

[proc]
begin_batch
( atom grid )

Category: wxGrid

Stops updates of the grid until end_batch() is called. This is useful for when you need to modify a large number of cells.


wxGrid

[func]
can_drag_grid_col_move
( atom grid )

Category: wxGrid


wxGrid

[func]
can_drag_grid_col_size
( atom grid )

Category: wxGrid


wxGrid

[func]
can_drag_grid_row_size
( atom grid )

Category: wxGrid


wxGrid

[func]
can_drag_grid_size
( atom grid )

Category: wxGrid


wxGrid

[func]
can_enable_cell_control
( atom grid )

Category: wxGrid


wxGrid

[proc]
clear_grid
( atom grid )

Category: wxGrid

Deletes all data in the grid.


wxGrid

[proc]
clear_grid_selection
( atom grid )

Category: wxGrid


wxGrid

[proc]
delete_cols
( atom grid, integer pos, integer n, integer relabel )

Category: wxGrid

Deletes n columns from the grid at position pos. If relabel is TRUE, the function OnChangeLabels is called to give the application the opportunity to relabel.


wxGrid

[proc]
delete_rows
( atom grid, integer pos, integer n, integer relabel )

Category: wxGrid

Deletes n rows from the grid at position pos. If relabel is TRUE, the function OnChangeLabels is called to give the application the opportunity to relabel.


wxGrid

[proc]
enable_drag_grid_col_move
( atom grid, atom enable )

Category: wxGrid


wxGrid

[proc]
enable_drag_grid_col_size
( atom grid, atom enable )

Category: wxGrid


wxGrid

[proc]
enable_drag_grid_row_size
( atom grid, atom enable )

Category: wxGrid


wxGrid

[proc]
enable_drag_grid_size
( atom grid, integer enable )

Category: wxGrid


wxGrid

[proc]
enable_grid_cell_edit_control
( atom grid, atom enable )

Category: wxGrid


wxGrid

[proc]
enable_grid_editing
( atom grid, atom edit )

Category: wxGrid


wxGrid

[proc]
enable_grid_lines
( atom grid, atom enable )

Category: wxGrid


wxGrid

[proc]
end_batch
( atom grid )

Category: wxGrid

Resumes updating of the grid after a call to begin_batch(). This is useful for when you need to modify a large number of cells.


wxGrid

[proc]
force_refresh_grid
( atom grid )

Category: wxGrid

Causes immediate repainting of the grid. Use this instead of the usual refresh_window.


wxGrid

[func]
get_cell_alignment
( atom grid, atom row, atom col )

Category: wxGrid


wxGrid

[func]
get_cell_background_color
( atom grid, atom row, atom col )

Category: wxGrid


wxGrid

[func]
get_cell_editor
( atom grid, sequence cell )

Category: wxGrid

Returns the wxGridCellEditor for the cell


wxGrid

[func]
get_cell_editor_control
( atom grid, object editor )

Category: wxGrid

Returns the Control belonging to the wxGridCellEditor

If editor is a sequence, then it specifies the { row, column } of the wxGridCellEditor to be fetched. Otherwise, it is a wxGridCellEditor (see get_cell_editor).


wxGrid

[func]
get_cell_font
( atom grid, atom row, atom col )

Category: wxGrid


wxGrid

[func]
get_cell_text_color
( atom grid, atom row, atom col )

Category: wxGrid


wxGrid

[func]
get_cell_value
( atom grid, integer row, integer col )

Category: wxGrid

If the cell contains numeric data, you will need to use value(), since all values returned by get_cell_value() are strings (this is how wxGrid stores everything).


wxGrid

[func]
get_col_label
( atom grid, integer col )

Category: wxGrid

Returns a sequence which holds the information at the top of the column specified by 'column'. The first column is 0. The column index increases as it goes to the right.


wxGrid

[func]
get_col_label_size
( atom grid )

Category: wxGrid

Returns an integer which represents the height of the columns in pixels.


wxGrid

[func]
get_col_size
( atom grid, integer col)

Category: wxGrid


wxGrid

[func]
get_default_cell_background_color
( atom grid )

Category: wxGrid


wxGrid

[func]
get_default_cell_font
( atom grid )

Category: wxGrid


wxGrid

[func]
get_default_cell_text_colour
( atom grid )

Category: wxGrid


wxGrid

[func]
get_default_col_label_size
( atom grid )

Category: wxGrid


wxGrid

[func]
get_default_col_size
( atom grid )

Category: wxGrid


wxGrid

[func]
get_default_editor_for_cell
( atom grid, atom row, atom col )

Category: wxGrid


wxGrid

[func]
get_default_grid_editor
( atom grid )

Category: wxGrid


wxGrid

[func]
get_default_row_label_size
( atom grid )

Category: wxGrid


wxGrid

[func]
get_default_row_size
( atom grid )

Category: wxGrid


wxGrid

[func]
get_grid_batch_count
( atom grid )

Returns atom
Category: wxGrid


wxGrid

[func]
get_grid_label_background_color
( atom grid )

Category: wxGrid


wxGrid

[func]
get_grid_label_font
( atom grid )

Category: wxGrid


wxGrid

[func]
get_grid_label_text_color
( atom grid )

Category: wxGrid


wxGrid

[func]
get_grid_lines_enabled
( atom grid )

Category: wxGrid


wxGrid

[func]
get_grid_line_color
( atom grid )

Category: wxGrid


wxGrid

[func]
get_grid_row_label_align
( atom grid )

Category: wxGrid


wxGrid

[func]
get_grid_scroll_line
( atom grid )

Category: wxGrid


wxGrid

[func]
get_grid_selection_background
( atom grid )

Category: wxGrid


wxGrid

[func]
get_grid_selection_foreground
( atom grid )

Category: wxGrid


wxGrid

[func]
get_grid_view_width
( atom grid )

Category: wxGrid


wxGrid

[func]
get_row_label_size
( atom grid )

Category: wxGrid

Returns an integer which represents the width of the rows in pixels.


wxGrid

[func]
get_row_size
( atom grid, integer row)

Category: wxGrid


wxGrid

[func]
grid_cell_to_rect
( atom grid, atom row, atom col )

Category: wxGrid


wxGrid

[func]
grid_event_cell
( atom event )

Category: wxGrid

Call this inside of wxGrid event handlers to get the row and column where the event is taking place.


wxGrid

[func]
grid_pos
( atom grid )

Category: wxGrid


wxGrid

[func]
grid_size
( atom grid )

Category: wxGrid


wxGrid

[proc]
hide_cell_edit_control
( atom grid )

Category: wxGrid


wxGrid

[func]
insert_grid_cols
( atom grid, atom pos, atom num_cols )

Category: wxGrid


wxGrid

[func]
insert_grid_rows
( atom grid, atom pos, atom num_rows )

Category: wxGrid


wxGrid

[func]
is_cell_edit_control_enabled
( atom grid )

Category: wxGrid


wxGrid

[func]
is_cell_read_only
( atom grid, atom row, atom col )

Category: wxGrid


wxGrid

[func]
is_cell_visible
( atom grid, integer row, integer col, integer wholly_visible )

Category: wxGrid


wxGrid

[func]
is_current_cell_read_only
( atom grid )

Category: wxGrid


wxGrid

[func]
is_grid_editable
( atom grid )

Category: wxGrid


wxGrid

[func]
is_in_grid_selection
( atom grid, integer row, integer col )

Category: wxGrid


wxGrid

[func]
is_selection_for_grid
( atom grid )

Category: wxGrid


wxGrid

[func]
last_cell_visible
( atom grid )

Category: wxGrid


wxGrid

[proc]
make_cell_visible
( atom grid, atom row, atom col )

Category: wxGrid

Scrolls the grid if necessary to make the cell visible.


wxGrid

[func]
move_grid_cursor_down
( atom grid, atom expand_selection )

Category: wxGrid


wxGrid

[func]
move_grid_cursor_down_block
( atom grid, atom expand_selection )

Category: wxGrid


wxGrid

[func]
move_grid_cursor_left
( atom grid, atom expand_selection )

Category: wxGrid


wxGrid

[func]
move_grid_cursor_left_block
( atom grid, atom expand_selection )

Category: wxGrid


wxGrid

[func]
move_grid_cursor_right
( atom grid, atom expand_selection )

Category: wxGrid


wxGrid

[func]
move_grid_cursor_right_block
( atom grid, atom expand_selection )

Category: wxGrid


wxGrid

[func]
move_grid_cursor_up
( atom grid, atom expand_selection )

Category: wxGrid


wxGrid

[func]
move_grid_cursor_up_block
( atom grid, atom expand_selection )

Category: wxGrid


wxGrid

[func]
move_grid_page_down
( atom grid )

Category: wxGrid


wxGrid

[func]
move_grid_page_up
( atom grid )

Returns An integer which will be 1 if successful, 0 if unsuccessful.
Category: wxGrid


wxGrid

[proc]
save_grid_edit_control_value
( atom grid )

Category: wxGrid


wxGrid

[proc]
select_grid_all
( atom grid )

Category: wxGrid


wxGrid

[proc]
select_grid_block
( atom grid, integer top_row, integer left_col, integer bottom_row, integer right_col, integer add_to_selected )

Category: wxGrid


wxGrid

[proc]
select_grid_cell
( atom grid, atom row, atom col )

Category: wxGrid

Moves the cursor and selection to the cell specified.


wxGrid

[proc]
select_grid_col
( atom grid, integer col )

Category: wxGrid


wxGrid

[proc]
select_grid_row
( atom grid, integer row )

Category: wxGrid


wxGrid

[proc]
set_cell
( atom grid, atom row, atom col )

Category: wxGrid

Moves the cursor to the current cell being edited. Does not alter the selection (see select_grid_cell)


wxGrid

[proc]
set_cell_alignment
( atom grid, atom row, atom col, atom horz, atom vert )

Category: wxGrid

Set the vertical of horizontal alignment of a cell:


wxGrid

[proc]
set_cell_background_color
( atom grid, atom row, atom col, atom color )

Category: wxGrid


wxGrid

[proc]
set_cell_editor
( atom grid, atom row, atom col, integer ed_type, object data )

Category: wxGrid

Allows entries other than the standard text based editor to be used.

The only editors currently supported are:


wxGrid

[proc]
set_cell_font
( atom grid, atom row, atom col, atom font )

Category: wxGrid


wxGrid

[proc]
set_cell_readonly
( atom grid, atom row, atom col, integer readonly )

Category: wxGrid

Makes the cell read only if readonly is 1, or allows editing if readonly is 0.


wxGrid

[proc]
set_cell_text_color
( atom grid, atom row, atom col, atom color )

Category: wxGrid


wxGrid

[proc]
set_cell_value
( atom grid, object val, integer row, integer col )

Category: wxGrid

Sets the contents of a cell. If val is an atom, then the contents of the cell will be sprint(val).


wxGrid

[proc]
set_col_alignment
( atom grid, atom col, atom horz, atom vert )

Category: wxGrid

Set the vertical of horizontal alignment of a column:


wxGrid

[proc]
set_col_editor
( atom grid, atom col, integer ed_type, object data )

Category: wxGrid

Allows entries other than the standard text based editor to be used.

The only editors currently supported are:


wxGrid

[proc]
set_col_format_bool
( atom grid, atom col )

Category: wxGrid


wxGrid

[proc]
set_col_format_float
( atom grid, atom col, atom width, atom precision )

Category: wxGrid


wxGrid

[proc]
set_col_format_number
( atom grid, atom col )

Category: wxGrid


wxGrid

[proc]
set_col_label
( atom grid, integer col, sequence text )

Category: wxGrid

Changes the label of a column.


wxGrid

[proc]
set_col_label_align
( atom grid, atom horiz, atom vert )

Category: wxGrid

Use wxLEFT, wxRIGHT and wxTOP, wxBOTTOM (or zero for center)


wxGrid

[proc]
set_col_label_size
( atom grid, integer height )

Category: wxGrid


wxGrid

[proc]
set_col_pos
( atom grid, atom col_id, atom new_pos )

Category: wxGrid


wxGrid

[proc]
set_col_readonly
( atom grid, atom col, integer readonly )

Category: wxGrid

Sets the specified col in the specified grid to be read only if readonly is 1. Editing will be allowed if readonly is 0.


wxGrid

[func]
set_col_size
( atom grid, atom col, atom size )

Category: wxGrid

Change the size of a grid column. This function does not refresh the grid. If you are calling it outside of a BeginBatch EndBatch block you can use force_refresh_grid to see the changes


wxGrid

[proc]
set_default_cell_align
( atom grid, atom horiz, atom vert )

Category: wxGrid


wxGrid

[proc]
set_default_cell_background_color
( atom grid, atom color )

Category: wxGrid


wxGrid

[proc]
set_default_cell_font
( atom grid, atom font )

Category: wxGrid


wxGrid

[proc]
set_default_cell_text_color
( atom grid, atom color )

Category: wxGrid


wxGrid

[proc]
set_default_col_size
( atom grid, atom width, atom resize_existing )

Category: wxGrid


wxGrid

[proc]
set_default_grid_editor
( atom grid, atom editor )

Category: wxGrid

Sets the default cell editor control for the grid.


wxGrid

[proc]
set_default_row_size
( atom grid, atom width, atom resize_existing )

Category: wxGrid


wxGrid

[proc]
set_editor_choices
( atom grid, object cell, sequence choices )

Category: wxGrid

If cell is an integer, then it refers to an entire column, and the choices will be set for the column editor. If cell is a sequence, it refers to the cell by {row, column}, and that cell's editor will be set.


wxGrid

[proc]
set_grid_editable
( atom grid, integer editable )

Category: wxGrid

Makes the entire grid uneditable by the user is editable is 0, or allows editing if editable is 1.


wxGrid

[proc]
set_grid_label_background_color
( atom grid, atom color )

Category: wxGrid


wxGrid

[proc]
set_grid_label_font
( atom grid, atom font )

Category: wxGrid


wxGrid

[proc]
set_grid_label_text_color
( atom grid, atom color )

Category: wxGrid


wxGrid

[proc]
set_grid_line_color
( atom grid, atom colour )

Category: wxGrid

Change the color of the lines in the grid.


wxGrid

[proc]
set_grid_margins
( atom grid, atom extra_width, atom extra_height )

Category: wxGrid


wxGrid

[proc]
set_grid_scroll_line
( atom grid, sequence xy )

Category: wxGrid


wxGrid

[proc]
set_grid_selection_background
( atom grid, atom color )

Category: wxGrid


wxGrid

[proc]
set_grid_selection_foreground
( atom grid, atom color )

Returns pointer to wxColour
Category: wxGrid


wxGrid

[proc]
set_grid_selection_mode
( atom grid, integer mode )

Category: wxGrid


wxGrid

[proc]
set_grid_size
( atom grid, atom rows, atom cols )

Category: wxGrid

Adds or deletes columns or rows as required.


wxGrid

[proc]
set_row_label
( atom grid, integer row, sequence text )

Category: wxGrid

Changes the label of a row.


wxGrid

[proc]
set_row_label_align
( atom grid, atom horiz, atom vert )

Category: wxGrid

Use wxLEFT, wxRIGHT and wxTOP, wxBOTTOM (or zero for center)


wxGrid

[proc]
set_row_label_size
( atom grid, integer width )

Category: wxGrid

This sets the labels of rows in a wxGrid to be 'width' pixels high.


wxGrid

[proc]
set_row_size
( atom grid, atom row, atom height )

Category: wxGrid


wxGrid

[proc]
show_cell_edit_control
( atom grid )

Category: wxGrid