home *** CD-ROM | disk | FTP | other *** search
-
- /*
- ** $VER: NewIndented.edge 1.2 (Sunday 08-Aug-93 02:48:49)
- **
- ** Open a new file with the window down indented
- **
- ** Written by Thomas liljetoft
- */
-
- options results
-
- /* get the users error-report level */
-
- getenvvar _ge_errlevel
- errlevel = result
-
- /* get current window size and position */
-
- 'window'
- parse var result 'X ' x ', Y ' y ', W ' w ', H ' h ','
-
- /* get size of text font */
-
- 'getenvvar' _ge_realtextfontsize
- fontheight = result
-
- /* now - open a new window 2 lines down and 2 lines
- smaller than the current window.
- With a little more code this script can be made
- to look for the smallest and most indented window
- and use that one for the calculations of the new
- window. */
-
- diff = 2*fontheight;
- 'new' topedge y+diff height h-diff
-
- if RC >= errlevel then do
-
- /* something went wrong enought to be reported so report */
-
- 'fault'
- 'requestnotify' '"'result'"'
- end
-
- exit(0)
-