home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
600-699
/
ff634.lha
/
APIG
/
apig33.lzh
/
aslfont1.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-01-25
|
983b
|
45 lines
/* Example of using ASL Library FONT requester */
/* */
x = addlib("apig.library",0,-30,0)
call set_apig_globals()
freq = ALLOCASLREQUEST(ASL_FONTREQUEST,null())
portname = "aslfont1_port"
p = openport(portname)
WaitForPort portname
wintitle = "ASL FONT Requester Example"
winidcmp = CLOSEWINDOW
winflags = WINDOWCLOSE+WINDOWDRAG+WINDOWSIZING+WINDOWDEPTH+GIMMEZEROZERO
win = openwindow(portname,0,0,640,200,2,4,winidcmp,winflags,wintitle,null(),0,0,0)
wrastport = getwindowrastport(win) /* need rastport to do graphics/itext */
do forever
textfontattr = ASLREQUEST(freq,null(),freq) /* note the font requester */
/* owns the return value */
if textfontattr = null() then
leave
z = pitext(wrastport,10,30,"The FONT you selected",1,2,JAM2,textfontattr)
wait 3 secs
end
call FREEASLREQUEST(freq)
call CLOSEWINDOW(win)
exit