LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Popup menu doesn't appear when table in indicator mode

Hi,
in CVI 7.1, popup menu of a table control appeared even if the table was in indicator mode. It seems that in CVI 8.0, the popup menu never appears when table is in indicator mode. Is there any solution to have the popup menu appearing in all cases?
Thanks.  
0 Kudos
Message 1 of 2
(2,982 Views)
You're correct. This behavior did change in 8.0, because we considered it a bug that the menu would be operable when the table is in indicator mode. When a control is in indicator mode, nothing should be able to modify the control's data, and the built-in menu items do modify the state of the table. The same applies to tree controls.

If you prefer the old behavior, a possible workaround would be to not make the table an indicator. Instead, you can make all the cells be indicators, using:

     SetTableCellRangeAttribute (..., VAL_TABLE_ENTIRE_RANGE, ATTR_CELL_MODE, VAL_INDICATOR).

This will still prevent users from modifying the contents of the individual cells, but will not prevent the menu from being operable.

Luis
NI
0 Kudos
Message 2 of 2
(2,966 Views)