home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
filemanager
/
director_1
/
!Director
/
Menus
/
System
/
Fontmenu
(
.txt
)
< prev
next >
Wrap
RISC OS BBC BASIC V Source
|
1995-05-02
|
2KB
|
72 lines
>Director:Menus.Fontmenu
$;" at line ";
"OS_GetEnv"
"family$=
arg(in$,"-family","")
name 256
%menu=
swi_number("Director_Menu")
+endmenu=
swi_number("Director_EndMenu")
)option=
swi_number("Director_Option")
+command=
swi_number("Director_Command")
%dash=
swi_number("Director_Dash")
family$="" menu$="Font
List"
menu$=family$
menu,menu$+" -temp"
font=0
last$=""
system font
family$=""
option,"System
Font"
command,"UnSet Wimp$Font "+family$+"|MRedrawScreen|M"
"Font_ListFonts",,name,font
(%101<<16),256
,,font
font<>-1
font$=$name
dot=
font$,".")
dot<>0
f$=
font$,dot-1)
w$=
font$,dot+1)
f$=font$
w$=""
family$=""
f$<>last$
%a
option,""""+f$+""" -sub ""Dynamic:Run Director:Menus.System.Fontmenu -family "+f$+""""
last$=f$
family$=f$
w$="" w$="(Regular)"
option,""""+w$+""""
,>
command,"Set Wimp$Font \F"+font$+"|MRedrawScreen|M"
ws+=1
font=-1
family$<>""
ws=0
option,"""(Regular)"""
command,"Set Wimp$Font \F"+family$+"|MRedrawScreen|M"
endmenu
"*Set Director$Menu "+menu$
arg(str$,arg$,def$)
str$,arg$)
i=0
=def$
arg$+1
str$+" <"," ",i)
str$,i,j-i)
swi_number(swi$)
"OS_SWINumberFromString",,swi$
swi%
D =swi%
" "+