LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Table control focus

Hello,

 

I have a table control on a panel with 'hot' control mode.  

 

When I use the scroll bar and scroll through the data it appears that the table loses focus after scrolling is complete.   The focus is set on another button on the panel.

 

I am updating the table contents periodically through a timer callback.  In this routine I set ATTR_VISIBLE for table to 0 at beginning of routine and then set back to 1 at end.

 

I guess I'm expecting that the table would retain focus if the user scrolls through the data.

 

Does anybody know any tricks or workarounds to accomplish this?

 

Thanks,

 

 

0 Kudos
Message 1 of 3
(4,095 Views)

Hello,

 

Take a look at this: http://forums.ni.com/t5/LabWindows-CVI/How-do-I-set-table-cell-focus/td-p/229239

 

Try seting the active table before updating the contents?

 

 

0 Kudos
Message 2 of 3
(4,062 Views)

Hi jharris66,

 

In the routine that updates periodically your table, if you set ATTR_VISIBLE to 0, you will lose focus. That is normal.

If I were you, i would check at the begining of the update routine if the user is using or scrolling your table. If he is, then do NOT execute your routine code, you will update your table when the user is not using your table.

You can do this with a simple variable that you will test in a if structure in your routine.

 

I hope it will help you,

 

Vincent

0 Kudos
Message 3 of 3
(4,055 Views)