Ets_Ctl_Table_Row_Count_Set()
Note: Requires OPNET Development Kit
Abstract
Sets the number of rows in a table control.
Syntax
Ets_Ctl_Table_Row_Count_Set (table_ctl_ptr, rows)
| Argument | Type | Description |
|---|---|---|
table_ctl_ptr |
EtsT_Ctl * |
pointer to an ETS control |
rows |
int |
the number of rows to be displayed by the table |
Return Type
EtsT_Compcode
EtsC_Compcode_Failure if the control is not a table control; otherwise EtsC_Compcode_Success.
Header
ets_api_gui.h
Details
This function modifies the specified table so that it displays the specified number of rows. This affects the values that will be passed as the row argument to the table's display handler, click handler, and save handler functions. For example, after calling this function with a value of 5 for the rows argument, the display handler can be called with a row argument ranging from -1 to 4, corresponding to the header (-1) and the five rows (0–4) of the table.