home *** CD-ROM | disk | FTP | other *** search
-
- // ───────────────────────────────────────────────────────────────────
- // The Aurora Editor v2.0
- // Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
- //
- // Language Reference Help Topics Menu
- //
- // This macro displays a popup menu of Language Reference topics.
- // Selecting a topic will display the Language Reference and position
- // the cursor to the selected topic.
- // ───────────────────────────────────────────────────────────────────
-
- // compile time macros and function definitions
- include bootpath "define.aml"
-
- // create an inline help topics buffer
- databuf "helplang"
- "Arithmetic Operators"
- "Assignment Statement"
- "Bitwise Operators"
- "Bookmarks"
- "Buffers"
- "Case Statement"
- "Command Line Macros"
- "Comments"
- "Compilation and Execution Functions"
- "Control Statements"
- "Conversions"
- "Current Event Object"
- "Cursors"
- "Define Statement"
- "Desktop"
- "DOS Shell Functions"
- "Events"
- "Expressions"
- "External Macros"
- "File Handling Functions"
- "File Manager Functions"
- "Folds"
- "Function Calls"
- "Function Definitions"
- "Function Return Values"
- "Function Types"
- "Identifiers"
- "If and If? Statements"
- "Include Statement"
- "Internal Macros"
- "Introduction"
- "Iterative Statements"
- "Key Event Names"
- "Key Macro Functions"
- "Keyboard"
- "Library Object Hierarchies"
- "Logical Operators"
- "Macro Types"
- "Marks"
- "Menus"
- "Miscellaneous Functions"
- "Mouse Event Names"
- "Mouse"
- "Numbers"
- "Object Definitions"
- "Object Inheritance"
- "Object Statements and Functions"
- "Objects"
- "On-Event Functions"
- "Operator Precedence"
- "Other Control Statements"
- "Overview"
- "Passing Arguments to Functions"
- "Passing Variables by Reference"
- "Primary Editing Functions"
- "Prompt History"
- "Prompts and Dialog Boxes"
- "Regular Expression Searching"
- "Relational Operators"
- "Reserved Words"
- "Search and Replace"
- "Spaces"
- "String Functions"
- "String Operators"
- "Strings"
- "Syntax Highlighting"
- "Syntax"
- "System Functions"
- "Timers"
- "True and False"
- "Undo and Redo"
- "User Defined Events"
- "Variable Declarations"
- "Variables"
- "Video Functions"
- "Windows"
- end
-
- // name the buffer so the menu position can be remembered
- setbufname "helplang"
-
- // display the buffer in a popup menu and get the topic selected
- topic = popup (getcurrbuf) "Language Reference Topics" 35
-
- // destroy the help topics buffer
- destroybuf
-
- // display the selected topic
- if topic then
- open (getbootpath + "DOC\\" +
- (if? topic [1:3] == "Reg" "REGEXP" "LANGUAGE") + ".DOX")
- gotopos 1 1
- if find topic + ' ' then
- send "onfound" (sizeof topic)
- end
- end
-
-