Category Custom user interface, Object ProUITable

Function ProUITableComponentCopy


Description
Copies a predefined component and places it in the table. The component will not be displayed until it is assigned to a table cell using ProUITableCellComponentNameSet(). However, you can update the component's properties as needed and display it at a later time.
Synopsis
#include <ProUITable.h>
ProErrorProUITableComponentCopy(
char* dialog
/* (In)
The name of the dialog that contains the table.
*/
char* component
/* (In)
The table name.
*/
char* source_device
/* (In)
The name of the dialog from which to copy the component.
*/
char* source_component
/* (In)
The name of the component to copy.
*/
char* name
/* (In)
The name for the copied component in the table.
*/
)
Returns
PRO_TK_NO_ERRORThe function was successful
PRO_TK_GENERAL_ERRORThe function failed
PRO_TK_BAD_INPUTSAn invalid argument was given
See Also
ProUITableCellComponentNameSet
ProUITableCellComponentCopy
ProUITableComponentDelete

Manual References:

  1. User Interface: Dialogs: Table Operations
  2. User Interface: Dialogs: Table Operations

Sample Code References:

  1. pt_userguide ( UgUITables.c )