Login
`
Templates, Tools and Utilities
|
||
Icetips Article
Back to article list
Search Articles
Add Comment
Printer friendly
Direct link
Par2: Using SelStart and SelEnd to select entire field 2006-03-27 -- Kelly Major >When I tab onto a numeric entry field, the entire field is selected (Insert
>Mode).
>
>When I click on it, the cursor assumes a positon within the field.
>
>I want the entire field to be selected when clicking just like it is when
>tabbing
>
>Where CO1:StandardCost is defined as @n9.3
>
>I embed:
>
>?CO1:StandardCost{Prop:SelStart} = 1
>?CO1:StandardCost{Prop:SelEnd} = 9
>
>in CO1:StandardCost's selected embed.
>
>I would think this should work but it doesn't.
Here's what I do..
Alert MouseLeft on the field...
then embed in Control Events->Field1->AlertKey (before generated
code)...
IF KEYCODE() = MouseLeft
SELECT(?,LEN(?{PROP:ScreenText}))
?{PROP:SelStart} = 1
?{PROP:SelEnd} = LEN(?{PROP:ScreenText})
END
Today is November 21, 2024, 8:16 am This article has been viewed 35326 times.
|
|