Syntax10.Scn.Fnt\ParcElemsAlloc Syntax14b.Scn.FntSyntax24b.Scn.Fnt  \ \ Syntax16b.Scn.FntSyntax12.Scn.FntStampElemsAlloc9 Mar 98\ Syntax12b.Scn.FntMarkElemsAlloc LinkElemsAlloc*d*e*f*g*h *i*j*k*l *m*n!*o*p *q ** ****,* d Zr edSyntax12i.Scn.FntfI*eg6h(MsgWindows.ModSyntax10i.Scn.Fnt  ij X* 2k 'lkm*onVop+q yqPopupElemsAllocMenus ...[Syntax10.Scn.Fnt!  ;NMenu --------------------------- Start Off. Menu Off. Startup directory ----------- Start: $ViewerBar.Start.Text Start: $ViewerBar2.Start.Text Menu: $Directories.Menu.Text Menu: $Dirs.Menu.Text Menu: $ViewerBar.Menu.Text Current directory ---------- Start: ViewerBar.Start.Text Menu: Dirs.Menu.Text Menu: Edit.Menu.Text Menu: FourWins.Menu.Text Menu: PopupElems.Menu.Text Menu: Profiler.Menu.Text Menu: System.Menu.Text Menu: ViewerBar.Menu.Text  qMenus ...FSyntax10.Scn.Fnt!  ;NMenu --------------------------- Start Off. Menu Off. Startup directory ----------- Start: $ViewerBar.Start.Text Start: $ViewerBar2.Start.Text Menu: $Directories.Menu.Text Menu: $Dirs.Menu.Text Menu: $ViewerBar.Menu.Text K Zr K*h *p2*n3*nu* *m E* X*Oٮև  jHi **mr V; *j *<fgr qHistory<Syntax10b.Scn.Fnt Syntax10.Scn.FntRemove closed ____________ D*f*j*f+ Zٮև #* * < Zr $ Z f+ #*jO ZT   # A* * : Zr  Zr  IYDocumentation of ViewerBar by Martin Rammerstorfer (MR)  Contents () 1. The ViewerBar commands 1.1. Install 1.2. CloseBar 1.3. ShowTime 1.4. Quit 1.5. ShowOldLogfile 1.6. RemoveClosed 1.7. ClearHistory 1.8. Recall 1.9. Refresh 1.10. OpenEdit ^ / OpenSystem ^ 1.11. Hide ("on"/"off") 1.12. Info 1.13. LocalTexts 2. The ViewerBar menu 2.1. Start 2.2. *.Start.Text 2.3. *.Menu.Text 2.4. Viewer-PopupElems 2.5. History 3. Author 1. The ViewerBar commands 1.1. Install Installs the ViewerBar in the user-track of the Oberon System (Left track). The ViewerBar - mode is normally set to "Hide off". And the default menus are "$ViewerBar.Start.Text" and "$ViewerBar.Menu.Text", if they exist. The menus *.Start.Text are shown in the "Start"-PopupElem, and the menu *.Menu.Text is shown at the right of the "Start"-PopupElem. Note: You should not unload the module ViewerBar, a procedure of module ViewerBar is installed in a procedure variable of module Directories. Calling this procedure variable would cause trap if the referenced module were unloaded. 1.2. CloseBar Closes the ViewerBar. You can re-install the ViewerBar with the command ViewerBar.Install . 1.3. ShowTime Prints the current time and date to the Log-viewer. 1.4. Quit This command shows at first a message (MsgWindows) and you have to confirm the Quit-command. If you select "No", the MsgWindow will be closed and the command will be cancelled. If you select "Yes", the messages: ViewerBar.Quit at current time - current date Storing System.Log will be added to your System.Log-viewer, the Log-viewer will be stored to the file "$System.Log". Finally the command System.Quit is executed. 1.5. ShowOldLogfile Opens the file "$System.Log", i.e. the Log-viewer of the last session with the Oberon System will be opened (If you have exited the Oberon System with ViewerBar.Quit). 1.6. RemoveClosed Removes the closed viewers from the ViewerBar-menu, and insert them into the History. (Suspended viewers are handled as closed viewers) 1.7. ClearHistory Disposes all viewers in the history. 1.8. Recall Recalls all viewers from the history, i.e. the viewers are moved from the history to the ViewerBar-menu. 1.9. Refresh Refreshes the ViewerBar, i.e. the ViewerBar will be closed and then it will be re-opened with the same state (Closed viewers won't be disposed). If you execute the command System.Grow, a new track is drawn over the current track. If you close all viewers in this track, the track won't be restored until the ViewerBar is closed (This problem doesn't occur, if you have turned the automatic hide on). This command is also necessary if you change the directory and so you have to update the ViewerBar, to register this directory change. 1.10. OpenEdit / OpenSystem Opens a file in the user or the system track (Similar to Edit.Open and System.Open). 1.11. Hide The ViewerBar - mode is normally set to "Hide off". If you call ViewerBar.Hide "off", the ViewerBar is always shown in the same way. If you call ViewerBar.Hide "on", the ViewerBar hides itself (only one line is visible) after a short time, when the mouse-pointer points not on the ViewerBar, if the mouse-pointer is moved on the visible ViewerBar-line, the ViewerBar will be restored. Note: On Windows 95 / Windows NT 4.0 the task-bar should removed from the bottom to another place, because of a better handling of the hidden ViewerBar. Note: On the PowerMac it is possible, that there is an additional line at the bottom of the screen, which makes the handling of the hidden ViewerBar a bit difficult. In this case you should turn off the automatic hiding of the ViewerBar. 1.12. Info Shows info about the ViewerBar (author). 1.13. LocalTexts Shows or hides the list of the menus (*.Start.Text and *.Menu.Text) in the Start-menu (this is the list in the section "Current directory -------------"). If you call ViewerBar.LocalTexts "off", the list will not shown, if you call ViewerBar.LocalTexts "on", the list will be shown. Examples: "on":  / "off":  Note: If you change the directory, this list will be automatically updated. 2. The ViewerBar menu 2.1. Start The PopupElem "Start" consists of (from bottom to top) some commands: - ViewerBar.Quit:Quit the Oberon System - ViewerBar.Info: Short info about the ViewerBar - ViewerBar.OpenSystem: Open file in system-track - ViewerBar.OpenEdit: Open file in user-track and of some entries in the menu (Menu ...) like - Menu: *.Menu.Text and - Start: *.Start.Text these entries represent the current available Menu and Start - texts. If you click on one of these entries the corresponding Menu/Start - text will be displayed in the ViewerBar (Start-PopupElem). So you can change the Menu/Start - texts in the ViewerBar (Start-PopupElem) easily. The Menu and Start - text-files are shown from the startup directory ("$") and (if the current directory is not the startup directory) from the current directory. The entries "Start Off" and "Menu Off" turns the corresponding menu off. The described entries in the Start-PopupElem are determinded by the ViewerBar itself, i.e. you can't change them. The entries above these Start-PopupElem-entries are determined by the current file, selected as Start-text (*.Start.Text), i.e. this text is added to the top of this PopupElem. If there is no file selected, this part of the PopupElem will be empty. Handling of the Start-PopupElem: This PopupElem can be handled like any other PopupElem (open Popup, execute commands, ...), but if you click with the left mouse-button (ML) on this PopupElem, the ViewerBar will be refreshed (See also command ViewerBar.Refresh). 2.2. *.Start.Text These type of files are used for the menu-entries at the top of the Start-PopupElem. 2.3. *.Menu.Text These type of files are used for the menu-entries in the ViewerBar (at the left of the Start-PopupElem). You can use this menu like any other menu in a MenuViewer. 2.4. Viewer-PopupElems These PopupElems are between the ViewerBar-menu-text and the History-PopupElem and each of this PopupElems correspond to one Viewer in the user-track above (MenuViewer, ...). There are three possibilities of the text-representation in such an PopupElem: - Blue and bold: The corresponding viewer is shown in the user-track. - Black and plain: The corresponding viewer is closed, but not disposed, i.e. the viewer is not shown but it also exists. - Green and plain: The corresponding viewer is suspended, i.e. it lies behind a opened track and will be restored if you close this track (close all viewers in this track and (if necessary) force a refresh of the ViewerBar. Handling of these elems: MM: Opens or closes the corresponding viewer (Toggles the current mode). MR-ML: Moves the viewer into the history (If the corresponding viewer was opened, the viewer will be closed).  2.5. History This PopupElem () contains all viewers, which were removed from the ViewerBar-menu (MR-ML / ViewerBar.RemoveClosed / Remove closed). The closed viewers are added to the top of the content of the History-PopupElem. If there are more than 20 viewers in the history, the first added viewer will be disposed (FIFO-List). Text-representation in this PopupElem: - Brown and bold: The history contains one or more closed or suspended viewers. - Black and plain: The history is empty.  The entries of this PopupElem are: - Remove closed: Removes all closed viewers (like ViewerBar.RemoveClosed). - Other entries: Each entry correspond to one viewer. Actions on the PopupElem: MR-ML: Dispose all viewers contained in the history. MM: Open PopupElem. Actions in the opened PopupElem: MM: Moves this viewer into the ViewerBar-menu (the viewer is set to "Closed" or "Suspended"). MM-ML: Disposes the corresponding viewer (no recall possible). 3. Author Martin Rammerstorfer Anger 36 4201 Gramastetten e-mail: rammerstorfer@ssw.uni-linz.ac.at