Download LabWindows/CVI User Interface Reference Manual

Transcript
Chapter 4
User Interface Library Reference
For example, you can paste a picture of a control onto the system clipboard by calling
GetCtrlDisplayBitmap and then passing the bitmap ID to ClipboardPutBitmap.
You can discard the bitmap object by passing the ID to the DiscardBitmap function.
Parameters
Input
Output
panelHandle
integer
The specifier for a particular panel that is contained in
memory. This handle will have been returned by the
LoadPanel, NewPanel, or DuplicatePanel
function.
controlID
integer
The defined constant (located in the .uir header file)
which was assigned to the control in the User Interface
Editor, or the ID returned by the NewCtrl or
DuplicateCtrl function.
includeLabel
integer
If nonzero, the control label is included in the image.
bitmapID
integer
An ID that serves as a handle to the bitmap object.
Return Value
status
integer Refer to Appendix A for error codes.
See Also
ClipboardPutBitmap, GetBitmapData, GetPanelDisplayBitmap, SetCtrlBitmap,
PlotBitmap, CanvasDrawBitmap, DiscardBitmap.
GetCtrlIndex
int status = GetCtrlIndex (int panelHandle, int controlID, int *itemIndex);
Purpose
This function returns the current index of the specified list control.
© National Instruments Corporation
4-95
LabWindows/CVI User Interface Reference