; Main config
; by MeF ©'96 by MeF Software Corporation
;	$VER: Main Gfx Config (25.05.96)

;set the title of the window
TITLE "Main Window"
;panel as large as the entire screen
HSCALE 100
;No vertical finetuning
VSCALE 0
;Uncomment this for default buttons
;DEFAULT
;Uncomment this for a dynamically scaleable window
;SIZE

;First line
BEGIN

;Load a file in the same window
"Open"		"OpenFile"

;Open a new doc (no loading)
ICON "1" 	"OpenDoc"

;Open a new doc and ask for a file to load
ICON "2"  "OpenDoc FILEREQ"

;Save this file with the old name
ICON "3"  "SaveFile"

;Delete this file frm the disk!
ICON "4"	"ExecuteARexxMacro REXX:DeleteFile.bed"

;Put a space between the previuos and the next button
SPACE

;Copy the highlighted block into the clipboard
ICON "7" "CopyBlk"

;Cut the highlighted block into the clipboard
ICON "6" "CutBlk"

;Paste the current clipboard on the window
ICON "8" "PasteClip"

;Erase the current highlighted block
ICON "9" "DeleteBlk QUIET"

;Highlight the entire line
"l" "Selectline"

;Copy and append the highlighted block on the clipboard
"c&a" "CopyBlk APPEND"

;Cut and append the highlighted block on the clipboard
"x&a" "CutBlk APPEND"

;a new separator
SPACE

;Pop the find requester
"Find"	"OpenRequester FIND"

;Toggle horizontal bar ON/OFF
"Hbar"	"SetPrefs HORIZSCROLLER TOGGLE"

;Justify the current line to occupy the entire width set
"Just"	"Justify"

;Set the current clipboard as UNIT 0 (default)
"C0"	"SetPrefs CLIPBOARDUNIT 0"

;Set the current clipboard as UNIT 1
"C1"	"SetPrefs CLIPBOARDUNIT 1"

;Set the current clipboard as UNIT 2
"C2"	"SetPrefs CLIPBOARDUNIT 2"

;Set the current clipboard as UNIT 3
"C3"	"SetPrefs CLIPBOARDUNIT 3"

;The above can be useful to have different clipboards to store different
;blocks. You can chose the clipboard number before any operation (copy, cut
;or paste) and then select another clipboard. The first block will stay in
;memory.

;Need to comment this?
SPACE

;Set bookmarks 1-2-3
"s1"  	"SetBookMark 1"
"s2"  	"SetBookMark 2"
"s3"  	"SetBookMark 3"

;Move to previosly define bookmark 1-2-3
"m1"  	"MoveBookMark 1"
"m2"  	"MoveBookMark 2"
"m3"  	"MoveBookMark 3"

;NOTE: The above list of bookmark can be expanded till 10 bookmarks.

;New line
BEGIN

;reload the documents as it is stored on the disk. You'll lose any change
;you have made since last saving!
"Reload"		"ExecARexxMacro REXX:ReloadDoc.bed"

;Call E compiler (guess why 8)
"E Compile" "ExecARexxMacro CONSOLE REXX:E/ECompile.bed"

;Pop the preference requestres
"Edit"			"OpenRequester EDITPREFS"
"Display"		"OpenRequester DISPLAYPREFS"
"Format"		"OpenRequester FORMATPREFS"
"Font"			"OpenRequester FONTPREFS"
"Tab"				"OpenRequester TABPREFS"
"Misc"			"OpenRequester MISCPREFS"

;Print the document
"Print" "Print"

;Run another copy of BAH! with a different configuration
"BAH!" "RunTool BED:BAH!/BAH!_1.0"

;Remember that the commands are sent to the selected document window, and
;that the window will be reselected after BHA! has finished sending the
;command. Be careful with asyncronous requester as BAH! will not be able to
;reselect the window automatically till the requester is kept open.