home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
arexx
/
moos
/
docs
/
english
/
rexx_asl.doc
< prev
next >
Wrap
Text File
|
1997-03-25
|
13KB
|
409 lines
TABLE OF CONTENTS
--background--
rexx_asl.library/AslFileReq
rexx_asl.library/AslFontReq
rexx_asl.library/AslScreenReq
--background-- --background--
$(C): (1996, Rocco Coluccelli, Bologna)
$VER: rexx_asl.library 37.2 (15.03.97)
rexx_asl.library
This sub-library of the rexxMOOS.library let ARexx programmers
use the requesters created with the asl.library
AslFileReq()
AslFontReq()
AslScreenReq()
NOTES
Is part of the MOOS package.
TODO
Support for IoErr() returning error conditions.
BUGS
rexx_asl.library/AslFileReq rexx_asl.library/AslFileReq
NAME
AslFileReq -- Open an ASL file requester.
SYNOPSIS
ret = AslFileReq(filename,directory,options)
FUNCTION
This function open an ASL file requester to let users select
files, drawers, patterns, etc.
INPUTS
filename - Initial contents of the file requester's "File" text
gadget. Default is empty.
directory - Initial contents of the file requester's Drawer text
gadget. Default is empty.
options - "Pat/K,Stem/K,
Left=X/K/N,Top=Y/K/N,Wid=W/K/N,Hei=H/K/N,
Title/K,Ok/K,Cancel/K,Pub/K,
RejectPat=RPat/K,AcceptPat=APat/K,
PatGad/S,Save/S,Multi/S,NoFiles/S,NoIcons/S"
"Pat" - Initial contents of the file requester's
Pattern text gadget. Default is #?.
"Stem" - The function may fill any given output stem with
the following fields:
<stem.>FileName
Contents of File gadget on exit.
<stem.>Drawer
Contents of Drawer gadget on exit.
<stem.>Pattern
Contents of Pattern gadget on exit.
<stem.>n
Nth selected file.
This function support only "#" and "*" compound
symbol's types (read the rexxMOOS documentation
for details).
"Left" - Suggested left edge of requesting window.
This parameter and the next three following
may not work if the asl.library has been
patched by something like ReqChange, RTPatch,
or similar.
"Top" - Suggested top edge of requesting window.
"Wid" - Suggested width of requesting window.
"Hei" - Suggested height of requesting window.
"Title" - Title to use for the requesting window.
"Ok" - Replaces text for the "Ok" gadget (V38).
"Cancel" - Replaces text for the "Cancel" gadget (V38).
"Pub" - Preferred public screen to open the requester
window in (by default the requester will open
on the frontmost screen) (V38).
"RejectPat" - Specifies an AmigaDOS pattern that is used to
reject files. That is, any files with names
matching this pattern are not included in the
file list. Note that the pattern must have been.
Default is ~(#?) which matches nothing. (V38)
"AcceptPat" - Specifies an AmigaDOS pattern that is used to
accept files. That is, only files with names
matching this pattern are included in the file
list. Default is #? (V38)
"PatGad" - Show the pattern gadget into the requester.
"Save" - Opens the requester into the "Save" mode
(user can create new directories).
"Multi" - Let user select more than one file at a time.
This option is really useful only specifying
an output stem and disables the "Save" mode.
"NoFiles" - The requester doesn't show files. This is
useful to let the user choose a destination
directory.
"NoIcons" - The requester doesn't show icons.
RESULT
Giving an output "Stem", the function will return a boolean
value (1 mean all done, ok). Otherwise the last selected file,
or drawer, will be returned. The result may be an empty string
in case of errors, or if the user close the requester, or if
nothing has been selected.
EXAMPLE
SAY AslFileReq()
NOTES
Most options are available only starting with the version 38
of the Operating System.
SEE ALSO
asl.library/AslRequest()
rexx_asl.library/AslFontReq rexx_asl.library/AslFontReq
NAME
AslFontReq -- Open an ASL font requester.
SYNOPSIS
ret = AslFontReq(options)
FUNCTION
This function open an ASL font requester to let users select
fonts and their attributes.
INPUTS
options - "Name,Size/N,Style/K/N,Flags/K/N,Stem/K,
Left=X/K/N,Top=Y/K/N,Wid=W/K/N,Hei=H/K/N,
Title/K,Ok/K,Cancel/K,Pub/K,
FrontPen=FP/K/N,BackPen=BP/K/N,DrawMode=DM/K/N,
StyleGad/S,FPGad/S,BPGad/S,DMGad/S,
MinH/K/N,MaxH/K/N,FixedWid/S"
"Name" - Initial contents of the font requester's
Name text gadget. Default is none.
"Size" - Initial contents of the font requester's
Size numeric gadget (fo_Attr.ta_YSize).
Default is 8.
"Style" - Initial setting of the font requester's
Style gadget (fo_Attr.ta_Style).
Default is 0 (FS_NORMAL).
"Flags" - Initial setting of the font requester's
Flags field (fo_Attr.ta_Flags).
Default is 1 (FPF_ROMFONT).
"Stem" - The function may fill any given output stem with
the following fields:
<stem.>Name
<stem.>YSize
<stem.>Style
<stem.>Flags
<stem.>FrontPen
<stem.>BackPen
<stem.>DrawMode
"Left" - See AslFileReq()
"Top" - See AslFileReq()
"Wid" - See AslFileReq()
"Hei" - See AslFileReq()
"Title" - See AslFileReq()
"Ok" - See AslFileReq()
"Cancel" - See AslFileReq()
"Pub" - See AslFileReq()
"FrontPen" - Initial setting of the font requester's
Front Color gadget (fo_FrontPen). This value
also determines the color used to render the
text in the sample font area. Default is 1.
"BackPen" - Initial setting of the font requester's
Back Color gadget (fo_BackPen). This value
also determines the color used to render
the background of the sample font area.
Default is 0.
"DrawMode" - Initial setting of the font requester's Mode
gadget (fo_DrawMode). Default is JAM1. (V38)
"StyleGad" - Use this switch to cause the requester to
display the Style checkboxes. (V38)
"FPGad" - Use this switch to cause the requester to
display the Front Color selection gadget. (V38)
"BPGad" - Use this switch to cause the requester to
display the Back Color selection gadget. (V38)
"DMGad" - Use this switch to cause the requester to
display the Mode cycle gadget. (V38)
"MinH" - The minimum font height to let the user
select. Default is 5.
"MaxH" - The maximum font height to let the user
select. Default is 24.
"FixedWid" - Use this switch to cause the requester to
only display fixed-width fonts. (V38)
RESULT
Giving an output "Stem", the function will return a boolean
value (1 mean all done, ok). Otherwise the selected font will
be returned connected with the selected size by a "/".
The result may be an empty string in case of errors, or if the
user close the requester, or if nothing has been selected.
EXAMPLE
SAY AslFontReq()
NOTES
Most options are available only starting with the version 38
of the Operating System.
SEE ALSO
asl.library/AslRequest()
rexx_asl.library/AslScreenReq rexx_asl.library/AslScreenReq
NAME
AslScreenReq -- Open an ASL file requester.
SYNOPSIS
ret = AslScreenReq(options)
FUNCTION
This function open an ASL file requester to let users select
files, drawers, patterns.
INPUTS
options - "ID/N,Width/N,Height/N,Depth/K/N,Overscan/K/N,Stem/K,
Left=X/K/N,Top=Y/K/N,Wid=W/K/N,Hei=H/K/N,
Title/K,Ok/K,Cancel/K,Pub/K,
AScrollGad/S,DepthGad/S,OverscanGad/S,
WidthGad/S,HeightGad/S,
MinW/K/N,MaxW/K/N,MinH/K/N,MaxH/K/N,MinD/K/N,MaxD/K/N"
"ID" - Initial setting of the Mode list view gadget
(sm_DisplayID). Default is 0 (LORES_KEY).
"Width" - Initial setting of the Width gadget
(sm_DisplayWidth). Default is 640.
"Height" - Initial setting of the Height gadget
(sm_DisplayHeight). Default is 200.
"Depth" - Initial setting of the Colors gadget
(sm_DisplayDepth). Default is 2.
"Overscan" - Initial setting of the Overscan Type
cycle gadget (sm_OverscanType).
Default is 0 (OSCAN_TEXT).
"Stem" - The function may fill any given output stem with
the following fields:
<stem.>DisplayID
<stem.>DisplayWidth
<stem.>DisplayHeight
<stem.>DisplayDepth
<stem.>OverscanType
<stem.>AutoScroll
"Left" - See AslFileReq
"Top" - See AslFileReq()
"Wid" - See AslFileReq()
"Hei" - See AslFileReq()
"Title" - See AslFileReq()
"Ok" - See AslFileReq()
"Cancel" - See AslFileReq()
"Pub" - See AslFileReq()
"AScrollGad" - Use this switch to cause the requester to
display the AutoScroll checkbox.
"DepthGad" - Use this switch to cause the requester to
display the Depth gadget.
"OverscanGad" - Use this switch to cause the requester to
display the Overscan gadget.
"WidthGad" - Use this switch to cause the requester to
display the Width gadget.
"HeightGad" - Use this switch to cause the requester to
display the Height gadget.
"MinW" - The minimum display width to let the user
choose. Default is 16.
"MaxW" - The maximum display width to let the user
choose. Default is 16368.
"MinH" - The minimum display height to let the user
choose. Default is 16.
"MaxH" - The maximum display height to let the user
choose. Default is 16384.
"MinD" - The minimum display depth to let the user
choose. Default is 1.
"MaxD" - The maximum display depth to let the user
choose. Default is 24.
RESULT
Giving an output "Stem", the function will return a boolean
value (1 mean all done, ok). Otherwise the selected screen ID
will be returned. The result may be an empty string
in case of errors, or if the user close the requester, or if
nothing has been selected.
EXAMPLE
SAY AslScreenReq()
NOTES
This function is available only starting with the version 38
of the Operating System.
SEE ALSO
asl.library/AslRequest()