Hackers Guide to Visual FoxPro 7.0
HideSelection
This property determines whether selected text remains highlighted when focus moves to another control. The default is for the highlight to disappear when focus changes.| Usage | oObject.HideSelection = lHideIt lHideIt = oObject.HideSelection |
| | HideSelection doesn't affect spinners at all. That's because spinners don't remember their selection properly as soon as they lose focus. See SelLength for the details on this bug. |
You'll usually want to leave HideSelection set to .T. Things get confusing when too many highlights appear. Setting HideSelection to .F. (that is, letting all the highlights show) seems most useful when you want to perform some operation on the selected text.
| Example | ThisForm.Edit1.HideSelection = .F. |
| See Also | ComboBox, EditBox, SelLength, SelStart, SelText, Spinner, TextBox |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.
Категории