Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Programmatically Highlight a Table Cell in LabWindows/CVI?

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 2.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I want to programmatically select and highlight a cell in a table using LabWindows/CVI.  However, a border appears around the cell but the cell is not highlighted.

Solution:
The function SetActiveTableCell will be used to highlight the table cell.  However, when you click a button, or other control on on the user interface, the focus shifts from the table.  Only when the table control has focus will the cell be highlighted.  So you will need to call SetActiveCtrl first before calling SetActiveTableCell.  See the attached code for an example.

Related Links:
LabWindows/CVI 8.5 Help: SetActiveTableCell

LabWindows/CVI 8.5 Help: SetActiveCtrl

Attachments:
Test.zip




Report Date: 04/14/2008
Last Updated: 04/15/2008
Document ID: 4KDA069L

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit