home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
windows
/
kpwdemo.zip
/
PALETTED.SRC
< prev
next >
Wrap
Text File
|
1990-06-28
|
6KB
|
160 lines
temp is window (,25,6,33.57,9.375,,[popup,showChildren,Siblings,visible,DialogFrame]).
if last ( system_info () ) > 2 then hyper_display (blue).
set_text (, '
#x5One moment while the
#x5color palette loads...
').
use_font (oem_fixed_font).
tc is '#bwhite #x4#y2'.
wmain is window (,5,3,73,23,'Window and Text Colors',[popupwindow,titlebar]).
m1 is menu ([ [&Text, '&Show Colors'], &Quit,&Help],select).
showColor is no.
plain is '
1] black 10] green2 19] green
2] darkBlue 11] darkBlue 20] blueGreen
3] blue 12] blue2 21] cyan
4] brown 13] mossGreen 22] brightGreen
5] darkPurple 14] gray 23] lightGreen
6] purple 15] purple2 24] lightBlue
7] red 16] orange 25] yellow
8] pink 17] pink2 26] lightYellow
9] magenta 18] magenta2 27] white'.
colored is '
1] black #fgreen2 10] green2 #fgreen 19] green
#fdarkblue 2] darkBlue #fdarkblue2 11] darkBlue2 #fbluegreen 20] blueGreen
#fblue 3] blue #fblue2 12] blue2 #fcyan 21] cyan
#fbrown 4] brown #fmossgreen 13] mossGreen #fbrightgreen 22] brightGreen
#fdarkpurple 5] darkPurple #fgray 14] gray #flightgreen 23] lightGreen
#fpurple 6] purple #fpurple2 15] purple2 #flightblue 24] lightBlue
#fred 7] red #forange 16] orange #fyellow 25] yellow
#fpink 8] pink #fpink2 17] pink2 #flightyellow 26] lightYellow
#fmagenta 9] magenta #fmagenta2 18] magenta2 #fwhite #bblack 27] white'.
text (?plain).
window (,1,11,8,3,,[childwindow,visible],?wmain,,black).
text (?tc,1).
window (,9,11,8,3,,[childwindow,visible],?wmain,,darkblue).
text (?tc,2).
window (,17,11,8,3,,[childwindow,visible],?wmain,,blue).
text (?tc,3).
window (,25,11,8,3,,[childwindow,visible],?wmain,,brown).
text (?tc,4).
window (,33,11,8,3,,[childwindow,visible],?wmain,,darkpurple).
text (?tc,5).
window (,41,11,8,3,,[childwindow,visible],?wmain,,purple).
text (?tc,6).
window (,49,11,8,3,,[childwindow,visible],?wmain,,red).
text (?tc,7).
window (,57,11,8,3,,[childwindow,visible],?wmain,,pink).
text (?tc,8).
window (,65,11,8,3,,[childwindow,visible],?wmain,,magenta).
text (?tc,9).
window (,1,14,8,3,,[childwindow,visible],?wmain,,green2).
text (?tc,10).
window (,9,14,8,3,,[childwindow,visible],?wmain,,darkblue2).
text (?tc,11).
window (,17,14,8,3,,[childwindow,visible],?wmain,,blue2).
text (?tc,12).
window (,25,14,8,3,,[childwindow,visible],?wmain,,mossgreen).
text (?tc,13).
window (,33,14,8,3,,[childwindow,visible],?wmain,,gray).
text (?tc,14).
window (,41,14,8,3,,[childwindow,visible],?wmain,,purple2).
text (?tc,15).
window (,49,14,8,3,,[childwindow,visible],?wmain,,orange).
text (?tc,16).
window (,57,14,8,3,,[childwindow,visible],?wmain,,pink2).
text (?tc,17).
window (,65,14,8,3,,[childwindow,visible],?wmain,,magenta2).
text (?tc,18).
window (,1,17,8,3,,[childwindow,visible],?wmain,,green).
text (?tc,19).
window (,9,17,8,3,,[childwindow,visible],?wmain,,bluegreen).
text (?tc,20).
window (,17,17,8,3,,[childwindow,visible],?wmain,,cyan).
text (?tc,21).
window (,25,17,8,3,,[childwindow,visible],?wmain,,brightgreen).
text (?tc,22).
window (,33,17,8,3,,[childwindow,visible],?wmain,,lightgreen).
text (?tc,23).
window (,41,17,8,3,,[childwindow,visible],?wmain,,lightblue).
text (?tc,24).
window (,49,17,8,3,,[childwindow,visible],?wmain,,yellow).
text (?tc,25).
window (,57,17,8,3,,[childwindow,visible],?wmain,,lightyellow).
text (?tc,26).
window (,65,17,8,3,,[childwindow,visible],?wmain,,white).
text (?tc,27).
set_display_window (?wmain).
show_window ( ?wmain ).
close_window (?temp).
topic select (item).
do (?item).
topic '&Show Colors'.
if ?showColor is no
then set_text (,?colored) and
check_menu_item (?m1,'&Show Colors') and
showColor is yes
else set_text (,?plain) and
uncheck_menu_item (?m1,'&Show Colors') and
showColor is no.
end.
topic &help.
wh is window (,7,5,68,19,,[Dialogwindow,visible]).
use_font (system_font).
make_modal (?wh).
text ( '
WINDOW BACKGROUNDS: The colored windows show the window
background colors. These are defined in the WINDOW command.
WINDOW (ET,C,R,W,H,T,S,P,TEXTCOLOR,BACKCOLOR,E).
#mCustom colors#m are defined using RBG values of the color.
TEXT: To view the text colors select Text/Show Colors.
These are the colors that will be displayed in the foreground
or background for text. Text color is set in WINDOW or,
using ##F for foreground or ##B for background in the command
that defines the text to be displayed.
Depending on your monitor, duplicate colors may be displayed.
Colors displayed as white will not appear on the display.').
b2 is button (Continue,continue,30,16).
set_focus (?b2).
wait ().
use_font (oem_fixed_font).
close_window ().
topic 'Custom colors'.
wh2 is window (,9,7,64,16,,[Dialogwindow,visible]).
make_modal (?wh2).
text ('
Custom colors are defined by entering the number of
the RBG value in the WINDOW command. The RBG value is:
COLOR = (?BLUE * 65536) + (?GREEN * 256) + ?RED
The knowledge base COLOR.KB helps you define new colors.
The code shows how RBG values are used.').
b1 is button (Continue,continue,28,13).
set_focus (?b1).
wait ().
close_window ().
end.
end.
topic &quit.
close_window ().
new_kb ('demo.ckb').
end.
end. (* select *)