home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 5
/
ctrom5b.zip
/
ctrom5b
/
DOS
/
TEKST
/
AURORA2
/
PALETTE.AML
< prev
next >
Wrap
Text File
|
1995-04-28
|
2KB
|
42 lines
/* ------------------------------------------------------------------ */
/* Macro: PALETTE.AML */
/* Written by: nuText Systems */
/* */
/* Description: This macro changes the current color palette in */
/* COLOR.AML and re-compiles the editor. */
/* */
/* Usage: Select this macro from the Macro List (on the Macro */
/* menu), or run it from the macro picklist <shift f12> */
/* ------------------------------------------------------------------ */
// compile time macros and function definitions
include bootpath "define.aml"
menu "colors"
item " &Blue and green" "blugreen"
item " &Fluorescent" "fluoresc"
item " &Green charcoal" "greench"
item " &Red and blue" "redblue"
item " &Wimbledon" "wimbledn"
end
// display the palette menu
palette = popup "colors" "Select a color palette to install" 37
if palette then
// backup the existing color palette
copyfile (bootpath "COLOR.AML") (bootpath "COLOR.OLD")
// copy the selected palette to COLOR.AML
if copyfile (getbootpath + "PALETTE\\" + palette + ".AML")
(bootpath "COLOR.AML") then
// recompile the editor
send "recompile"
end
end
// destroy the palette menu
destroybuf "colors"