11-08-2005 05:14 AM
11-08-2005 05:59 AM
Dear Erwin,
if you set a control as indicator in the UIR editor it shouldn't be possible that it is highlighted as other controls with the grey dotted box apart the case that the operator clicks or double-clicks on it: indicators infact are skipped when tabbing through controls with the TAB key and they shouldn't respond to shortcut keys.
To prevent selecting indicators, I use to set a callback for them that swallows (rejects) mouse and keyboard events:
/***************************************************************************/
int CVICALLBACK rejectFocus (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event) {
case EVENT_COMMIT:
case EVENT_RIGHT_CLICK:
case EVENT_LEFT_CLICK:
return 1;
default:
break;
}
return 0;
}
11-08-2005 11:45 AM