home *** CD-ROM | disk | FTP | other *** search
- /*
- ** $VER: FindAutoDocAG.bed 1.0 (14.01.96)
- **
- ** Display the AmigaGuide AutoDoc of the System Function under the cursor
- **
- ** It needs:
- ** - The AmigaGuide AutoDocs in ADGUIDE:
- ** - The Cross-Reference file ADGUIDE:AutoDocs.xref
- */
-
- xreffile = "ADGUIDE:autodocs.xref"
-
- OPTIONS RESULTS
- GetWord
- word = RESULT
- OPTIONS
-
- IF ~SHOW('L','amigaguide.library') THEN
- CALL ADDLIB('amigaguide.library',0,-30)
-
- line = GetXRef("OpenWindow()")
-
- IF line = 10 THEN DO
- SetStatusBar TEMPORARY 'Loading cross-reference file...'
- a = LoadXRef(xreffile)
- END
-
- function = word
-
- data = GetXRef(function)
-
- IF data = 10 THEN DO
- function = word || "()"
- data = GetXRef(function)
- IF data = 10 THEN DO
- SetStatusBar "Cross-reference not found for" word
- EXIT 5
- END
- END
-
- PARSE VAR data '"' document '"' '"' database '"' . line
-
- SetStatusBar 'Loading '||function||'...'
-
- IF ~SHOW('P','AUTODOCS') THEN
- ADDRESS COMMAND "Run AmigaGuide DATABASE" database "DOCUMENT" document "LINE" line "PortName AUTODOCS PubScreen Blacks_Editor"
- ELSE DO
- ADDRESS AUTODOCS "ALink" document
- ADDRESS AUTODOCS "windowtofront"
- END
-