` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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 May 12, 2024, 3:27 pm
This article has been viewed 35125 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: