Hi,
I'd like to have a check box in my data input screen that could not be entered other than by clicking the mouse on it. That is, when the user fills other fields or presses TAB/Shift-TAB/ENTER to navigate fields it wouldn't get focus, as the rest of the form is keyboard-entered and this box shouldn't be flipped by accident nor demand an extra keystroke to leave it, only reacting in rare cases when the user makes a point to select it. I thought about checking for LASTKEY() in its WHEN routine, but LASTKEY() doesn't recognize mouse clicks like INKEY() does.
Though I have a backup solution - make the checkbox disabled and flip its value by ON KEY LABEL shortcut instead of the mouse, but using mouse for it looks more "elegant" to me. Is it possible?
I'd like to have a check box in my data input screen that could not be entered other than by clicking the mouse on it. That is, when the user fills other fields or presses TAB/Shift-TAB/ENTER to navigate fields it wouldn't get focus, as the rest of the form is keyboard-entered and this box shouldn't be flipped by accident nor demand an extra keystroke to leave it, only reacting in rare cases when the user makes a point to select it. I thought about checking for LASTKEY() in its WHEN routine, but LASTKEY() doesn't recognize mouse clicks like INKEY() does.
Though I have a backup solution - make the checkbox disabled and flip its value by ON KEY LABEL shortcut instead of the mouse, but using mouse for it looks more "elegant" to me. Is it possible?