Re: [Clip] clip code for automatically returning to source document
- just record the cursor position at start by writing to variable
and on return, set cursor to that variable position
you may need to write the cursor variables
here is a little piece I used once which is close:
;Store position of cursor
;Move the cursor back to the saved position
This one obviously goes to variable row and position 1.
I think I have one that does exactly what you want ... I am looking for it.
If you need an html fix visit
in easy tutorials with live help and forums
to fix your problems
----- Original Message -----
From: "Jeff Scism" <scismgenie@...>
Sent: Sunday, October 19, 2003 9:59 AM
Subject: [Clip] clip code for automatically returning to source document
> Is there a way to tell notetab to return to the original source document
> (at the top, or last cursor position) after cutting and pasting to a
> NEW document?
> Jeff Scism, IBSSG
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
- try this it is getting closer:
^!Find "^P" CIS
^!InsertHtml <br />^$GetSelection$</p>
- Hi Jeff and Don,
At 06:59 AM 10/19/03 -0700, you wrote:
>Is there a way to tell notetab to return to the original source documentI believe that you are referring to the document tabs rather than the
>(at the top, or last cursor position) after cutting and pasting to a
cursor position in the current document as Don seems to suggest in his
post. You do mention the cursor position in your post but only in
association with returning to the source document. If you want to always
go to the top of the document, just place the code ^!Jump 1 at the end of
your code and that will always place the cursor at the top of the document
in focus or at the top of the current topic in an outline document. If you
want the cursor to return to its previous position in the document you only
need to switch tabs back to the source document and the cursor will be
located in that position.
To switch document tabs in a clip you need to use the code below:
Returns the index position of the active document, or the document refered
by the Name parameter
Activates the document at the specified position in the tab bar. First
document is 1.
Just set a variable before you switch to a new document. Here is an example:
;Before you open the new document and paste to it
;Which stores the index for the current document tab in the variable ^%IDX%
^!Toolbar Paste New
;Opens a new document and pastes the cut/copied text into it.
;Returns the focus to the previous document tab that was in focus when the
^!Toolbar Paste New command
;was executed. The cursor position will be where it was when the clip
switched it to the new document.
;If you want the cursor at the top just add