 MPN
		
			MPN
		
		
		
		
		
		
		
		
	
			01-07-2008 09:29 AM
 Wim S
		
			Wim S
		
		
		
		
		
		
		
		
	
			01-08-2008 04:43 AM
 Wim S
		
			Wim S
		
		
		
		
		
		
		
		
	
			01-08-2008 04:55 AM
Hello again,
A possible work-around for your problem is faking the F2 keypress when a table cell is left clicked. To do so, you have to insert some code in the callback function of the table:
int CVICALLBACK TableCallback (int panel, int control, int event, void *callbackData, int eventData1, int eventData2) {
 Point tablecellPt;
 
 switch (event) {
  case EVENT_LEFT_CLICK_UP:
   
   // Check if a table cell is left clicked.
   GetTableCellFromPoint (pnlHandle, PNL_TABLE, MakePoint (eventData2, eventData1), &tablecellPt);
   if (PointEqual (tablecellPt, MakePoint (0, 0))) return 0;
   
   // Simulate F2 keypress.
   FakeKeystroke (VAL_F2_VKEY);
    
   break;
 }
 return 0;
}
Take a look at the example I wrote in the attachment.
I hope this helps you out.
 
01-08-2008 02:21 PM
01-09-2008 02:32 PM