09-16-2005 05:22 AM
09-16-2005 06:09 AM
Take a look at this document:
As an alternative, I used this code to determine and hilight a row in a table when it is clicked on: you may start from this to develop your own application.
switch (event) {
case EVENT_LEFT_CLICK:
case EVENT_RIGHT_CLICK:
// Determine mouse position in the table
GetTableCellFromPoint (panel, control, MakePoint (eventData2, eventData1), &cell);
if (cell.x == 0 && cell.y == 0) return 1; // Not on a row/col
GetNumTableRows (panel, control, &r);
// Highlight the row
SetTableSelection (panel, control, VAL_TABLE_ROW_RANGE (cell.y));
// Other code here
break;
}
09-21-2005 03:44 AM