ClipboardPutTableVals
int ClipboardPutTableVals (int panelHandle, int controlID, Rect cellRange);
Purpose
Copies the data from the specified cell range of a table control onto the clipboard.
(Linux) This function affects only the internal LabWindows/CVI clipboard, not the host system clipboard.
Supported Controls
You can use ClipboardPutTableVals with table controls.
Parameters
Input | ||
Name | Type | Description |
panelHandle | int | Specifier for a particular panel that is currently in memory. You can obtain this handle from functions such as LoadPanel and NewPanel. |
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 functions such as NewCtrl and DuplicateCtrl. |
cellRange | Rect | The Rect structure that specifies the cell range from which to copy the clipboard data. The Rect structure is defined as follows: typedef struct { int top; int left; int height; int width; } Rect; You can create a Rect without having to declare a variable by using the following function: Rect MakeRect (int top, int left, int height, int width); The function places each cell data in the clipboard separated from the neighboring cell data with a tab character. For the last cell in each row, it places a line feed after its data. The function treats cells of type VAL_CELL_PICTURE as cells of type VAL_CELL_STRING containing empty strings. Only the separator tab, or line feed, is copied for such cells. However, if the cell range consists of a single cell, and its type is VAL_CELL_PICTURE, the function copies the corresponding bitmap onto the clipboard. In that case, no text is copied onto the clipboard. |
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. |
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 5.5 and later