.TH wxGrid 3erl "wx 2.4.1" "wxWidgets team." "Erlang Module Definition" .SH NAME wxGrid \- Functions for wxGrid class .SH DESCRIPTION .LP \fIwxGrid\fR\& and its related classes are used for displaying and editing tabular data\&. They provide a rich set of features for display, editing, and interacting with a variety of data sources\&. For simple applications, and to help you get started, \fIwxGrid\fR\& is the only class you need to refer to directly\&. It will set up default instances of the other classes and manage them for you\&. For more complex applications you can derive your own classes for custom grid views, grid data tables, cell editors and renderers\&. The overview_grid has examples of simple and more complex applications, explains the relationship between the various grid classes and has a summary of the keyboard shortcuts and mouse functions provided by \fIwxGrid\fR\&\&. .LP A \fIwxGridTableBase\fR\& (not implemented in wx) class holds the actual data to be displayed by a \fIwxGrid\fR\& class\&. One or more \fIwxGrid\fR\& classes may act as a view for one table class\&. The default table class is called \fIwxGridStringTable\fR\& (not implemented in wx) and holds an array of strings\&. An instance of such a class is created by \fIcreateGrid/4\fR\&\&. .LP \fIwxGridCellRenderer\fR\& is the abstract base class for rendering contents in a cell\&. The following renderers are predefined: .LP The look of a cell can be further defined using \fIwxGridCellAttr\fR\&\&. An object of this type may be returned by \fIwxGridTableBase::GetAttr()\fR\& (not implemented in wx)\&. .LP \fIwxGridCellEditor\fR\& is the abstract base class for editing the value of a cell\&. The following editors are predefined: .LP Please see \fIwxGridEvent\fR\&, \fIwxGridSizeEvent\fR\& (not implemented in wx), \fIwxGridRangeSelectEvent\fR\& (not implemented in wx), and \fIwxGridEditorCreatedEvent\fR\& (not implemented in wx) for the documentation of all event types you can use with \fIwxGrid\fR\&\&. .LP See: Overview grid, \fIwxGridUpdateLocker\fR\& (not implemented in wx) .LP This class is derived (and can use functions) from: \fIwxScrolledWindow\fR\& \fIwxPanel\fR\& \fIwxWindow\fR\& \fIwxEvtHandler\fR\& .LP wxWidgets docs: wxGrid .SH DATA TYPES .nf \fBwxGrid()\fR\& = wx:wx_object() .br .fi .SH EXPORTS .LP .nf .B new() -> wxGrid() .br .fi .br .RS .LP Default constructor\&. .LP You must call \fICreate()\fR\& (not implemented in wx) to really create the grid window and also call \fIcreateGrid/4\fR\& or \fISetTable()\fR\& (not implemented in wx) or \fIAssignTable()\fR\& (not implemented in wx) to initialize its contents\&. .RE .LP .nf .B new(Parent, Id) -> wxGrid() .br .fi .br .RS .LP Types: .RS 3 Parent = wxWindow:wxWindow() .br Id = integer() .br .RE .RE .LP .nf .B new(Parent, Id, Options :: [Option]) -> wxGrid() .br .fi .br .RS .LP Types: .RS 3 Parent = wxWindow:wxWindow() .br Id = integer() .br Option = .br {pos, {X :: integer(), Y :: integer()}} | .br {size, {W :: integer(), H :: integer()}} | .br {style, integer()} .br .RE .RE .RS .LP Constructor creating the grid window\&. .LP You must call either \fIcreateGrid/4\fR\& or \fISetTable()\fR\& (not implemented in wx) or \fIAssignTable()\fR\& (not implemented in wx) to initialize the grid contents before using it\&. .RE .LP .nf .B destroy(This :: wxGrid()) -> ok .br .fi .br .RS .LP Destructor\&. .LP This will also destroy the associated grid table unless you passed a table object to the grid and specified that the grid should not take ownership of the table (see \fISetTable()\fR\& (not implemented in wx))\&. .RE .LP .nf .B appendCols(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B appendCols(This, Options :: [Option]) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = {numCols, integer()} | {updateLabels, boolean()} .br .RE .RE .RS .LP Appends one or more new columns to the right of the grid\&. .LP The \fIupdateLabels\fR\& argument is not used at present\&. If you are using a derived grid table class you will need to override \fIwxGridTableBase::AppendCols()\fR\& (not implemented in wx)\&. See \fIinsertCols/2\fR\& for further information\&. .LP Return: true on success or false if appending columns failed\&. .RE .LP .nf .B appendRows(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B appendRows(This, Options :: [Option]) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = {numRows, integer()} | {updateLabels, boolean()} .br .RE .RE .RS .LP Appends one or more new rows to the bottom of the grid\&. .LP The \fIupdateLabels\fR\& argument is not used at present\&. If you are using a derived grid table class you will need to override \fIwxGridTableBase::AppendRows()\fR\& (not implemented in wx)\&. See \fIinsertRows/2\fR\& for further information\&. .LP Return: true on success or false if appending rows failed\&. .RE .LP .nf .B autoSize(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Automatically sets the height and width of all rows and columns to fit their contents\&. .RE .LP .nf .B autoSizeColumn(This, Col) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br .RE .RE .LP .nf .B autoSizeColumn(This, Col, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br Option = {setAsMin, boolean()} .br .RE .RE .RS .LP Automatically sizes the column to fit its contents\&. .LP If \fIsetAsMin\fR\& is true the calculated width will also be set as the minimal width for the column\&. .RE .LP .nf .B autoSizeColumns(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B autoSizeColumns(This, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = {setAsMin, boolean()} .br .RE .RE .RS .LP Automatically sizes all columns to fit their contents\&. .LP If \fIsetAsMin\fR\& is true the calculated widths will also be set as the minimal widths for the columns\&. .RE .LP .nf .B autoSizeRow(This, Row) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = integer() .br .RE .RE .LP .nf .B autoSizeRow(This, Row, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = integer() .br Option = {setAsMin, boolean()} .br .RE .RE .RS .LP Automatically sizes the row to fit its contents\&. .LP If \fIsetAsMin\fR\& is true the calculated height will also be set as the minimal height for the row\&. .RE .LP .nf .B autoSizeRows(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B autoSizeRows(This, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = {setAsMin, boolean()} .br .RE .RE .RS .LP Automatically sizes all rows to fit their contents\&. .LP If \fIsetAsMin\fR\& is true the calculated heights will also be set as the minimal heights for the rows\&. .RE .LP .nf .B beginBatch(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Increments the grid\&'s batch count\&. .LP When the count is greater than zero repainting of the grid is suppressed\&. Each call to BeginBatch must be matched by a later call to \fIendBatch/1\fR\&\&. Code that does a lot of grid modification can be enclosed between \fIbeginBatch/1\fR\& and \fIendBatch/1\fR\& calls to avoid screen flicker\&. The final \fIendBatch/1\fR\& call will cause the grid to be repainted\&. .LP Notice that you should use \fIwxGridUpdateLocker\fR\& (not implemented in wx) which ensures that there is always a matching \fIendBatch/1\fR\& call for this \fIbeginBatch/1\fR\& if possible instead of calling this method directly\&. .RE .LP .nf .B blockToDeviceRect(This, TopLeft, BottomRight) -> .B {X :: integer(), .B Y :: integer(), .B W :: integer(), .B H :: integer()} .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br TopLeft = BottomRight = {R :: integer(), C :: integer()} .br .RE .RE .RS .LP Convert grid cell coordinates to grid window pixel coordinates\&. .LP This function returns the rectangle that encloses the block of cells limited by \fItopLeft\fR\& and \fIbottomRight\fR\& cell in device coords and clipped to the client size of the grid window\&. .LP Since: 3\&.1\&.3 Parameter \fIgridWindow\fR\& has been added\&. .LP See: \fIcellToRect/3\fR\& .RE .LP .nf .B canDragCell(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Return true if the dragging of cells is enabled or false otherwise\&. .RE .LP .nf .B canDragColMove(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns true if columns can be moved by dragging with the mouse\&. .LP Columns can be moved by dragging on their labels\&. .RE .LP .nf .B canDragGridRowEdges(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Return true if row edges inside the grid can be dragged to resize the rows\&. .LP See: \fIcanDragGridSize/1\fR\&, \fIcanDragRowSize/2\fR\& .LP Since: 3\&.1\&.4 .RE .LP .nf .B canDragColSize(This, Col) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br .RE .RE .RS .LP Returns true if the given column can be resized by dragging with the mouse\&. .LP This function returns true if resizing the columns interactively is globally enabled, i\&.e\&. if \fIdisableDragColSize/1\fR\& hadn\&'t been called, and if this column wasn\&'t explicitly marked as non-resizable with \fIDisableColResize()\fR\& (not implemented in wx)\&. .RE .LP .nf .B canDragRowSize(This, Row) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = integer() .br .RE .RE .RS .LP Returns true if the given row can be resized by dragging with the mouse\&. .LP This is the same as \fIcanDragColSize/2\fR\& but for rows\&. .RE .LP .nf .B canDragGridSize(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Return true if the dragging of grid lines to resize rows and columns is enabled or false otherwise\&. .RE .LP .nf .B canEnableCellControl(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns true if the in-place edit control for the current grid cell can be used and false otherwise\&. .LP This function always returns false for the read-only cells\&. .RE .LP .nf .B cellToRect(This, Coords) -> .B {X :: integer(), .B Y :: integer(), .B W :: integer(), .B H :: integer()} .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Coords = {R :: integer(), C :: integer()} .br .RE .RE .RS .LP Return the rectangle corresponding to the grid cell\&'s size and position in logical coordinates\&. .LP See: \fIblockToDeviceRect/3\fR\& .RE .LP .nf .B cellToRect(This, Row, Col) -> .B {X :: integer(), .B Y :: integer(), .B W :: integer(), .B H :: integer()} .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Return the rectangle corresponding to the grid cell\&'s size and position in logical coordinates\&. .LP See: \fIblockToDeviceRect/3\fR\& .RE .LP .nf .B clearGrid(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Clears all data in the underlying grid table and repaints the grid\&. .LP The table is not deleted by this function\&. If you are using a derived table class then you need to override \fIwxGridTableBase::Clear()\fR\& (not implemented in wx) for this function to have any effect\&. .RE .LP .nf .B clearSelection(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Deselects all cells that are currently selected\&. .RE .LP .nf .B createGrid(This, NumRows, NumCols) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br NumRows = NumCols = integer() .br .RE .RE .LP .nf .B createGrid(This, NumRows, NumCols, Options :: [Option]) -> .B boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br NumRows = NumCols = integer() .br Option = {selmode, wx:wx_enum()} .br .RE .RE .RS .LP Creates a grid with the specified initial number of rows and columns\&. .LP Call this directly after the grid constructor\&. When you use this function \fIwxGrid\fR\& will create and manage a simple table of string values for you\&. All of the grid data will be stored in memory\&. .LP For applications with more complex data types or relationships, or for dealing with very large datasets, you should derive your own grid table class and pass a table object to the grid with \fISetTable()\fR\& (not implemented in wx) or \fIAssignTable()\fR\& (not implemented in wx)\&. .RE .LP .nf .B deleteCols(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B deleteCols(This, Options :: [Option]) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = .br {pos, integer()} | .br {numCols, integer()} | .br {updateLabels, boolean()} .br .RE .RE .RS .LP Deletes one or more columns from a grid starting at the specified position\&. .LP The \fIupdateLabels\fR\& argument is not used at present\&. If you are using a derived grid table class you will need to override \fIwxGridTableBase::DeleteCols()\fR\& (not implemented in wx)\&. See \fIinsertCols/2\fR\& for further information\&. .LP Return: true on success or false if deleting columns failed\&. .RE .LP .nf .B deleteRows(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B deleteRows(This, Options :: [Option]) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = .br {pos, integer()} | .br {numRows, integer()} | .br {updateLabels, boolean()} .br .RE .RE .RS .LP Deletes one or more rows from a grid starting at the specified position\&. .LP The \fIupdateLabels\fR\& argument is not used at present\&. If you are using a derived grid table class you will need to override \fIwxGridTableBase::DeleteRows()\fR\& (not implemented in wx)\&. See \fIinsertRows/2\fR\& for further information\&. .LP Return: true on success or false if deleting rows failed\&. .RE .LP .nf .B disableCellEditControl(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Disables in-place editing of grid cells\&. .LP Equivalent to calling EnableCellEditControl(false)\&. .RE .LP .nf .B disableDragColSize(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Disables column sizing by dragging with the mouse\&. .LP Equivalent to passing false to \fIenableDragColSize/2\fR\&\&. .RE .LP .nf .B disableDragGridSize(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Disable mouse dragging of grid lines to resize rows and columns\&. .LP Equivalent to passing false to \fIenableDragGridSize/2\fR\& .RE .LP .nf .B disableDragRowSize(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Disables row sizing by dragging with the mouse\&. .LP Equivalent to passing false to \fIenableDragRowSize/2\fR\&\&. .RE .LP .nf .B enableCellEditControl(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B enableCellEditControl(This, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = {enable, boolean()} .br .RE .RE .RS .LP Enables or disables in-place editing of grid cell data\&. .LP Enabling in-place editing generates \fIwxEVT_GRID_EDITOR_SHOWN\fR\& and, if it isn\&'t vetoed by the application, shows the in-place editor which allows the user to change the cell value\&. .LP Disabling in-place editing does nothing if the in-place editor isn\&'t currently shown, otherwise the \fIwxEVT_GRID_EDITOR_HIDDEN\fR\& event is generated but, unlike the "shown" event, it can\&'t be vetoed and the in-place editor is dismissed unconditionally\&. .LP Note that it is an error to call this function if the current cell is read-only, use \fIcanEnableCellControl/1\fR\& to check for this precondition\&. .RE .LP .nf .B enableDragColSize(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B enableDragColSize(This, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = {enable, boolean()} .br .RE .RE .RS .LP Enables or disables column sizing by dragging with the mouse\&. .LP See: \fIDisableColResize()\fR\& (not implemented in wx) .RE .LP .nf .B enableDragGridSize(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B enableDragGridSize(This, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = {enable, boolean()} .br .RE .RE .RS .LP Enables or disables row and column resizing by dragging gridlines with the mouse\&. .RE .LP .nf .B enableDragRowSize(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B enableDragRowSize(This, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = {enable, boolean()} .br .RE .RE .RS .LP Enables or disables row sizing by dragging with the mouse\&. .LP See: \fIDisableRowResize()\fR\& (not implemented in wx) .RE .LP .nf .B enableEditing(This, Edit) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Edit = boolean() .br .RE .RE .RS .LP Makes the grid globally editable or read-only\&. .LP If the edit argument is false this function sets the whole grid as read-only\&. If the argument is true the grid is set to the default state where cells may be editable\&. In the default state you can set single grid cells and whole rows and columns to be editable or read-only via \fIwxGridCellAttr:setReadOnly/2\fR\&\&. For single cells you can also use the shortcut function \fIsetReadOnly/4\fR\&\&. .LP For more information about controlling grid cell attributes see the \fIwxGridCellAttr\fR\& class and the overview_grid\&. .RE .LP .nf .B enableGridLines(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B enableGridLines(This, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = {enable, boolean()} .br .RE .RE .RS .LP Turns the drawing of grid lines on or off\&. .RE .LP .nf .B endBatch(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Decrements the grid\&'s batch count\&. .LP When the count is greater than zero repainting of the grid is suppressed\&. Each previous call to \fIbeginBatch/1\fR\& must be matched by a later call to \fIendBatch/1\fR\&\&. Code that does a lot of grid modification can be enclosed between \fIbeginBatch/1\fR\& and \fIendBatch/1\fR\& calls to avoid screen flicker\&. The final \fIendBatch/1\fR\& will cause the grid to be repainted\&. .LP See: \fIwxGridUpdateLocker\fR\& (not implemented in wx) .RE .LP .nf .B fit(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Overridden \fIwxWindow\fR\& method\&. .RE .LP .nf .B forceRefresh(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Causes immediate repainting of the grid\&. .LP Use this instead of the usual \fIwxWindow:refresh/2\fR\&\&. .RE .LP .nf .B getBatchCount(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the number of times that \fIbeginBatch/1\fR\& has been called without (yet) matching calls to \fIendBatch/1\fR\&\&. .LP While the grid\&'s batch count is greater than zero the display will not be updated\&. .RE .LP .nf .B getCellAlignment(This, Row, Col) -> .B {Horiz :: integer(), Vert :: integer()} .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Sets the arguments to the horizontal and vertical text alignment values for the grid cell at the specified location\&. .LP Horizontal alignment will be one of \fIwxALIGN_LEFT\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_RIGHT\fR\&\&. .LP Vertical alignment will be one of \fIwxALIGN_TOP\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_BOTTOM\fR\&\&. .RE .LP .nf .B getCellBackgroundColour(This, Row, Col) -> wx:wx_colour4() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Returns the background colour of the cell at the specified location\&. .RE .LP .nf .B getCellEditor(This, Row, Col) -> .B wxGridCellEditor:wxGridCellEditor() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Returns a pointer to the editor for the cell at the specified location\&. .LP See \fIwxGridCellEditor\fR\& and the overview_grid for more information about cell editors and renderers\&. .LP The caller must call DecRef() on the returned pointer\&. .RE .LP .nf .B getCellFont(This, Row, Col) -> wxFont:wxFont() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Returns the font for text in the grid cell at the specified location\&. .RE .LP .nf .B getCellRenderer(This, Row, Col) -> .B wxGridCellRenderer:wxGridCellRenderer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Returns a pointer to the renderer for the grid cell at the specified location\&. .LP See \fIwxGridCellRenderer\fR\& and the overview_grid for more information about cell editors and renderers\&. .LP The caller must call DecRef() on the returned pointer\&. .RE .LP .nf .B getCellTextColour(This, Row, Col) -> wx:wx_colour4() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Returns the text colour for the grid cell at the specified location\&. .RE .LP .nf .B getCellValue(This, Coords) -> unicode:charlist() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Coords = {R :: integer(), C :: integer()} .br .RE .RE .RS .LP Returns the string contained in the cell at the specified location\&. .LP For simple applications where a grid object automatically uses a default grid table of string values you use this function together with \fIsetCellValue/4\fR\& to access cell values\&. For more complex applications where you have derived your own grid table class that contains various data types (e\&.g\&. numeric, boolean or user-defined custom types) then you only use this function for those cells that contain string values\&. .LP See \fIwxGridTableBase::CanGetValueAs()\fR\& (not implemented in wx) and the overview_grid for more information\&. .RE .LP .nf .B getCellValue(This, Row, Col) -> unicode:charlist() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Returns the string contained in the cell at the specified location\&. .LP For simple applications where a grid object automatically uses a default grid table of string values you use this function together with \fIsetCellValue/4\fR\& to access cell values\&. For more complex applications where you have derived your own grid table class that contains various data types (e\&.g\&. numeric, boolean or user-defined custom types) then you only use this function for those cells that contain string values\&. .LP See \fIwxGridTableBase::CanGetValueAs()\fR\& (not implemented in wx) and the overview_grid for more information\&. .RE .LP .nf .B getColLabelAlignment(This) -> .B {Horiz :: integer(), Vert :: integer()} .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Sets the arguments to the current column label alignment values\&. .LP Horizontal alignment will be one of \fIwxALIGN_LEFT\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_RIGHT\fR\&\&. .LP Vertical alignment will be one of \fIwxALIGN_TOP\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_BOTTOM\fR\&\&. .RE .LP .nf .B getColLabelSize(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the current height of the column labels\&. .RE .LP .nf .B getColLabelValue(This, Col) -> unicode:charlist() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br .RE .RE .RS .LP Returns the specified column label\&. .LP The default grid table class provides column labels of the form A,B\&.\&.\&.Z,AA,AB\&.\&.\&.ZZ,AAA\&.\&.\&. If you are using a custom grid table you can override \fIwxGridTableBase::GetColLabelValue()\fR\& (not implemented in wx) to provide your own labels\&. .RE .LP .nf .B getColMinimalAcceptableWidth(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the minimal width to which a column may be resized\&. .LP Use \fIsetColMinimalAcceptableWidth/2\fR\& to change this value globally or \fIsetColMinimalWidth/3\fR\& to do it for individual columns\&. .LP See: \fIgetRowMinimalAcceptableHeight/1\fR\& .RE .LP .nf .B getDefaultCellAlignment(This) -> .B {Horiz :: integer(), Vert :: integer()} .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the default cell alignment\&. .LP Horizontal alignment will be one of \fIwxALIGN_LEFT\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_RIGHT\fR\&\&. .LP Vertical alignment will be one of \fIwxALIGN_TOP\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_BOTTOM\fR\&\&. .LP See: \fIsetDefaultCellAlignment/3\fR\& .RE .LP .nf .B getDefaultCellBackgroundColour(This) -> wx:wx_colour4() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the current default background colour for grid cells\&. .RE .LP .nf .B getDefaultCellFont(This) -> wxFont:wxFont() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the current default font for grid cell text\&. .RE .LP .nf .B getDefaultCellTextColour(This) -> wx:wx_colour4() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the current default colour for grid cell text\&. .RE .LP .nf .B getDefaultColLabelSize(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the default height for column labels\&. .RE .LP .nf .B getDefaultColSize(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the current default width for grid columns\&. .RE .LP .nf .B getDefaultEditor(This) -> wxGridCellEditor:wxGridCellEditor() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns a pointer to the current default grid cell editor\&. .LP See \fIwxGridCellEditor\fR\& and the overview_grid for more information about cell editors and renderers\&. .RE .LP .nf .B getDefaultEditorForCell(This, C) -> .B wxGridCellEditor:wxGridCellEditor() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br C = {R :: integer(), C :: integer()} .br .RE .RE .RS .LP Returns the default editor for the specified cell\&. .LP The base class version returns the editor appropriate for the current cell type but this method may be overridden in the derived classes to use custom editors for some cells by default\&. .LP Notice that the same may be achieved in a usually simpler way by associating a custom editor with the given cell or cells\&. .LP The caller must call DecRef() on the returned pointer\&. .RE .LP .nf .B getDefaultEditorForCell(This, Row, Col) -> .B wxGridCellEditor:wxGridCellEditor() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Returns the default editor for the specified cell\&. .LP The base class version returns the editor appropriate for the current cell type but this method may be overridden in the derived classes to use custom editors for some cells by default\&. .LP Notice that the same may be achieved in a usually simpler way by associating a custom editor with the given cell or cells\&. .LP The caller must call DecRef() on the returned pointer\&. .RE .LP .nf .B getDefaultEditorForType(This, TypeName) -> .B wxGridCellEditor:wxGridCellEditor() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br TypeName = unicode:chardata() .br .RE .RE .RS .LP Returns the default editor for the cells containing values of the given type\&. .LP The base class version returns the editor which was associated with the specified \fItypeName\fR\& when it was registered \fIregisterDataType/4\fR\& but this function may be overridden to return something different\&. This allows overriding an editor used for one of the standard types\&. .LP The caller must call DecRef() on the returned pointer\&. .RE .LP .nf .B getDefaultRenderer(This) -> .B wxGridCellRenderer:wxGridCellRenderer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns a pointer to the current default grid cell renderer\&. .LP See \fIwxGridCellRenderer\fR\& and the overview_grid for more information about cell editors and renderers\&. .LP The caller must call DecRef() on the returned pointer\&. .RE .LP .nf .B getDefaultRendererForCell(This, Row, Col) -> .B wxGridCellRenderer:wxGridCellRenderer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Returns the default renderer for the given cell\&. .LP The base class version returns the renderer appropriate for the current cell type but this method may be overridden in the derived classes to use custom renderers for some cells by default\&. .LP The caller must call DecRef() on the returned pointer\&. .RE .LP .nf .B getDefaultRendererForType(This, TypeName) -> .B wxGridCellRenderer:wxGridCellRenderer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br TypeName = unicode:chardata() .br .RE .RE .RS .LP Returns the default renderer for the cell containing values of the given type\&. .LP See: \fIgetDefaultEditorForType/2\fR\& .RE .LP .nf .B getDefaultRowLabelSize(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the default width for the row labels\&. .RE .LP .nf .B getDefaultRowSize(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the current default height for grid rows\&. .RE .LP .nf .B getGridCursorCol(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the current grid cell column position\&. .LP See: \fIGetGridCursorCoords()\fR\& (not implemented in wx) .RE .LP .nf .B getGridCursorRow(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the current grid cell row position\&. .LP See: \fIGetGridCursorCoords()\fR\& (not implemented in wx) .RE .LP .nf .B getGridLineColour(This) -> wx:wx_colour4() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the colour used for grid lines\&. .LP See: \fIGetDefaultGridLinePen()\fR\& (not implemented in wx) .RE .LP .nf .B gridLinesEnabled(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns true if drawing of grid lines is turned on, false otherwise\&. .RE .LP .nf .B getLabelBackgroundColour(This) -> wx:wx_colour4() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the colour used for the background of row and column labels\&. .RE .LP .nf .B getLabelFont(This) -> wxFont:wxFont() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the font used for row and column labels\&. .RE .LP .nf .B getLabelTextColour(This) -> wx:wx_colour4() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the colour used for row and column label text\&. .RE .LP .nf .B getNumberCols(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the total number of grid columns\&. .LP This is the same as the number of columns in the underlying grid table\&. .RE .LP .nf .B getNumberRows(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the total number of grid rows\&. .LP This is the same as the number of rows in the underlying grid table\&. .RE .LP .nf .B getOrCreateCellAttr(This, Row, Col) -> .B wxGridCellAttr:wxGridCellAttr() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Returns the attribute for the given cell creating one if necessary\&. .LP If the cell already has an attribute, it is returned\&. Otherwise a new attribute is created, associated with the cell and returned\&. In any case the caller must call DecRef() on the returned pointer\&. .LP Prefer to use \fIGetOrCreateCellAttrPtr()\fR\& (not implemented in wx) to avoid the need to call DecRef() on the returned pointer\&. .LP This function may only be called if \fICanHaveAttributes()\fR\& (not implemented in wx) returns true\&. .RE .LP .nf .B getRowMinimalAcceptableHeight(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the minimal size to which rows can be resized\&. .LP Use \fIsetRowMinimalAcceptableHeight/2\fR\& to change this value globally or \fIsetRowMinimalHeight/3\fR\& to do it for individual cells\&. .LP See: \fIgetColMinimalAcceptableWidth/1\fR\& .RE .LP .nf .B getRowLabelAlignment(This) -> .B {Horiz :: integer(), Vert :: integer()} .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the alignment used for row labels\&. .LP Horizontal alignment will be one of \fIwxALIGN_LEFT\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_RIGHT\fR\&\&. .LP Vertical alignment will be one of \fIwxALIGN_TOP\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_BOTTOM\fR\&\&. .RE .LP .nf .B getRowLabelSize(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the current width of the row labels\&. .RE .LP .nf .B getRowLabelValue(This, Row) -> unicode:charlist() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = integer() .br .RE .RE .RS .LP Returns the specified row label\&. .LP The default grid table class provides numeric row labels\&. If you are using a custom grid table you can override \fIwxGridTableBase::GetRowLabelValue()\fR\& (not implemented in wx) to provide your own labels\&. .RE .LP .nf .B getRowSize(This, Row) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = integer() .br .RE .RE .RS .LP Returns the height of the specified row\&. .RE .LP .nf .B getScrollLineX(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the number of pixels per horizontal scroll increment\&. .LP The default is 15\&. .LP See: \fIgetScrollLineY/1\fR\&, \fIsetScrollLineX/2\fR\&, \fIsetScrollLineY/2\fR\& .RE .LP .nf .B getScrollLineY(This) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the number of pixels per vertical scroll increment\&. .LP The default is 15\&. .LP See: \fIgetScrollLineX/1\fR\&, \fIsetScrollLineX/2\fR\&, \fIsetScrollLineY/2\fR\& .RE .LP .nf .B getSelectedCells(This) -> [{R :: integer(), C :: integer()}] .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns an array of individually selected cells\&. .LP Notice that this array does \fInot\fR\& contain all the selected cells in general as it doesn\&'t include the cells selected as part of column, row or block selection\&. You must use this method, \fIgetSelectedCols/1\fR\&, \fIgetSelectedRows/1\fR\& and \fIgetSelectionBlockTopLeft/1\fR\& and \fIgetSelectionBlockBottomRight/1\fR\& methods to obtain the entire selection in general\&. .LP Please notice this behaviour is by design and is needed in order to support grids of arbitrary size (when an entire column is selected in a grid with a million of columns, we don\&'t want to create an array with a million of entries in this function, instead it returns an empty array and \fIgetSelectedCols/1\fR\& returns an array containing one element)\&. .LP The function can be slow for the big grids, use \fIGetSelectedBlocks()\fR\& (not implemented in wx) in the new code\&. .RE .LP .nf .B getSelectedCols(This) -> [integer()] .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns an array of selected columns\&. .LP Please notice that this method alone is not sufficient to find all the selected columns as it contains only the columns which were individually selected but not those being part of the block selection or being selected in virtue of all of their cells being selected individually, please see \fIgetSelectedCells/1\fR\& for more details\&. .LP The function can be slow for the big grids, use \fIGetSelectedBlocks()\fR\& (not implemented in wx) in the new code\&. .RE .LP .nf .B getSelectedRows(This) -> [integer()] .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns an array of selected rows\&. .LP Please notice that this method alone is not sufficient to find all the selected rows as it contains only the rows which were individually selected but not those being part of the block selection or being selected in virtue of all of their cells being selected individually, please see \fIgetSelectedCells/1\fR\& for more details\&. .LP The function can be slow for the big grids, use \fIGetSelectedBlocks()\fR\& (not implemented in wx) in the new code\&. .RE .LP .nf .B getSelectionBackground(This) -> wx:wx_colour4() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the colour used for drawing the selection background\&. .RE .LP .nf .B getSelectionBlockTopLeft(This) -> .B [{R :: integer(), C :: integer()}] .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns an array of the top left corners of blocks of selected cells\&. .LP Please see \fIgetSelectedCells/1\fR\& for more information about the selection representation in \fIwxGrid\fR\&\&. .LP The function can be slow for the big grids, use \fIGetSelectedBlocks()\fR\& (not implemented in wx) in the new code\&. .LP See: \fIgetSelectionBlockBottomRight/1\fR\& .RE .LP .nf .B getSelectionBlockBottomRight(This) -> .B [{R :: integer(), C :: integer()}] .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns an array of the bottom right corners of blocks of selected cells\&. .LP Please see \fIgetSelectedCells/1\fR\& for more information about the selection representation in \fIwxGrid\fR\&\&. .LP The function can be slow for the big grids, use \fIGetSelectedBlocks()\fR\& (not implemented in wx) in the new code\&. .LP See: \fIgetSelectionBlockTopLeft/1\fR\& .RE .LP .nf .B getSelectionForeground(This) -> wx:wx_colour4() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns the colour used for drawing the selection foreground\&. .RE .LP .nf .B getGridWindow(This) -> wxWindow:wxWindow() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Return the main grid window containing the grid cells\&. .LP This window is always shown\&. .RE .LP .nf .B getGridRowLabelWindow(This) -> wxWindow:wxWindow() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Return the row labels window\&. .LP This window is not shown if the row labels were hidden using \fIHideRowLabels()\fR\& (not implemented in wx)\&. .RE .LP .nf .B getGridColLabelWindow(This) -> wxWindow:wxWindow() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Return the column labels window\&. .LP This window is not shown if the columns labels were hidden using \fIHideColLabels()\fR\& (not implemented in wx)\&. .LP Depending on whether \fIUseNativeColHeader()\fR\& (not implemented in wx) was called or not this can be either a \fIwxHeaderCtrl\fR\& (not implemented in wx) or a plain \fIwxWindow\fR\&\&. This function returns a valid window pointer in either case but in the former case you can also use \fIGetGridColHeader()\fR\& (not implemented in wx) to access it if you need wxHeaderCtrl-specific functionality\&. .RE .LP .nf .B getGridCornerLabelWindow(This) -> wxWindow:wxWindow() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Return the window in the top left grid corner\&. .LP This window is shown only of both columns and row labels are shown and normally doesn\&'t contain anything\&. Clicking on it is handled by \fIwxGrid\fR\& however and can be used to select the entire grid\&. .RE .LP .nf .B hideCellEditControl(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Hides the in-place cell edit control\&. .RE .LP .nf .B insertCols(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B insertCols(This, Options :: [Option]) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = .br {pos, integer()} | .br {numCols, integer()} | .br {updateLabels, boolean()} .br .RE .RE .RS .LP Inserts one or more new columns into a grid with the first new column at the specified position\&. .LP Notice that inserting the columns in the grid requires grid table cooperation: when this method is called, grid object begins by requesting the underlying grid table to insert new columns\&. If this is successful the table notifies the grid and the grid updates the display\&. For a default grid (one where you have called \fIcreateGrid/4\fR\&) this process is automatic\&. If you are using a custom grid table (specified with \fISetTable()\fR\& (not implemented in wx) or \fIAssignTable()\fR\& (not implemented in wx)) then you must override \fIwxGridTableBase::InsertCols()\fR\& (not implemented in wx) in your derived table class\&. .LP Return: true if the columns were successfully inserted, false if an error occurred (most likely the table couldn\&'t be updated)\&. .RE .LP .nf .B insertRows(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .LP .nf .B insertRows(This, Options :: [Option]) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Option = .br {pos, integer()} | .br {numRows, integer()} | .br {updateLabels, boolean()} .br .RE .RE .RS .LP Inserts one or more new rows into a grid with the first new row at the specified position\&. .LP Notice that you must implement \fIwxGridTableBase::InsertRows()\fR\& (not implemented in wx) if you use a grid with a custom table, please see \fIinsertCols/2\fR\& for more information\&. .LP Return: true if the rows were successfully inserted, false if an error occurred (most likely the table couldn\&'t be updated)\&. .RE .LP .nf .B isCellEditControlEnabled(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns true if the in-place edit control is currently enabled\&. .RE .LP .nf .B isCurrentCellReadOnly(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns true if the current cell is read-only\&. .LP See: \fIsetReadOnly/4\fR\&, \fIisReadOnly/3\fR\& .RE .LP .nf .B isEditable(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns false if the whole grid has been set as read-only or true otherwise\&. .LP See \fIenableEditing/2\fR\& for more information about controlling the editing status of grid cells\&. .RE .LP .nf .B isInSelection(This, Coords) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Coords = {R :: integer(), C :: integer()} .br .RE .RE .RS .LP Returns true if the given cell is selected\&. .RE .LP .nf .B isInSelection(This, Row, Col) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Returns true if the given cell is selected\&. .RE .LP .nf .B isReadOnly(This, Row, Col) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Returns true if the cell at the specified location can\&'t be edited\&. .LP See: \fIsetReadOnly/4\fR\&, \fIisCurrentCellReadOnly/1\fR\& .RE .LP .nf .B isSelection(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Returns true if there are currently any selected cells, rows, columns or blocks\&. .RE .LP .nf .B isVisible(This, Coords) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Coords = {R :: integer(), C :: integer()} .br .RE .RE .LP .nf .B isVisible(This, Row, Col) -> boolean() .br .fi .br .nf .B isVisible(This, Coords, Col :: [Option]) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Coords = {R :: integer(), C :: integer()} .br Option = {wholeCellVisible, boolean()} .br .RE .RE .RS .LP Returns true if a cell is either entirely or at least partially visible in the grid window\&. .LP By default, the cell must be entirely visible for this function to return true but if \fIwholeCellVisible\fR\& is false, the function returns true even if the cell is only partially visible\&. .RE .LP .nf .B isVisible(This, Row, Col, Options :: [Option]) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br Option = {wholeCellVisible, boolean()} .br .RE .RE .RS .LP Returns true if a cell is either entirely or at least partially visible in the grid window\&. .LP By default, the cell must be entirely visible for this function to return true but if \fIwholeCellVisible\fR\& is false, the function returns true even if the cell is only partially visible\&. .RE .LP .nf .B makeCellVisible(This, Coords) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Coords = {R :: integer(), C :: integer()} .br .RE .RE .RS .LP Brings the specified cell into the visible grid cell area with minimal scrolling\&. .LP Does nothing if the cell is already visible\&. .RE .LP .nf .B makeCellVisible(This, Row, Col) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Brings the specified cell into the visible grid cell area with minimal scrolling\&. .LP Does nothing if the cell is already visible\&. .RE .LP .nf .B moveCursorDown(This, ExpandSelection) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br ExpandSelection = boolean() .br .RE .RE .RS .LP Moves the grid cursor down by one row\&. .LP If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false\&. .RE .LP .nf .B moveCursorLeft(This, ExpandSelection) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br ExpandSelection = boolean() .br .RE .RE .RS .LP Moves the grid cursor left by one column\&. .LP If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false\&. .RE .LP .nf .B moveCursorRight(This, ExpandSelection) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br ExpandSelection = boolean() .br .RE .RE .RS .LP Moves the grid cursor right by one column\&. .LP If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false\&. .RE .LP .nf .B moveCursorUp(This, ExpandSelection) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br ExpandSelection = boolean() .br .RE .RE .RS .LP Moves the grid cursor up by one row\&. .LP If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false\&. .RE .LP .nf .B moveCursorDownBlock(This, ExpandSelection) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br ExpandSelection = boolean() .br .RE .RE .RS .LP Moves the grid cursor down in the current column such that it skips to the beginning or end of a block of non-empty cells\&. .LP If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false\&. .RE .LP .nf .B moveCursorLeftBlock(This, ExpandSelection) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br ExpandSelection = boolean() .br .RE .RE .RS .LP Moves the grid cursor left in the current row such that it skips to the beginning or end of a block of non-empty cells\&. .LP If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false\&. .RE .LP .nf .B moveCursorRightBlock(This, ExpandSelection) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br ExpandSelection = boolean() .br .RE .RE .RS .LP Moves the grid cursor right in the current row such that it skips to the beginning or end of a block of non-empty cells\&. .LP If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false\&. .RE .LP .nf .B moveCursorUpBlock(This, ExpandSelection) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br ExpandSelection = boolean() .br .RE .RE .RS .LP Moves the grid cursor up in the current column such that it skips to the beginning or end of a block of non-empty cells\&. .LP If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false\&. .RE .LP .nf .B movePageDown(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Moves the grid cursor down by some number of rows so that the previous bottom visible row becomes the top visible row\&. .RE .LP .nf .B movePageUp(This) -> boolean() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Moves the grid cursor up by some number of rows so that the previous top visible row becomes the bottom visible row\&. .RE .LP .nf .B registerDataType(This, TypeName, Renderer, Editor) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br TypeName = unicode:chardata() .br Renderer = wxGridCellRenderer:wxGridCellRenderer() .br Editor = wxGridCellEditor:wxGridCellEditor() .br .RE .RE .RS .LP Register a new data type\&. .LP The data types allow to naturally associate specific renderers and editors to the cells containing values of the given type\&. For example, the grid automatically registers a data type with the name \fIwxGRID_VALUE_STRING\fR\& which uses \fIwxGridCellStringRenderer\fR\& and \fIwxGridCellTextEditor\fR\& as its renderer and editor respectively - this is the data type used by all the cells of the default \fIwxGridStringTable\fR\& (not implemented in wx), so this renderer and editor are used by default for all grid cells\&. .LP However if a custom table returns \fIwxGRID_VALUE_BOOL\fR\& from its \fIwxGridTableBase::GetTypeName()\fR\& (not implemented in wx) method, then \fIwxGridCellBoolRenderer\fR\& and \fIwxGridCellBoolEditor\fR\& are used for it because the grid also registers a boolean data type with this name\&. .LP And as this mechanism is completely generic, you may register your own data types using your own custom renderers and editors\&. Just remember that the table must identify a cell as being of the given type for them to be used for this cell\&. .RE .LP .nf .B saveEditControlValue(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Sets the value of the current grid cell to the current in-place edit control value\&. .LP This is called automatically when the grid cursor moves from the current cell to a new cell\&. It is also a good idea to call this function when closing a grid since any edits to the final cell location will not be saved otherwise\&. .RE .LP .nf .B selectAll(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Selects all cells in the grid\&. .RE .LP .nf .B selectBlock(This, TopLeft, BottomRight) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br TopLeft = BottomRight = {R :: integer(), C :: integer()} .br .RE .RE .LP .nf .B selectBlock(This, TopLeft, BottomRight, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br TopLeft = BottomRight = {R :: integer(), C :: integer()} .br Option = {addToSelected, boolean()} .br .RE .RE .RS .LP Selects a rectangular block of cells\&. .LP If \fIaddToSelected\fR\& is false then any existing selection will be deselected; if true the column will be added to the existing selection\&. .RE .LP .nf .B selectBlock(This, TopRow, LeftCol, BottomRow, RightCol) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br TopRow = LeftCol = BottomRow = RightCol = integer() .br .RE .RE .LP .nf .B selectBlock(This, TopRow, LeftCol, BottomRow, RightCol, .B Options :: [Option]) -> .B ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br TopRow = LeftCol = BottomRow = RightCol = integer() .br Option = {addToSelected, boolean()} .br .RE .RE .RS .LP Selects a rectangular block of cells\&. .LP If \fIaddToSelected\fR\& is false then any existing selection will be deselected; if true the column will be added to the existing selection\&. .RE .LP .nf .B selectCol(This, Col) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br .RE .RE .LP .nf .B selectCol(This, Col, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br Option = {addToSelected, boolean()} .br .RE .RE .RS .LP Selects the specified column\&. .LP If \fIaddToSelected\fR\& is false then any existing selection will be deselected; if true the column will be added to the existing selection\&. .LP This method won\&'t select anything if the current selection mode is wxGridSelectRows\&. .RE .LP .nf .B selectRow(This, Row) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = integer() .br .RE .RE .LP .nf .B selectRow(This, Row, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = integer() .br Option = {addToSelected, boolean()} .br .RE .RE .RS .LP Selects the specified row\&. .LP If \fIaddToSelected\fR\& is false then any existing selection will be deselected; if true the row will be added to the existing selection\&. .LP This method won\&'t select anything if the current selection mode is wxGridSelectColumns\&. .RE .LP .nf .B setCellAlignment(This, Row, Col, Horiz, Vert) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = Horiz = Vert = integer() .br .RE .RE .RS .LP Sets the horizontal and vertical alignment for grid cell text at the specified location\&. .LP Horizontal alignment should be one of \fIwxALIGN_LEFT\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_RIGHT\fR\&\&. .LP Vertical alignment should be one of \fIwxALIGN_TOP\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_BOTTOM\fR\&\&. .RE .LP .nf .B setCellBackgroundColour(This, Row, Col, Colour) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br Colour = wx:wx_colour() .br .RE .RE .RS .LP Set the background colour for the given cell or all cells by default\&. .RE .LP .nf .B setCellEditor(This, Row, Col, Editor) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br Editor = wxGridCellEditor:wxGridCellEditor() .br .RE .RE .RS .LP Sets the editor for the grid cell at the specified location\&. .LP The grid will take ownership of the pointer\&. .LP See \fIwxGridCellEditor\fR\& and the overview_grid for more information about cell editors and renderers\&. .RE .LP .nf .B setCellFont(This, Row, Col, Font) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br Font = wxFont:wxFont() .br .RE .RE .RS .LP Sets the font for text in the grid cell at the specified location\&. .RE .LP .nf .B setCellRenderer(This, Row, Col, Renderer) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br Renderer = wxGridCellRenderer:wxGridCellRenderer() .br .RE .RE .RS .LP Sets the renderer for the grid cell at the specified location\&. .LP The grid will take ownership of the pointer\&. .LP See \fIwxGridCellRenderer\fR\& and the overview_grid for more information about cell editors and renderers\&. .RE .LP .nf .B setCellTextColour(This, Row, Col, Colour) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br Colour = wx:wx_colour() .br .RE .RE .RS .LP Sets the text colour for the given cell\&. .RE .LP .nf .B setCellValue(This, Coords, S) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Coords = {R :: integer(), C :: integer()} .br S = unicode:chardata() .br .RE .RE .RS .LP Sets the string value for the cell at the specified location\&. .LP For simple applications where a grid object automatically uses a default grid table of string values you use this function together with \fIgetCellValue/3\fR\& to access cell values\&. For more complex applications where you have derived your own grid table class that contains various data types (e\&.g\&. numeric, boolean or user-defined custom types) then you only use this function for those cells that contain string values\&. .LP See \fIwxGridTableBase::CanSetValueAs()\fR\& (not implemented in wx) and the overview_grid for more information\&. .RE .LP .nf .B setCellValue(This, Row, Col, S) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br S = unicode:chardata() .br .RE .RE .RS .LP Sets the string value for the cell at the specified location\&. .LP For simple applications where a grid object automatically uses a default grid table of string values you use this function together with \fIgetCellValue/3\fR\& to access cell values\&. For more complex applications where you have derived your own grid table class that contains various data types (e\&.g\&. numeric, boolean or user-defined custom types) then you only use this function for those cells that contain string values\&. .LP See \fIwxGridTableBase::CanSetValueAs()\fR\& (not implemented in wx) and the overview_grid for more information\&. .RE .LP .nf .B setColAttr(This, Col, Attr) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br Attr = wxGridCellAttr:wxGridCellAttr() .br .RE .RE .RS .LP Sets the cell attributes for all cells in the specified column\&. .LP For more information about controlling grid cell attributes see the \fIwxGridCellAttr\fR\& cell attribute class and the overview_grid\&. .RE .LP .nf .B setColFormatBool(This, Col) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br .RE .RE .RS .LP Sets the specified column to display boolean values\&. .LP See: \fIsetColFormatCustom/3\fR\& .RE .LP .nf .B setColFormatNumber(This, Col) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br .RE .RE .RS .LP Sets the specified column to display integer values\&. .LP See: \fIsetColFormatCustom/3\fR\& .RE .LP .nf .B setColFormatFloat(This, Col) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br .RE .RE .LP .nf .B setColFormatFloat(This, Col, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br Option = {width, integer()} | {precision, integer()} .br .RE .RE .RS .LP Sets the specified column to display floating point values with the given width and precision\&. .LP See: \fIsetColFormatCustom/3\fR\& .RE .LP .nf .B setColFormatCustom(This, Col, TypeName) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br TypeName = unicode:chardata() .br .RE .RE .RS .LP Sets the specified column to display data in a custom format\&. .LP This method provides an alternative to defining a custom grid table which would return \fItypeName\fR\& from its GetTypeName() method for the cells in this column: while it doesn\&'t really change the type of the cells in this column, it does associate the renderer and editor used for the cells of the specified type with them\&. .LP See the overview_grid for more information on working with custom data types\&. .RE .LP .nf .B setColLabelAlignment(This, Horiz, Vert) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Horiz = Vert = integer() .br .RE .RE .RS .LP Sets the horizontal and vertical alignment of column label text\&. .LP Horizontal alignment should be one of \fIwxALIGN_LEFT\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_RIGHT\fR\&\&. Vertical alignment should be one of \fIwxALIGN_TOP\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_BOTTOM\fR\&\&. .RE .LP .nf .B setColLabelSize(This, Height) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Height = integer() .br .RE .RE .RS .LP Sets the height of the column labels\&. .LP If \fIheight\fR\& equals to \fIwxGRID_AUTOSIZE\fR\& then height is calculated automatically so that no label is truncated\&. Note that this could be slow for a large table\&. .RE .LP .nf .B setColLabelValue(This, Col, Value) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = integer() .br Value = unicode:chardata() .br .RE .RE .RS .LP Set the value for the given column label\&. .LP If you are using a custom grid table you must override \fIwxGridTableBase::SetColLabelValue()\fR\& (not implemented in wx) for this to have any effect\&. .RE .LP .nf .B setColMinimalWidth(This, Col, Width) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = Width = integer() .br .RE .RE .RS .LP Sets the minimal \fIwidth\fR\& for the specified column \fIcol\fR\&\&. .LP It is usually best to call this method during grid creation as calling it later will not resize the column to the given minimal width even if it is currently narrower than it\&. .LP \fIwidth\fR\& must be greater than the minimal acceptable column width as returned by \fIgetColMinimalAcceptableWidth/1\fR\&\&. .RE .LP .nf .B setColMinimalAcceptableWidth(This, Width) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Width = integer() .br .RE .RE .RS .LP Sets the minimal \fIwidth\fR\& to which the user can resize columns\&. .LP See: \fIgetColMinimalAcceptableWidth/1\fR\& .RE .LP .nf .B setColSize(This, Col, Width) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Col = Width = integer() .br .RE .RE .RS .LP Sets the width of the specified column\&. .RE .LP .nf .B setDefaultCellAlignment(This, Horiz, Vert) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Horiz = Vert = integer() .br .RE .RE .RS .LP Sets the default horizontal and vertical alignment for grid cell text\&. .LP Horizontal alignment should be one of \fIwxALIGN_LEFT\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_RIGHT\fR\&\&. Vertical alignment should be one of \fIwxALIGN_TOP\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_BOTTOM\fR\&\&. .RE .LP .nf .B setDefaultCellBackgroundColour(This, Colour) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Colour = wx:wx_colour() .br .RE .RE .RS .LP Sets the default background colour for grid cells\&. .RE .LP .nf .B setDefaultCellFont(This, Font) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Font = wxFont:wxFont() .br .RE .RE .RS .LP Sets the default font to be used for grid cell text\&. .RE .LP .nf .B setDefaultCellTextColour(This, Colour) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Colour = wx:wx_colour() .br .RE .RE .RS .LP Sets the current default colour for grid cell text\&. .RE .LP .nf .B setDefaultEditor(This, Editor) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Editor = wxGridCellEditor:wxGridCellEditor() .br .RE .RE .RS .LP Sets the default editor for grid cells\&. .LP The grid will take ownership of the pointer\&. .LP See \fIwxGridCellEditor\fR\& and the overview_grid for more information about cell editors and renderers\&. .RE .LP .nf .B setDefaultRenderer(This, Renderer) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Renderer = wxGridCellRenderer:wxGridCellRenderer() .br .RE .RE .RS .LP Sets the default renderer for grid cells\&. .LP The grid will take ownership of the pointer\&. .LP See \fIwxGridCellRenderer\fR\& and the overview_grid for more information about cell editors and renderers\&. .RE .LP .nf .B setDefaultColSize(This, Width) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Width = integer() .br .RE .RE .LP .nf .B setDefaultColSize(This, Width, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Width = integer() .br Option = {resizeExistingCols, boolean()} .br .RE .RE .RS .LP Sets the default width for columns in the grid\&. .LP This will only affect columns subsequently added to the grid unless \fIresizeExistingCols\fR\& is true\&. .LP If \fIwidth\fR\& is less than \fIgetColMinimalAcceptableWidth/1\fR\&, then the minimal acceptable width is used instead of it\&. .RE .LP .nf .B setDefaultRowSize(This, Height) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Height = integer() .br .RE .RE .LP .nf .B setDefaultRowSize(This, Height, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Height = integer() .br Option = {resizeExistingRows, boolean()} .br .RE .RE .RS .LP Sets the default height for rows in the grid\&. .LP This will only affect rows subsequently added to the grid unless \fIresizeExistingRows\fR\& is true\&. .LP If \fIheight\fR\& is less than \fIgetRowMinimalAcceptableHeight/1\fR\&, then the minimal acceptable height is used instead of it\&. .RE .LP .nf .B setGridCursor(This, Coords) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Coords = {R :: integer(), C :: integer()} .br .RE .RE .RS .LP Set the grid cursor to the specified cell\&. .LP The grid cursor indicates the current cell and can be moved by the user using the arrow keys or the mouse\&. .LP Calling this function generates a \fIwxEVT_GRID_SELECT_CELL\fR\& event and if the event handler vetoes this event, the cursor is not moved\&. .LP This function doesn\&'t make the target call visible, use \fIGoToCell()\fR\& (not implemented in wx) to do this\&. .RE .LP .nf .B setGridCursor(This, Row, Col) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .RS .LP Set the grid cursor to the specified cell\&. .LP The grid cursor indicates the current cell and can be moved by the user using the arrow keys or the mouse\&. .LP Calling this function generates a \fIwxEVT_GRID_SELECT_CELL\fR\& event and if the event handler vetoes this event, the cursor is not moved\&. .LP This function doesn\&'t make the target call visible, use \fIGoToCell()\fR\& (not implemented in wx) to do this\&. .RE .LP .nf .B setGridLineColour(This, Colour) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Colour = wx:wx_colour() .br .RE .RE .RS .LP Sets the colour used to draw grid lines\&. .RE .LP .nf .B setLabelBackgroundColour(This, Colour) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Colour = wx:wx_colour() .br .RE .RE .RS .LP Sets the background colour for row and column labels\&. .RE .LP .nf .B setLabelFont(This, Font) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Font = wxFont:wxFont() .br .RE .RE .RS .LP Sets the font for row and column labels\&. .RE .LP .nf .B setLabelTextColour(This, Colour) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Colour = wx:wx_colour() .br .RE .RE .RS .LP Sets the colour for row and column label text\&. .RE .LP .nf .B setMargins(This, ExtraWidth, ExtraHeight) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br ExtraWidth = ExtraHeight = integer() .br .RE .RE .RS .LP Sets the extra margins used around the grid area\&. .LP A grid may occupy more space than needed for its data display and this function allows setting how big this extra space is .RE .LP .nf .B setReadOnly(This, Row, Col) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br .RE .RE .LP .nf .B setReadOnly(This, Row, Col, Options :: [Option]) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Col = integer() .br Option = {isReadOnly, boolean()} .br .RE .RE .RS .LP Makes the cell at the specified location read-only or editable\&. .LP See: \fIisReadOnly/3\fR\& .RE .LP .nf .B setRowAttr(This, Row, Attr) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = integer() .br Attr = wxGridCellAttr:wxGridCellAttr() .br .RE .RE .RS .LP Sets the cell attributes for all cells in the specified row\&. .LP The grid takes ownership of the attribute pointer\&. .LP See the \fIwxGridCellAttr\fR\& class for more information about controlling cell attributes\&. .RE .LP .nf .B setRowLabelAlignment(This, Horiz, Vert) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Horiz = Vert = integer() .br .RE .RE .RS .LP Sets the horizontal and vertical alignment of row label text\&. .LP Horizontal alignment should be one of \fIwxALIGN_LEFT\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_RIGHT\fR\&\&. Vertical alignment should be one of \fIwxALIGN_TOP\fR\&, \fIwxALIGN_CENTRE\fR\& or \fIwxALIGN_BOTTOM\fR\&\&. .RE .LP .nf .B setRowLabelSize(This, Width) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Width = integer() .br .RE .RE .RS .LP Sets the width of the row labels\&. .LP If \fIwidth\fR\& equals \fIwxGRID_AUTOSIZE\fR\& then width is calculated automatically so that no label is truncated\&. Note that this could be slow for a large table\&. .RE .LP .nf .B setRowLabelValue(This, Row, Value) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = integer() .br Value = unicode:chardata() .br .RE .RE .RS .LP Sets the value for the given row label\&. .LP If you are using a derived grid table you must override \fIwxGridTableBase::SetRowLabelValue()\fR\& (not implemented in wx) for this to have any effect\&. .RE .LP .nf .B setRowMinimalHeight(This, Row, Height) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Height = integer() .br .RE .RE .RS .LP Sets the minimal \fIheight\fR\& for the specified \fIrow\fR\&\&. .LP See \fIsetColMinimalWidth/3\fR\& for more information\&. .RE .LP .nf .B setRowMinimalAcceptableHeight(This, Height) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Height = integer() .br .RE .RE .RS .LP Sets the minimal row \fIheight\fR\& used by default\&. .LP See \fIsetColMinimalAcceptableWidth/2\fR\& for more information\&. .RE .LP .nf .B setRowSize(This, Row, Height) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Row = Height = integer() .br .RE .RE .RS .LP Sets the height of the specified row\&. .LP See \fIsetColSize/3\fR\& for more information\&. .RE .LP .nf .B setScrollLineX(This, X) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br X = integer() .br .RE .RE .RS .LP Sets the number of pixels per horizontal scroll increment\&. .LP The default is 15\&. .LP See: \fIgetScrollLineX/1\fR\&, \fIgetScrollLineY/1\fR\&, \fIsetScrollLineY/2\fR\& .RE .LP .nf .B setScrollLineY(This, Y) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Y = integer() .br .RE .RE .RS .LP Sets the number of pixels per vertical scroll increment\&. .LP The default is 15\&. .LP See: \fIgetScrollLineX/1\fR\&, \fIgetScrollLineY/1\fR\&, \fIsetScrollLineX/2\fR\& .RE .LP .nf .B setSelectionBackground(This, C) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br C = wx:wx_colour() .br .RE .RE .RS .LP Set the colour to be used for drawing the selection background\&. .RE .LP .nf .B setSelectionForeground(This, C) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br C = wx:wx_colour() .br .RE .RE .RS .LP Set the colour to be used for drawing the selection foreground\&. .RE .LP .nf .B setSelectionMode(This, Selmode) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Selmode = wx:wx_enum() .br .RE .RE .RS .LP Set the selection behaviour of the grid\&. .LP The existing selection is converted to conform to the new mode if possible and discarded otherwise (e\&.g\&. any individual selected cells are deselected if the new mode allows only the selection of the entire rows or columns)\&. .RE .LP .nf .B showCellEditControl(This) -> ok .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br .RE .RE .RS .LP Displays the active in-place cell edit control for the current cell after it was hidden\&. .LP This method should only be called after calling \fIhideCellEditControl/1\fR\&, to start editing the current grid cell use \fIenableCellEditControl/2\fR\& instead\&. .RE .LP .nf .B xToCol(This, X) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br X = integer() .br .RE .RE .LP .nf .B xToCol(This, X, Options :: [Option]) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br X = integer() .br Option = {clipToMinMax, boolean()} .br .RE .RE .RS .LP Returns the column at the given pixel position depending on the window\&. .LP Return: The column index or \fIwxNOT_FOUND\fR\&\&. .RE .LP .nf .B xToEdgeOfCol(This, X) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br X = integer() .br .RE .RE .RS .LP Returns the column whose right hand edge is close to the given logical \fIx\fR\& position\&. .LP If no column edge is near to this position \fIwxNOT_FOUND\fR\& is returned\&. .RE .LP .nf .B yToEdgeOfRow(This, Y) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Y = integer() .br .RE .RE .RS .LP Returns the row whose bottom edge is close to the given logical \fIy\fR\& position\&. .LP If no row edge is near to this position \fIwxNOT_FOUND\fR\& is returned\&. .RE .LP .nf .B yToRow(This, Y) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Y = integer() .br .RE .RE .LP .nf .B yToRow(This, Y, Options :: [Option]) -> integer() .br .fi .br .RS .LP Types: .RS 3 This = wxGrid() .br Y = integer() .br Option = {clipToMinMax, boolean()} .br .RE .RE .RS .LP Returns the grid row that corresponds to the logical \fIy\fR\& coordinate\&. .LP The parameter \fIgridWindow\fR\& is new since wxWidgets 3\&.1\&.3\&. If it is specified, i\&.e\&. non-NULL, only the cells of this window are considered, i\&.e\&. the function returns \fIwxNOT_FOUND\fR\& if \fIy\fR\& is out of bounds\&. .LP If \fIgridWindow\fR\& is NULL, the function returns \fIwxNOT_FOUND\fR\& only if there is no row at all at the \fIy\fR\& position\&. .RE