EtsT_Table_Decoration_Proc
Note: Requires OPNET Development Kit
Abstract
Callback: Used to specify the colors, icon, indentation, or justification of a table cell when it needs to be redrawn.
Syntax
<decoration_proc_name> (dbox_ptr, control_name, row, column, decoration_ptr, state_ptr)
| Argument | Type | Description |
|---|---|---|
dbox_ptr |
EtsT_Dbox * |
Dialog box containing the table of interest. |
control_name |
const char * |
Name of the table control of interest. |
row |
int |
Table row of cell to display. |
column |
int |
Table column of cell to display. |
decoration_ptr |
EtsT_Table_Decoration * |
Data structure specifying table cell appearance (see Details). |
state_ptr |
void * |
User-defined state information associated with the table. |
Return Type
void
No return value.
Header
ets_api_gui.h
Details
This callback should determine any special appearance required for the table cell (foreground color, background color, icon, or indent) and set the decoration_ptr data structure accordingly. The EtsT_Table_Decoration data structure is defined as:
typedef struct EtsT_Table_Decoration
{
int decoration_options;
EtsT_Color fg_color;
EtsT_Color bg_color;
char icon_name [256];
int indent_pixels;
} EtsT_Table_Decoration;
The decoration_options field must be set if any of the other fields are set or else the other fields will be ignored. decoration_options is a bitwise OR of the following symbolic constants:
ETSC_TABLE_DECORATION_OPT_NONEETSC_TABLE_DECORATION_OPT_FOREGROUND_COLORETSC_TABLE_DECORATION_OPT_BACKGROUND_COLORETSC_TABLE_DECORATION_OPT_ICONETSC_TABLE_DECORATION_OPT_RIGHT_JUSTIFIEDETSC_TABLE_DECORATION_OPT_CENTER_JUSTIFIEDETSC_TABLE_DECORATION_OPT_INDENTED
This callback is associated with a table in op_etsed, as the ETS Decoration Proc.