This class implements an editable table.
Constructor.
Argument | Type | Default | Description |
p | FXComposite | Parent widget. | |
numVisRows | Int | Number of rows to display. | |
numVisColumns | Int | Number of columns to display. | |
numRows | Int | Total number of rows including leading rows. | |
numColumns | Int | Total number of columns including leading columns. | |
tgt | FXObject | None | Message target. |
sel | Int | 0 | Message ID. |
opts | Int | AFXTABLE_NORMAL | Options and hints. |
x | Int | 0 | X coordinate of the origin. |
y | Int | 0 | Y coordinate of the origin. |
w | Int | 0 | Width of the table widget. |
h | Int | 0 | Height of the table widget. |
pl | Int | 4 | Left padding (margin). |
pr | Int | 4 | Right padding (margin). |
pt | Int | DEFAULT_MARGIN | Top padding (margin). |
pb | Int | DEFAULT_MARGIN | Bottom padding (margin). |
Adds a list that have only text items to the table and returns the list ID. The text strings of the list items are delimited by tab "\t" characters in the given text. The list is used by items of type LIST.
Argument | Type | Default | Description |
text | String | Tab "\t" delimited text string (e.g. "0\t50\t100\t150"). | |
opts | Int | AFXTABLE_LIST_NORMAL | Options. |
Adds a list to the table and returns the list ID. The list is used by items of type LIST.
Argument | Type | Default | Description |
opts | Int | AFXTABLE_LIST_NORMAL | List flag. |
Appends a client item to the MB3 popup menu.
Argument | Type | Default | Description |
text | String | Label, accelerator and help string (e.g. "Cu&t\tCtl+X\tCut selection to clipboard."). | |
icon | FXIcon | None | Icon to display. |
tgt | FXObject | None | Message target. |
sel | Int | 0 | Message ID. |
alias | String | None | Item alias name. |
Appends an item to the specified table list; returns the index of the new item.
Argument | Type | Default | Description |
listId | Int | ID of the list to append to. | |
text | String | Item's text. | |
icon | FXIcon | None | Item's icon. |
Clears the text in the items in the specified range.
Argument | Type | Default | Description |
startRow | Int | Row in which to start clearing. | |
startColumn | Int | Column in which to start clearing. | |
endRow | Int | Row in which to end clearing. | |
endColumn | Int | Column in which to end clearing. | |
clearEditableOnly | Int | TRUE | Specify TRUE to clear the text of editable items only. |
Removes all items from the specified table list.
Argument | Type | Default | Description |
listId | Int | ID of the list to clear. |
Deletes columns starting at the specified column.
Argument | Type | Default | Description |
startColumn | Int | Starting column. | |
numColumns | Int | 1 | Number of columns to delete. |
notify | Int | FALSE | Specify TRUE to notify target of the deletion. |
Deletes rows starting at the specified row.
Argument | Type | Default | Description |
startRow | Int | Starting row. | |
numRows | Int | 1 | Number of rows to delete. |
notify | Int | FALSE | Specify TRUE to notify target of the deletion. |
Deselects the specified item.
Argument | Type | Default | Description |
row | Int | ||
column | Int | Column. |
Returns the column at the specified x coordinate; returns -1 if x is outside of the table.
Argument | Type | Default | Description |
x | Int | X coordinate. |
Returns the sort order of the given column.
Argument | Type | Default | Description |
column | Int | Column index. |
Returns the width, in pixels, of the specified column.
Argument | Type | Default | Description |
column | Int | Column. |
Returns the column index of the current item.
Reimplemented from AFXBaseTable.
Returns the row index of the current item.
Reimplemented from AFXBaseTable.
Returns the default column width, in pixels, of the table.
Returns the default height of the table.
Reimplemented from AFXBaseTable.
Returns the default width of the table.
Reimplemented from AFXBaseTable.
Gets the background color of an item.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the value of an item of type BOOL.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the color of an item of type COLOR. The color is "As is", "Default", or a color hex specification in the form of "RRGGBB" (e.g., "#0A1B2C").
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the value of an item of type FLOAT.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the icon of an item of type ICON.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the value of an item of type INT.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the list ID of an item of type LIST.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the list index (selection) of an item of type LIST.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the message ID for an item.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the target for an item.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the text of an item of type TEXT.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Gets the text color of an item.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the type of an item.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the text-form value of an item of any type.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns the number of leading columns in the table.
Reimplemented from AFXBaseTable.
Returns the number of leading rows in the table.
Reimplemented from AFXBaseTable.
Returns the icon of the item at the specified index of the specified table list.
Argument | Type | Default | Description |
listId | Int | ID of the list. | |
index | Int | Index into the list of the item to return. |
Returns the text of the item at the specified index of the specified table list.
Argument | Type | Default | Description |
listId | Int | ID of the list. | |
index | Int | Index into the list of the item to return. |
Returns the number of columns in the table (including leading columns).
Reimplemented from AFXBaseTable.
Returns the number of empty (non-trailing) rows at the bottom of the table.
Returns the number of items in the specified table list.
Argument | Type | Default | Description |
listId | Int | ID of the list. |
Returns the number of rows in the table (including leading rows).
Reimplemented from AFXBaseTable.
Returns the flags for the menu items to be displayed in the popup menu.
Returns the height required for a row (useful for multi-line labels).
Argument | Type | Default | Description |
row | Int | Row. |
Returns the row at the specified y coordinate; returns -1 if y is outside of the table.
Argument | Type | Default | Description |
y | Int | Y coordinate. |
Returns the height, in pixels, of the specified row.
Reimplemented from AFXBaseTable.
Argument | Type | Default | Description |
row | Int |
Gets the selection background color of the table.
Reimplemented from AFXBaseTable.
Gets the selection text color of the table.
Reimplemented from AFXBaseTable.
Gets the number of visible columns in the table.
Reimplemented from AFXBaseTable.
Gets the number of visible rows in the table.
Reimplemented from AFXBaseTable.
Inserts columns at the specified location.
Argument | Type | Default | Description |
startColumn | Int | Starting column. | |
numColumns | Int | 1 | Number of columns to insert. |
notify | Int | FALSE | Specify TRUE to notify target of the insertion. |
Inserts rows at the specified location.
Argument | Type | Default | Description |
startRow | Int | Starting row. | |
numRows | Int | 1 | Number of rows to insert. |
notify | Int | FALSE | Specify TRUE to notify target of the insertion. |
Returns TRUE if any item in the column is selected.
Argument | Type | Default | Description |
column | Int | Column. |
Returns TRUE if any item in the row is selected.
Argument | Type | Default | Description |
row | Int | Row. |
Returns TRUE if all items in the column are selected.
Argument | Type | Default | Description |
column | Int | Column. |
Returns TRUE if the items of the given column can be sorted.
Argument | Type | Default | Description |
column | Int | Column index. |
Returns TRUE if the specified item is of type BOOL.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns TRUE if the specified item is of type COLOR.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns TRUE if the item is editable.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns TRUE if the specified item does not have a value. This method checks the actual contents of the specified item and does not account for the empty-item policy for the item.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns TRUE if the specified item is of type ICON.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns TRUE if the specified item is of type LIST.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns TRUE if the specified item is selected.
Argument | Type | Default | Description |
row | Int | Row. | |
column | Int | Column. |
Returns TRUE if the specified item is of type TEXT.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. |
Returns TRUE if the specified item is visible.
Argument | Type | Default | Description |
row | Int | Row. | |
column | Int | Column. |
Returns TRUE if all items in the row are selected.
Argument | Type | Default | Description |
row | Int | Row. |
Scrolls to make the specified row, column fully visible.
Argument | Type | Default | Description |
row | Int | Row. | |
column | Int | Column. |
Scrolls vertically (only) to make the specified row fully visible.
Argument | Type | Default | Description |
row | Int | Row. |
Scrolls the contents.
Argument | Type | Default | Description |
x | Int | Distance scrolled in X direction. | |
y | Int | Distance scrolled in Y direction. |
Removes the item at the specified index from the specified table list; returns the number of items remaining in list.
Argument | Type | Default | Description |
listId | Int | ID of the list to remove from. | |
index | Int | Index of the list item to remove. |
Selects the specified item.
Argument | Type | Default | Description |
row | Int | ||
column | Int | Column. |
Sets the TRUE and FALSE icons of all existing and future items in a column of type BOOL. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
trueIcon | FXIcon | None | Icon displayed when value is TRUE; 0 = default icon. |
falseIcon | FXIcon | None | Icon displayed when value is FALSE; 0 = default icon. |
Sets the value of all existing and future items in a column of type BOOL. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
value | Int | Specify TRUE or FALSE. |
Sets the color of all existing and future items in a column of type COLOR. The color can be "As is", "Default", a color hex specification in the form of "RRGGBB" (e.g., "#0A1B2C"), or a pre-defined color name (e.g., "Red"). Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
color | String | Color. |
Sets the color of the color item in the flyout menu for all existing and future items that display "As is" or "Default" in a column of type COLOR. The color is either a color hex specification in the form of "RRGGBB" (e.g., "#0A1B2C") or a pre-defined color name (e.g., "Red"). Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
color | String | Color. |
Sets the color flyout options for all existing and future items in a column of type COLOR. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
opts | Int | Options (see ColorFlyoutOptions). |
Sets the editability of all existing and future items in a column. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
editable | Int | Specify TRUE for editable, FALSE for read-only. |
Sets the value of all existing and future items in a column of type FLOAT. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
value | Float | Floating-point value. |
Sets the icon of all existing and future items in a column of type ICON.
Argument | Type | Default | Description |
column | Int | Column index. | |
icon | FXIcon | None | Icon. |
Sets the value of all existing and future items in a column of type INT. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
value | Int | Integer value. |
Sets the justification of all existing and future items in a column. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
justify | Int | Justification (see ItemJustify). |
Sets the list ID of all existing and future items in a column of type LIST. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
listId | Int | List ID. |
Sets the list index (selection) of all existing and future items in a column of type LIST. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
index | Int | Index of item to be selected. |
Sets a column to be sortable or not. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
sortable | Int | Specify TRUE for sortable, FALSE for otherwise. |
Sets the sort order of the given column. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
order | Int | Sort order (see SortOrder). |
Sets the text of all existing and future items in a column of type TEXT. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
text | String | Text. |
Sets the type of a column. Specifying -1 for the column will change all columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
type | Int | Type (see Flags for item types). |
Sets the width, in pixels, of the specified column. Specifying -1 for the column will change all non-leading and non-trailing columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
width | Int | Width in pixels. |
Sets the width, in number of characters, of the specified column. Specifying -1 for the column will change all non-leading and non-trailing columns in the table and set the default for the table.
Argument | Type | Default | Description |
column | Int | Column index. | |
numChars | Int | Width in number of characters. |
Sets the current sort column. The given column must be sortable; otherwise the current sort column will not change.
Argument | Type | Default | Description |
column | Int | Column index. |
Sets the default TRUE and FALSE icons for the table (0 = default icon).
Argument | Type | Default | Description |
trueIcon | FXIcon | None | Icon displayed when value is TRUE; 0 = default icon. |
falseIcon | FXIcon | None | Icon displayed when value is FALSE; 0 = default icon. |
Sets the default bool value for the table.
Argument | Type | Default | Description |
value | Int | Specify TRUE or FALSE. |
Sets the default color for all items of type COLOR in the table. The color can be "As is", "Default", a color hex specification in the form of "RRGGBB" (e.g., "#0A1B2C"), or a pre-defined color name (e.g., "Red").
Argument | Type | Default | Description |
color | String | Color. |
Sets the default width, in pixels, for all columns.
Reimplemented from AFXBaseTable.
Argument | Type | Default | Description |
width | Int |
Sets the default floating-point value for the table.
Argument | Type | Default | Description |
value | Float | Floating-point value. |
Sets the default integer value for the table.
Argument | Type | Default | Description |
value | Int | Integer value. |
Sets the default justification for the table.
Argument | Type | Default | Description |
justify | Int | Justification (see ItemJustify). |
Sets the default height, in pixels, for all rows.
Reimplemented from AFXBaseTable.
Argument | Type | Default | Description |
height | Int |
Sets the default text for the table.
Argument | Type | Default | Description |
text | String | Text. |
Sets the default type for the table.
Argument | Type | Default | Description |
type | Int | Type (see Flags for item types). |
Sets the default value (in text form) used for empty items of the table if its empty-item policy includes DEFAULT_IF_EMPTY.
Argument | Type | Default | Description |
defaultVal | String | Default value in text form. |
Sets the policy for handling empty items of the table (see EmptyItemPolicy).
Argument | Type | Default | Description |
policy | Int | Flags for handling empty items (see EmptyItemPolicy). |
Sets the font for all text items in the table.
Argument | Type | Default | Description |
font | FXFont | Font. |
Sets the background color of an item using an FXColor.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
color | FXColor | Color index. |
Sets the background color of an item using a string.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
color | String | Color name. |
Sets the TRUE and FALSE icons of an item of type BOOL.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
trueIcon | FXIcon | None | Icon displayed when value is TRUE; 0 = default icon. |
falseIcon | FXIcon | None | Icon displayed when value is FALSE; 0 = default icon. |
Sets the value of an item of type BOOL.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
value | Int | Specify TRUE or FALSE. |
Sets the color of an item of type COLOR. The color can be "As is", "Default", a color hex specification in the form of "RRGGBB" (e.g., "#0A1B2C"), or a pre-defined color name (e.g., "Red").
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
color | String | Color. |
Sets the editability of an item.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
editable | Int | Specify TRUE for editable, FALSE for read-only. |
Sets the value of an item of type FLOAT.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
value | Float | Floating-point value. |
Sets the icon of an item of type ICON.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
icon | FXIcon | None | Icon. |
Sets the value of an item of type INT.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
value | Int | Integer value. |
Sets the justification of an item.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
justify | Int | Justification (see ItemJustify). |
Sets the list ID of an item of type LIST.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
listId | Int | List ID. |
Sets the list index (selection) of an item of type LIST.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
index | Int | Index of item to be selected. |
Sets the item provider of this object.
Argument | Type | Default | Description |
ip | FXObject | Item provideer. |
Sets a leading item to span more than one row or column.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
numRows | Int | Number of rows to span. | |
numColumns | Int | Number of columns to span. |
Sets the target and message ID for an item.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
tgt | FXObject | Target. | |
msg | Int | 0 | Message ID. |
Sets the text of an item of type TEXT.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
text | String | Text. |
Sets the text color of an item using an FXColor.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
color | FXColor | Color index. |
Sets the text color of an item using a string.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
color | String | Color name. |
Sets the type of an item.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
type | Int | Type (see Flags for item types). |
Sets the value of an item of any type that can interpret a text string for its value. Returns TRUE if the value of the specified item is set successfully.
Argument | Type | Default | Description |
row | Int | Row index of item. | |
column | Int | Column index of item. | |
valueText | String | Text-form value of item. |
Set the labels of a leading column. Note: this API must be used to set the header column labels, otherwise labels will be overwritten by auto-numbering.
Argument | Type | Default | Description |
str | String | Tab "\t" delimited list, can also contain newline characters indicating that label contains multiple lines of text (e.g. "Young's\nModulus\tPoisson's\nRatio"). | |
column | Int | 0 | Column, this column must have previously been specified as a leading column (see setLeadingColumns). |
Sets the number of leading columns.
Argument | Type | Default | Description |
numColumns | Int | Number of columns. |
Sets the font of the leading rows and columns.
Argument | Type | Default | Description |
font | FXFont | Font. |
Set the labels of a leading row. Note: this API must be used to set the header row labels, otherwise labels will be overwritten by auto-numbering.
Argument | Type | Default | Description |
str | String | Tab "\t" delimited list, can also contain newline characters indicating that label contains multiple lines of text (e.g. "Young's\nModulus\tPoisson's\nRatio"). | |
row | Int | 0 | Row, this row must have previously been specified as a leading row (see setLeadingRows). |
Sets the number of leading rows.
Argument | Type | Default | Description |
numRows | Int | Number of rows. |
Sets the maximum number of visible items for all table lists.
Argument | Type | Default | Description |
maxVisible | Int | Maximum number of visible items. |
Sets the menu items to be displayed in the popup menu.
Argument | Type | Default | Description |
opts | Int | Options. |
Sets the height, in pixels, of the specified row.
Reimplemented from AFXBaseTable.
Argument | Type | Default | Description |
row | Int | ||
height | Int |
Sets the selection background color of the table.
Argument | Type | Default | Description |
color | FXColor | Color. |
Sets the selection text color of the table.
Argument | Type | Default | Description |
color | FXColor | Color. |
Sets the stretchable column. (This method only works for the last column.)
Argument | Type | Default | Description |
column | Int | Column index. |
Sets the size of the table.
Argument | Type | Default | Description |
numRows | Int | Number of rows. | |
numColumns | Int | Number of columns. | |
notify | Int | FALSE | Specify TRUE to notify target of change. |
Sets the table options.
Argument | Type | Default | Description |
style | Int | Style flag (see Flags for AFX table options). |
Sets the number of visible columns in the table.
Argument | Type | Default | Description |
visibleColumns | Int | Number of visible columns. |
Sets the number of visible rows in the table.
Argument | Type | Default | Description |
visibleRows | Int | Number of visible rows. |
Makes the table to use a different, typically shaded, background color for read-only items if TRUE is passed to the method. The table would use the same regular background color for both editable and read-only items if FALSE is passed to the method.
Argument | Type | Default | Description |
shadeItems | Int | Specify TRUE to use a different background color for read-only items. |
Controls the display of horizontal grid lines in the table.
Reimplemented from AFXBaseTable.
Argument | Type | Default | Description |
on | Int | TRUE |
Controls the display of vertical grid lines in the table.
Reimplemented from AFXBaseTable.
Argument | Type | Default | Description |
on | Int | TRUE |
Flags for popup menu items.
POPUP_NONE | Popup not displayed. |
POPUP_UNDO | Not yet supported. (Display "Undo" menu item). |
POPUP_REDO | Not yet supported. (Display "Redo" menu item). |
POPUP_CUT | Display "Cut" menu item. |
POPUP_COPY | Display "Copy" menu item. |
POPUP_PASTE | Display "Paste" menu item. |
POPUP_EDIT | Convenience flag for specifying multiple menu items. |
POPUP_INSERT_ROW | Display "Insert Row Before/After" menu items. |
POPUP_INSERT_COLUMN | Display "Insert Column Before/After" menu items. |
POPUP_DELETE_ROW | Display "Delete Rows" menu item. |
POPUP_DELETE_COLUMN | Display "Delete Columns" menu item. |
POPUP_CLEAR_CONTENTS | Display "Clear Contents" and "Clear Table" menu items. |
POPUP_MODIFY_ROW | Convenience flag for specifying multiple menu items. |
POPUP_MODIFY_COLUMN | Convenience flag for specifying multiple menu items. |
POPUP_MODIFY | Convenience flag for specifying multiple menu items. |
POPUP_READ_FROM_FILE | Display "Read from File" menu item. |
POPUP_WRITE_TO_FILE | Display "Write to File" menu item. |
POPUP_FILE | Display "Read from file" and "Write to file" menu items. |
POPUP_ALL | Display all menu items. |
Message ID's.
ID_CUT_SEL | ID for the Cut button. |
ID_COPY_SEL | ID for the Copy button. |
ID_PASTE_SEL | ID for the Paste button. |
ID_ADD_COLUMN | ID for the Insert Column buttons. |
ID_ADD_ROW | ID for the Insert Row buttons. |
ID_DELETE_COLUMNS | ID for the Delete Columns button. |
ID_DELETE_ROWS | ID for the Delete Rows button. |
ID_CLEAR_SEL | ID for the Clear Contents button. |
ID_CLEAR_TABLE | ID for the Clear Table button. |
ID_READ_SEL | ID for the Read from File button. |
ID_FORMAT_SEL | Not yet implemented. (ID for the Format button.). |
ID_WRITE | ID for the Write to File button. |
ID_FILE_DB | ID for the Read from File button. |
ID_WRITE_FILE_DB | ID for the file selection dialog used by the Write to File button. |
ID_CONFIRM_WRITE | ID for OK to overwrite? warning dialog. |
Flags for undo (not yet implemented).
MAXUNDOSIZE | Don't let the undo buffer get out of hand. |
KEEPUNDOSIZE | When MAXUNDOSIZE was exceeded, trim down to this size. |
Flags for color flyouts (used for items of type COLOR).
COLOR_INCLUDE_COLOR_ONLY | Color item has no As Is and Default in its flyout. |
COLOR_INCLUDE_AS_IS | Color item has As Is in its flyout. |
COLOR_INCLUDE_DEFAULT | Color item has Default in its flyout. |
COLOR_INCLUDE_ALL | Color item has both As Is and Default in its flyout. This is the default option. |
Flags for how empty items should be handled by the AFXTable value-retrieving and error-checking API's
DISALLOW_EMPTY | Disallow an item to be empty (default). |
ALLOW_EMPTY | Allow an item to be empty. |
DEFAULT_IF_EMPTY | Allow an item to be empty and use its default value for the item. |
IGNORE_BOTTOM_EMPTY_ROWS | Exclude empty rows at the bottom of the table (default). |
KEEP_BOTTOM_EMPTY_ROWS | Include empty rows at the bottom of the table. |
Flags for item alignment.
REAL | Not yet implemented (Real). |
LEFT | Left justified. |
RIGHT | Right justified. |
CENTER | Center justified (horizontal). |
TOP | Top justified. |
BOTTOM | Bottom justified. |
MIDDLE | Middle justified (vertical). |
Flags for item types.
TEXT | Item accepts a text string via a text field. |
FLOAT | Item accepts a floating-point number via a text field. |
INT | Item accepts an integer via a text field. |
LIST | Item accepts input from a list. |
BOOL | Item is a boolean; displayed as an icon. |
ICON | Item displays an icon and does not accept input. |
COLOR | Item accepts color selection via a color flyout. |
Flags for real formats.
GENERAL | General. |
SCIENTIFIC | Scientific. |
AUTOMATIC | Automatic. |
Flags for sorting items in a column.
SORT_INACTIVE | Sort currently not active for the column. |
SORT_ASCENDING | Sort items of the column in the ascending order. |
SORT_DESCENDING | Sort items of the column in the descending order. |
Flags for AFX table options.
AFXTABLE_COLUMN_RESIZABLE | Allow users to resize columns. |
AFXTABLE_ROW_RESIZABLE | Allow users to resize rows. |
AFXTABLE_RESIZE | Allow users to resize rows and columns. |
AFXTABLE_NO_COLUMN_SELECT | Disallow column selections (selecting a header/footer item in a column selects the whole column). |
AFXTABLE_NO_ROW_SELECT | Disallow row selections (selecting a header/footer item in a row selects the whole row). |
AFXTABLE_ROW_MODE | Selecting any item in a row selects the whole row. |
AFXTABLE_EXTENDED_SELECT | Use extended selection mode that allows multiple items to be selected and allows users to drag-select a range of items. |
AFXTABLE_SINGLE_SELECT | Use single selection mode that allows up to one item to be selected. |
AFXTABLE_BROWSE_SELECT | Use browse selection mode that enforces one single item to be selected at all times. |
AFXTABLE_EDITABLE | Table is editable. |
AFXTABLE_NORMAL | Default table options--use extended selection mode, columns are resizable, and layout fills both X and Y directions. |
Flags for the table's list (for items of type LIST).
AFXTABLE_LIST_PRESELECT_NONE | Do not pre-select any list item. |