Renamed the FXTable's getNumCols() member function to getNumColumns().
Renamed the FXTable's getVisibleCols() and setVisibleCols() member functions to getVisibleColumns() and setVisibleColumns(), respectively.
The second and third arguments for the FXTable constructor, which used to specify the number of visible rows and columns for the table, have been removed. As before, the table is initially empty, but it now reports its default size based on the scroll area's scrollbar placement policy.
Added the CENTER_X and CENTER_Y options for the text justification in an FXTableItem. These are also the default values for the FXTableItem text justification, unless overridden by a call to FXTableItem::setJustify().
Added the getMinColumnWidth() and getMinRowHeight() member functions for the FXTable class. These utility functions return the width of the "narrowest" cell in a particular column or the height of the "shortest" cell in a row, and can be useful for setting up the initial table display.
Added the isItemSpanning() member function for the FXTable class, which returns TRUE if the table item at the specified row and column spans multiple cells.
Added the TABLE_HEADERS_SIZABLE option for the FXTable class. Like the previously available TABLE_ROW_SIZABLE and TABLE_COL_SIZABLE options, this option can be set to enable resizing of the table headers.
Added the clearItems() member function to FXTable, to remove all table items from a table.
Added the getItemJustify(), setItemJustify(), getItemIconItemPosition(), setItemIconPosition(), getItemBorders(), setItemBorders(), getItemStipple() and setItemStipple() member functions to class FXTable, for modifying those table item attributes directly.
Added the selectRow() and selectColumn() member functions, for programmatically selecting an entire row (or column) of the table in one shot. Along with these new member functions come two new messages, ID_SELECT_ROW_INDEX and ID_SELECT_COLUMN_INDEX, for selecting an entire row or column in the table. For either of these messages, the message data should be the row (or column) index of interest. For example, to select the fifth row of the table:
table->handle(this, FXSEL(SEL_COMMAND, FXTable::ID_SELECT_ROW_INDEX), reinterpret_cast<void *>(static_cast<FXival>(4))); |
Note that the row and column indices are zero-based.