Menubar

Its Own Menubar

menubar

GLX2 Script Editor has its own menubar that appears whenever you bring the GLX2 window forward.

Basic Function of Each Menu

 Revolution - About GLX2; Preferences 
• File - Open/create new stack; save parent stack 
• Edit - cut/copy, etc (this menu contains Preferences on Windows)
• Tools - like Rev menu, except Execution Errors 
• Go - navigation, find, go to line, edit props 
• Script - do something to a script (comment, etc.) 
• Handlers - go to a handler in script or edit defaults 
• Tabs - navigate tabs or open/close them 
• Crumbs - manage your bread crumbs 
• Window - let's you choose another window 
• Help - docs such as they are (this menu contains About GLX2 on Windows)


Revolution Menu

about

About GLX2... brings up the about box.

about2


Rev Menu, Part Deux

prefs

Preferences... brings up the prefs palette which shows the View Prefs for all editing. This palette also shows the preferences for Clairvoyance (more on this in a moment), and the Global or behavioral preferences.

There is a Preferences Section of the online documentation that you can read, also.


File Menu

File_Menu

The first four menu items are the same as they are in Revolution.

Close Script Editor hides the script editor. It doesn't really close it.

Save Parent Stack saves the mainstack to which the edited object belongs.

Save Parent Stack without Dev Resources saves the parent stack without any of the custom settings that GLX2 stores during the development process. We are considering other approaches that will not necessitate the use of dev resources, but so far they have proved to be more useful than troublesome.

Achive Parent Stack saves an archived copy of the parent stack in a folder called "archive" at the same level as the stack file.

Autosave is a checked menu item indicating whether or stack files are being sav every n number of compiles. The n value will be set in the prefs palette.

Autoarchive is a checked menu item indicating whether or stack files are being archived every n number of compiles. The n value is set in the prefs palette.

Page Setup brings up a standard page setup dialog.

Print... brings up a print dialog that prints either the entire script if no portion of the script is selected, or the selected portion of the script.


Edit Menu

Edit_Menu

CutCopyPaste, and Select All do the standard stuff.

Paste as Formatted String does the same stuff the Rev menu item by the same name does.

Paste as Comment does the same stuff the Rev menu item by the same name does.


Tools Menu

Tools_Menu

Except for Execution Errors, this menu does all the same stuff that the Rev menu by the same name does.

When you do choose Execution Errors, the last Execution Error that was thrown appears.


Go Menu

Go_Menu

Go to Line... displays a simple dialog asking for the line number of the script that you want to see. It remembers and displays the last line number you entered, in case you want to find the same line again.

Edit the Props of this Object edits this object's properties. If you are running Galaxy, it goes to Galaxy Props, if Rev, the Property Inspector.

Edit Script of Owner edits the object that "owns" the current object being edited. If you are editing a card script, you will be editing the stack script of the card after choosing this menu item.

Show Object in Projects reveals the current object in Galaxy Projects, if you have that running. If you are using Revolution, then this menu item will be Show Object in App Browser but will not take you there if you choose it in this version.

Find Selection/Again finds whatever is selected in the GLX2 Script Editor. If nothing is selected, it finds the last string you were trying to find with this menu item or the last string you were trying to find with the Find & Replace facility in GLX2.

Find Orphaned "Put" Statements takes you to the first line of the script following the insertion point (or selection) where there is a "put" statement without a destination.

Find & Replace opens the Find & Replace pane in the script editor just below the black bar (aka Crumb Bar) near the top.

Fancy Find & Replace displays a mock up of dialog based find facility similar to BBEdit's. Clicking anywhere on this mock up window will dismiss it and clicking on the Find All button on it will show a find results screen which is also a mock up.

Global Find & Replace displays Revolution's find and replace that is used to search across all open objects.

Case Sensitive Searching is a search preference for the standard (non-fancy) find. It checks and unchecks itself when you select it and limits searches in script editor so they are sensitive to the case of each char in the search string.

Whole Word Searching is a search preference for the standard (non-fancy) find. It checks and unchecks itself when you select it and limits searches in the script editor so all search results represent whole words only.


Script Menu

image

Compile Script can be activated by typing the enter key (not the return key) or by typing the control + return keys. Obviously, it compiles the current script or throws an error trying.

Revert to Previously Compiled simply places the last compiled version of the script of the current object indicated by the active tab.

Format Handler formats the handler with the insertion point or portions of text selected.

Format All Handlers does just what it says it does.


