![]() ![]() Set the value for the given column label. SetColLabelValue (int col, const wxString &value) Sets the orientation of the column labels (either wxHORIZONTAL or wxVERTICAL). SetColLabelTextOrientation (int textOrientation) Sets the horizontal and vertical alignment of column label text. SetColLabelAlignment (int horiz, int vert) Hides the row labels by calling SetRowLabelSize() with a size of 0. Hides the column labels by calling SetColLabelSize() with a size of 0. Returns the alignment used for row labels. ![]() GetRowLabelAlignment (int *horiz, int *vert) const Returns the colour used for row and column label text. Returns the font used for row and column labels. Returns the colour used for the background of row and column labels. ![]() Returns the orientation of the column labels (either wxHORIZONTAL or wxVERTICAL). Sets the arguments to the current column label alignment values. GetColLabelAlignment (int *horiz, int *vert) const Receive and handle a message from the table. ProcessTableMessage ( wxGridTableMessage &msg) Passes a pointer to a custom grid table to be used by the grid. SetTable ( wxGridTableBase *table, bool takeOwnership=false, wxGridSelectionModes selmode= wxGridSelectCells) More.ĬreateGrid (int numRows, int numCols, wxGridSelectionModes selmode= wxGridSelectCells)Ĭreates a grid with the specified initial number of rows and columns. More.Ĭreate ( wxWindow *parent, wxWindowID id, const wxPoint &pos= wxDefaultPosition, const wxSize &size= wxDefaultSize, long style= wxWANTS_CHARS, const wxString &name=wxGridNameStr)Ĭreates the grid window for an object initialized using the default constructor. WxGrid ( wxWindow *parent, wxWindowID id, const wxPoint &pos= wxDefaultPosition, const wxSize &size= wxDefaultSize, long style= wxWANTS_CHARS, const wxString &name=wxGridNameStr)Ĭonstructor creating the grid window. SetCellHighlightColour (const wxColour &) More.ĭrawCellHighlight ( wxDC &dc, const wxGridCellAttr *attr)ĭrawRowLabels ( wxDC &dc, const wxArrayInt &rows)ĭrawColLabels ( wxDC &dc, const wxArrayInt &cols)ĭrawTextRectangle ( wxDC &dc, const wxString &text, const wxRect &rect, int horizontalAlignment= wxALIGN_LEFT, int verticalAlignment= wxALIGN_TOP, int textOrientation= wxHORIZONTAL) constĭrawTextRectangle ( wxDC &dc, const wxArrayString &lines, const wxRect &rect, int horizontalAlignment= wxALIGN_LEFT, int verticalAlignment= wxALIGN_TOP, int textOrientation= wxHORIZONTAL) const More.Ĭonstants defining different support built-in TAB handling behaviours. Please see wxGridEvent, wxGridSizeEvent, wxGridRangeSelectEvent, and wxGridEditorCreatedEvent for the documentation of all event types you can use with wxGrid.Ĭategory: Grid Related Classes See also wxGrid Overview, wxGridUpdateLockerĭifferent selection modes supported by the grid. WxGridCellEditor is the abstract base class for editing the value of a cell. An object of this type may be returned by wxGridTableBase::GetAttr(). The look of a cell can be further defined using wxGridCellAttr. WxGridCellRenderer is the abstract base class for rendering contents in a cell. An instance of such a class is created by CreateGrid(). The default table class is called wxGridStringTable and holds an array of strings. One or more wxGrid classes may act as a view for one table class. The wxGrid Overview 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 wxGrid.Ī wxGridTableBase class holds the actual data to be displayed by a wxGrid class. For more complex applications you can derive your own classes for custom grid views, grid data tables, cell editors and renderers. It will set up default instances of the other classes and manage them for you. For simple applications, and to help you get started, wxGrid is the only class you need to refer to directly. They provide a rich set of features for display, editing, and interacting with a variety of data sources. WxGrid and its related classes are used for displaying and editing tabular data. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |