02-06-2007 03:19 AM
02-06-2007 07:11 AM
Hello Mayda,
which version of CVI are you working with? In CVI8 this is a built-in feature.
02-07-2007 02:15 AM
02-07-2007 02:53 AM
Hello Mayda,
the only thing I can think of is using a picture that looks like a button. Then, when the callback function of the table is called with the EVENT_LEFT_CLICK event, use the GetTableCellFromPoint function to check if the "button" is clicked.
If you want to make it look more realistic, use two pictures. One picture for the regular button, and another one that looks like that button being pressed. If the tablecell is clicked, display the "pressed button" picture until the user releases the mouse button (use GetGlobalMouseState or GetRelativeMouseState in a while-loop to check this).
Maybe someone else has a better idea...?
Success,
Wim
02-07-2007 01:38 PM - edited 02-07-2007 01:38 PM
Message Edited by cdk52 on 02-08-2007 05:39 AM
Message Edited by cdk52 on 02-08-2007 05:46 AM