Divide All Handlers places the "---|---" divider between all handlers that do NOT have a comment above them. This divider is the cSingleDivider custom property of the GLX2 stack. It can, of course be changed. Later on, we may decide to offer the designation of this divider as a preference.

Comment places "--" before the first word of the current line or currently selected lines. In later versions you will be able to set the comment key.

Uncomment removes whatever comment key(s) are at the beginning of the current line or currently selected lines.

Complete Statement will complete whatever statement or control structure you have started, including any parameters that might be part of a command or function.

• If there is more than one command or function that matches the string you have begun typing, then you will be presented with a dialog containing a list of candidates indicating whether they are commands or functions.

• The same process works for system messages like "mouseUp" or "menuPick."

• To complete an "if" control structure, you must have typed the word "then." Similarly, other control structures (repeat, switch, try) require that you type the first line of the structure.

• Typing command + K while the Clairvoyance bubble is present will select the selected line in the Clairvoyance list.

• NOTE: Auto-complete us no longer initiated by typing Option + Right Arrow key as it was in Galaxy. The short cut is now Command + K.

Bracket Selected Code will let you choose a control structure from its submenu, and then place the proper elements of the chosen structure before and after the selected code.

Time Selected Code brackets the selected code with statements that record the time it takes for the selected code to execute. There is a preference that determines whether or not these timing results will be logged to the console or placed in the message box. NOTE: This preference is only applicable to Mac OS X users.

Clear Timing Code removes any timing code placed in the selected code using the previous menu item.

Set Breakpoint will insert the command "breakpoint" in the line prior to the first selected line in the script. GLX2 does not use little red dots to mark lines that are breakpoints.

Clear Breakpoints will comment out all breakpoints in the current script.

Script Debug Mode works as it does with the Rev script editor.

Explict Variables Mode will make the current script require all variables be explicitly declared. This is not a global feature. To set it globally, see the prefs palette.

Declare Temp Vars in Handler will find every temporary variable in your handler and make sure they're declared as local variables within the handler.

Declare Temp Vars in All Handlers will find every temporary variable in every handler in your script and make sure they're declared as local variables within its handler.

Enable/Disable Panes will show or hide the mulitpane editor feature.


Handlers Menu

Handlers_Menu

My Default Handlers lets you edit the your handlers are auto-completed. Whatever handlers are not in My Default Handlers will auto-completed using the GLX2 default handlers.

NOTE: The first time the user opens My Default Handlers, the script will contain all the GLX2 Default Handlers, so the user will have a complete set of system message handlers with which to start.

The remainder of the menu items on this menu will navigate the user to the handler by the same name in the script field. The handler names here are alphabetized and are useful in the event the user has turned off the Sort Handler List or Show Handler List option in the View menu.


Tabs Menu

Tabs_Menu

First Tab takes you to the first tab on the script editor.

Prev Tab takes you to the tab positioned just before the current one.

Next Tab takes you to the tab positioned just after the current one.

Last Tab takes you to the last tab on the script editor.

Close Tab closes the current tab and causes the one to its left to be come activated. If there is only one tab open and it is closed, then the script editor returns to its blank or default condition. Typing the escape key also closes the current tab.

Close All Tabs closes all tabs and returns the script editor to its blank or default condition as it was on startup.

Close All except this Tab closes all tabs but the current one. Option clicking the close box of a tab provides the same result.


Crumbs Menu

Crumbs_Menu

Add Handler to Bar - whatever handler has the insertion point or a portion of its text selected, this menu item will add that handler's name to the crumb bar. 
Remove All Crumbs - this is the way to clean off your crumb bar. 
Remove Hot Crumb - whichever crumb is red (or yellow in Chalkboard motif) will be removed. You can also option+click on any crumb in the bar and it will be removed. 
Remove All except Hot Crumb - this choice removes all crumbs but the "hot" one.


Window Menu

Window_Menu

This menu works exactly like Revolution's Window menu, except that Send Window to Back doesn't show every invisible stack in the process of sending the front stack to the back. GLX2 patches this bug.


Help Menu

help_menu

Choosing one of the first seven menu items on this menu will take you to the corresponding GLX2 help pages on the web.

Read Change History will open a text file showing all the changes to GLX2 that have taken place.

When Does My License Expire? shows an alert with your expiration information.

Enter New Registration Code... lets you enter a new registration code that you might receive upon renewal or when your license gets extended as part of the Galactic Ambassador program.

Check for Latest Beta... helps you find out if there's a beta version of GLX2 that you can use or test.

Check for Latest Release... helps you find the most recent release version of GLX2.

GLX2 Developed by Daniels & Mara  •  GLX2 Prices & Ordering