General information
Category:
Forms & Form designer
Cant get SelLength to work. Appears that i have to use SetFocus. This works:
DODEFAULT()
WITH This
.SelStart = 1
.SetFocus()
ENDWITH
>>>Maybe my perception of this command is incorrect...
>>>
>>>Was hoping to select the entire field value of the textbox in a grid column when i click into the textbox. Users can enter a value of 99.9 into the text box. Want to avoid having the user click into the text box at the position to the right of the decimal. Was expecting SelectOnEntry to select the entire value. Instead, the cursor is placed wherever the user clicked.
>>>
>>>I have Format = K and SelectOnEntry = .T. for both the COLUMN properties and for the textbox in the column.
>>>
>>>Am using Nick's GridHighlighter. There is a "lSelectOnEntry" property on his class and i have set this to TRUE. Doesnt help. And tabbing from one column into this 99.9 column also does not select the entire field value.
>>>
>>>Any ideas?
>>
>>I don't know about the grid textbox, but some classes that other people have written have a 'seltext' property that is set to a high number so that clicking in the control selects the entire value.
>>
>>HTH
>
>Methinks this should be .SelLength, whereas .SelText represents the actual contents.
>
>Hilmar.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only