Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 30 JUN 1998 07:41:31PM Chris Vaughan wrote:

I seem to recall reading something some years ago that described how one might add functionalty to EDIT. I think you could assign keys that would trigger user exits that would pass the key, record and current cursor position.

I have scanned all the Tech Bulletins that I can lay hands on, and found nothing.

Is there a such a facility (with appropriate documentation) or have I just dreamt it up ?


At 01 JUL 1998 06:16AM Andrew P Mcauley wrote:

From SENL Vol 1 Issue 2

If you'd forgotten that the editor stored its details in @Record then you weren't alone. In fact we got so excited by this that we quickly hacked together the following program which adds three new softkeys into the editor as follows Alt-F1 if on a GoSub line, go to that GoSub, if not, show all available GoSubs and let the user choose. Alt-F2 return to the last place gone from (allows hopping from a GoSub back to where the user was originally. Alt-F3 edit the subroutine/function at the current line OR show all called subroutines/functions and allow the user to choose. Cool or what?! Remember to change Editor Softkeys use CW EDIT_SOFTKEYS at TCL and put this program compiled in SYSOBJ. Oh yes, and you'll need a simple popup in SYSPOPUPS, and a modified Window_Common with no dimensioned variables!

amcauley@sprezzatura.com

Sprezzatura Ltd

World Leaders in all things RevSoft


At 01 JUL 1998 12:38PM Victor Engel wrote:

That's with versions 2.12 and later, right? I think there are also some common variables that EDIT uses that you can manipulate, but I don't remember what they are (or maybe I'm just remembering wrong).


At 01 JUL 1998 05:14PM Matt Crozier wrote:

I seem to recall that the editor uses %WINDOW_COMMON for certain things. Not sure, though

Matt.


At 02 JUL 1998 05:26PM Aaron Kaplan wrote:

The editor uses scribe and you have access to everything from there. I don't know what scribe_state and the other have during a plain, vanilla edit session. Paint itself uses window common very heavily.

akaplan@sprezzatura.com

Sprezzatura, Inc.

www.sprezzatura.com_zz.jpg


At 05 JUL 1998 08:40PM Paul Rule wrote:

I was playing with the method suggested by Andrew Mcauley to add functionality to the Editor. I was wondering if anyone could tell me how to determine the cursor position or the field position of @RECORD in the editor. Window_common doesn't seem to have this.


At 06 JUL 1998 05:00AM Andrew P McAuley wrote:

Sorry Paul I assumed you'd download the SENL article from our web site (they are free) so I didn't clog bandwidth by posting more examples… here we go - see WC_Scribe_State%

GoTo: NewLine=Field(WC_Scribe_State%, @Rm, 2) NewLine=Trim(NewLine) If Unassigned(ToGoTo) Then If Indexc(NewLine, "Gosub", 1) Then ToGoTo=Field(NewLine, " ", 2) End Else ToGoTo=" End End If ToGoTo Then Prog=@Record Mark=0 ; Pos=0 NewRow=" LineNo=1 Found=0 Loop Remove NextRow From Prog At Pos Setting Mark If NextRow-1,1=:" Then If NextRow1, ":" _eqc ToGoTo1, ":" Then Found=LineNo End End LineNo += 1 Until Found While Mark Repeat If Found Then CurrentLine@=Field(WC_Scribe_State%, @Rm, 4) @Data=Char(7) : Found : \0D\ GoneTo=1 End Else Call Msg("|Subroutine does not exist|Create?|", "BNY", Resp) If Resp Then @Record := @Fm : @Fm : ToGoTo1, ":" : ":" : @Fm : @Fm : "Return" CurrentLine@=Field(WC_Scribe_State%, @Rm, 4) @Data=Char(7) : LineNo + 2 : \0D09\ GoneTo=1 End End End Return

amcauley@sprezzatura.com

Sprezzatura Ltd

World Leaders in all things RevSoft

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/b70a71ab8cfb411085256633008224d2.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1