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.

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.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com