Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Return to same cursor position after field exit


This topic is 7325 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I highlight some text in a text field with scroll bars, apply a script to do things with that highlighted text and want to be able to return to that same location with that same text still highlighted after running that script.

HELP !

Posted

Set two global number fields at the beginning of the script (or pass them as script parameters) with the Get(ActiveSelectionStart) and Get(ActiveSelectionSize) functions. Then use this data at the end of your script in a Set Selection step. Start Position will be the contents of the 'SelectionStart' global and End Position will be SelectionStart + SelectionSize.

Posted

Queue,

The higlighting works great. Thanks! I'm still not able to get the field to scroll to the highlight (this particular record has 17 scrollable pages) I tried "scroll to selection" but to no avail.

Thanks again...

Posted

I don't know if there is an easy way to scroll to include the full highlight, sorry.

This topic is 7325 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.