labwindowscvi中table控件怎么用
1个回答
2016-07-09
展开全部
1、在用Tab键移动光标时,是按照 CVI自动根据.uir文件生成的那个.h文件中定义的控件ID移动的,打开那个.h文件你会看到#define PANEL 1 #define PANEL_…… n(n是整数,为控件ID),光标就是在可被光标选中的控件间按照这个ID顺序循环移动的。
int InsertTableRows (int panelHandle, int controlID, int
rowIndex, int numberOfRows, int cellType);
Purpose
Inserts new rows into a table control at the specified one-based
index.
The indexes of existing rows at and beyond the specified index are
increased by the number of rows inserted.
This function creates a new cell for each column in the table.
Parameters
Input
Name
Type
Description
panelHandle
int
Specifier for a particular panel that is currently in memory. You obtain
this handle from LoadPanel, NewPanel, or DuplicatePanel.
controlID
int
The defined constant, located in the .uir
header file, that you assigned to the control in the User Interface Editor, or
the ID returned by NewCtrl or DuplicateCtrl.
rowIndex
int
The one-based index into the table where the function inserts the first new
row.
Pass –1 to insert the first new rows at
the end of the table.
numberOfRows
int
The number of new rows to insert.
cellType
int
The cell type of the cells that might be created as a result of creating the
new rows. The following table lists the possible cell types.Constant Name
Constant Value
VAL_CELL_NUMERIC
int InsertTableRows (int panelHandle, int controlID, int
rowIndex, int numberOfRows, int cellType);
Purpose
Inserts new rows into a table control at the specified one-based
index.
The indexes of existing rows at and beyond the specified index are
increased by the number of rows inserted.
This function creates a new cell for each column in the table.
Parameters
Input
Name
Type
Description
panelHandle
int
Specifier for a particular panel that is currently in memory. You obtain
this handle from LoadPanel, NewPanel, or DuplicatePanel.
controlID
int
The defined constant, located in the .uir
header file, that you assigned to the control in the User Interface Editor, or
the ID returned by NewCtrl or DuplicateCtrl.
rowIndex
int
The one-based index into the table where the function inserts the first new
row.
Pass –1 to insert the first new rows at
the end of the table.
numberOfRows
int
The number of new rows to insert.
cellType
int
The cell type of the cells that might be created as a result of creating the
new rows. The following table lists the possible cell types.Constant Name
Constant Value
VAL_CELL_NUMERIC
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询