Loading ...
Sorry, an error occurred while loading the content.

20817Re: [Clip] Page navigation

Expand Messages
  • hsavage
    Jun 30, 2010
    • 0 Attachment
      hsavage wrote:

      > Since you asked about page navigation I wrote the following
      > clip. It has 'Doc_Start', 'Doc_End' and 19 other choices in 5%
      > increments between those 2.
      >
      > The clip should be especially helpful with large files. It adjusts
      > to each file of varying size in turn, that you might be
      > scanning/editing. The clip doesn't display percentages, instead it
      > displays actual line numbers. The clip works very well, I decided to
      > incorporate it into my own personal clipbar.
      >
      > You will need to know how to copy and paste the clip into one of your
      > libraries and then create an icon entry for the clip in one of your
      > clipbars for very fast access. If you have any problems ask for help
      > on the list.
      >
      > Here's the Clip; Long, wrapped lines, shouldn't be a problem.
      >
      > --------------------------------------
      >
      > H="Jump TO"
      > ; • Modified-Updated~Created
      > ; • hrs ø 2010.06.30_12:51:58p
      > ^!SetWizardWidth 55
      > ^!SetScreenUpdate 0
      > ^!SetListDelimiter |
      > ;_
      > ^!SetArray
      > %pct%="05|10|15|20|25|30|35|40|45|50|55|60|65|70|75|80|85|90|95"
      > ^!Set %loop%=0; %count%=^%pct0%
      >
      > --------------------------------------

      Sarah and list,

      The clip above needs a slight mod. If the variable memory isn't
      cleared upon the next execution the line counter has more than the
      designated entries in it. This is the fix.

      If Statusshow and Delay are commented or removed execution is instant.

      --------------------------------------
      H="Jump TO"
      ; • Modified-Updated~Created
      ; • hrs ø 2010.06.30_12:51:28p
      ^!SetWizardWidth 55
      ^!SetScreenUpdate 0
      ^!SetListDelimiter |
      ;_
      ^!SetArray
      %pct%="05|10|15|20|25|30|35|40|45|50|55|60|65|70|75|80|85|90|95"
      ^!Set %loop%=0; %count%=^%pct0%
      :LOOP
      ^!Inc %loop%
      ^!Append %here%=^$Calc(^$GetLineCount$ * .^%pct^%loop%%;0)$^%nL%
      ^!If ^%loop% < ^%count% LOOP
      ;_
      ^!Set %here%=^$StrReplace("^%nL%";"|";"^$StrTrim("^%here%")$";0;0)$
      ^!Set %where%=^?{(H=20)JUMP TO 'LINE OF
      DOCUMENT'?==Doc_Start|^%here%|_Doc_End}
      ^!IfCancel CLEAR
      ^!Jump 1
      ^!StatusShow Jumping to •• ^$StrReplace("_";"";"^%where%";0;0)$ ••
      ^!Delay 12
      ^!Jump ^%where%
      ^!SetView ^$Calc(^$GetRow$ - 11)$:1
      :CLEAR
      ^!Set %here%=^%empty%; %where%=^%empty%
      --------------------------------------


      ·············································
      ºvº SL_day# 182 - created 2010.07.01_00.12.03

      Newspaper HeadLine...
      • Include your Children When Baking Cookies

      € hrs € hsavage € pobox € com
    • Show all 8 messages in this topic