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.

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_NONE
  • ETSC_TABLE_DECORATION_OPT_FOREGROUND_COLOR
  • ETSC_TABLE_DECORATION_OPT_BACKGROUND_COLOR
  • ETSC_TABLE_DECORATION_OPT_ICON
  • ETSC_TABLE_DECORATION_OPT_RIGHT_JUSTIFIED
  • ETSC_TABLE_DECORATION_OPT_CENTER_JUSTIFIED
  • ETSC_TABLE_DECORATION_OPT_INDENTED

This callback is associated with a table in op_etsed, as the ETS Decoration Proc.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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