TIP: Working with text selections If your users often deal with - TopicsExpress



          

TIP: Working with text selections If your users often deal with specific selections of text within a field, then the following functions and ideas might be of use. Make a custom function or use the following to get the active selection of text. Custom Function Name: GetActiveSelection Middle ( Get ( ActiveFieldContents ) ; Get ( ActiveSelectionStart ) ; Get ( ActiveSelectionSize ) ) You can now use code like this. If [not IsEmpty( GetActiveSelection )] -> Do more stuff When combined with Script steps like Perform Find/Replace and a trigger like OnObjectKeystroke, you can provide a quick and easy intra-field search feature. It would go like this. 1. User double-clicks a word within a field to highlight. 2. User simply presses the n key (next) or p key (previous) to search for the same word within the field. Of course, this feature would need to be modified if you actually want the n or p character to be entered into the text. Try adding a modifier key or a global variable to toggle the feature on/off. Voila!
Posted on: Fri, 12 Sep 2014 00:33:11 +0000

Trending Topics



Recently Viewed Topics




© 2015