>>In a text box control I need to determine the user action that triggered either When or GotFocus events: was it TAB key, Left Mouse click or Right mouse click? LASTKEY() doesn't return mouse clicks, neither does KeyPress. When and GotFocus events fire before Click or RightClick; MouseDown doesn't fire at all in this scenario, so far as I can determine; and the MouseEnter nButton parameter returns zero, regardless of which mouse button is used.
>>
>>This seems so simple there must be some solution staring me in the face that I'm too fogged over with New Year's grog to see. Any ideas?
>
>Don't know off-hand about differentiating between left and right,
>but, for clicking into a control vs. non-clicking, at the top of the
>When, put --
>
>LOCAL llMousedIn
>llMousedIn = MDOWN()
Returns only True/False for any mouse button, no differentiation.
Ray Roper