LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Image for a Cell in Table Control

Is there a way to set the image for a cell at runtime? I am able to set the
image in the UI editor, but can not locate the function that will do that
from code.
0 Kudos
Message 1 of 2
(2,602 Views)
To insert an image in a cell you can use SetTableCellVal (or SetTableCellAttribute with ATTR_CTRL_VAL which should be faster). As stated in the CVI help for the "value" parameter:

"If the cell type is VAL_CELL_PICTURE, the function expects an id of the bitmap containing the new image. Must be a value obtained from one of the following functions:
NewBitmap, GetBitmapFromFile, GetCtrlBitmap, ClipboardGetBitmap, GetCtrlDisplayBitmap, GetPanelDisplayBitmap, GetScaledPanelDisplayBitmap, GetScaledCtrlDisplayBitmap"

Hope this helps
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,602 Views)