How to Select (Highlight) a GET Field with a Mouse ClickLast reviewed: April 30, 1996Article ID: Q128513 |
The information in this article applies to:
SUMMARYWith the default settings, when you can press the TAB key to move into a GET field, the field that becomes active is selected (highlighted). This is due to having the "Select Field on Entry" Option selected under the Field properties dialog box for the object. However, clicking the mouse to move into a GET field positions the mouse pointer (cursor) at the position you clicked in the field. This article shows by example how to have a mouse click work the way the TAB key works to select (highlight) the GET field.
MORE INFORMATIONTo make the mouse click select the field on entry, add the following code to the WHEN clause under the field Properties as a Procedure:
KEYBOARD '{HOME}' && Sends the cursor to the start of the field. KEYBOARD '{SHIFT+END}' && Selects entire field if text is clicked. KEYBOARD '{CTRL+A}' && Selects entire field (See note below)Retain the "Select Field on Entry" option so the TAB key functions correctly. NOTE: The KEYBOARD '{SHIFT+END}' command handles the case where the user clicks to the left of the first character. In that case, without the KEYBOARD '{SHIFT+END}' command, the previous field is highlighted. Similarly, the KEYBOARD '{CTRL+A}' command ensures the entire field is selected (highlighted) if the user clicks in a blank area to the right of the text.
|
Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |