There are actually two file requesters available in AWNPipe. The ClassAct/Reaction getfile.gadget, and the ASL file requester. Only the getfile.gadget can be displayed in a gui. Both can be opened under your control to present the user with a file requester. The details for the ASL requester are at the end of this file.
This sets the font for the gadget. The GID points to an ALREADY defined text attribute.
readonly (ro)
This gadget is read only.
disable=number (dis=)
The gadget is enabled if number = 0 , disabled if number != 0. Defaults to enabled.
gadgettext="file requester title" (gt=)
Set the title of the file requester.
pattern="pattern" (pat=)
Set and Enable pattern matching in the file.
multi (m)
Allow multi selection in the file requester. (does not seem to work)
save
This is a save requester.
drawers (dr)
Only show and allow selections of drawers.
icons (i)
Do NOT show .info files.
filename="path:filename" (fn=)
Set the filename and directory for the file requester. It must end in a '/' for drawer only file requesters
Wide=num
High=num
Set the size of the requester when opened.
unattached (ua)
This file requester is not attached to the CA window. It may still be activated in the modify conversation.
minwidth=number (minw=)
Set the minimum width for this gadget
minheight=number (minh=)
Set the minimum height for this gadget
weightedwidth=number (weiw=)
Set the weighted width for this gadget
weightedheight=number (weih=)
Set the weighted height for this gadget
nominalsize (noms)
Set this gadget to its nominal size.
tags="tags|data[|tag|data...]|0
A list of tag and value pairs in HEX. Do not forget the trailing null !
childlabel (chl)
childlabelr (chlr)
Use the previously defined image as a childlabel for this gadget. Display the childlabel to the right or left of the gadget.
replace=GID
Use this gadget to replace an existing gadget specified by GID.
Definition Reply
-----------------
When the gadget creation is successful the pipe replies
with
'ok GID'
GetFile gadget modify parameters.
-------------------------
selected=number (sel=)
This modify command is only valid for UNATTACHED getfile gadgets. Number is ignored but must be given. This opens the file requester and the selected files are returned rather than a simple ok.
You should not use other modify instructions on the same line as 'selected'.
NOTE: You can not force an attached getfile to open.
disable=number (dis=)
The gadget is enabled if number = 0 , disabled if number != 0.
save=number
If number=0 this is NOT a save requester. If number~=0 this is a save requester.
filename="path:filename" (fn=)
Set the filename and directory for the file requester.
gadgettext="title" (gt=)
Set the file requesters title.
*** GETFILE ASL ***
The ASL requester does not send events.
GetFile ASL parameters.
-------------------------
ASL
This tells AWNP you want to define an ASL file requester.
font=GID
This sets the font for the gadget. The GID points to an ALREADY defined text attribute.
gadgettext="file requester title" (gt=)
Set the title of the file requester.
pattern="pattern" (pat=)
Set and Enable pattern matching in the file.
multi (m)
Allow multi selection in the file requester. (does not seem to work)
save
This is a save requester.
drawers (dr)
Only show and allow selections of drawers.
icons (i)
Do NOT show .info files.
filename="path:filename" (fn=)
Set the filename and directory for the file requester. It must end in a '/' for drawer only file requesters
Wide=num
High=num
Set the size of the requester when opened.
top=num
left=num
Set the position of the requester when it opens.
postx="positive text"
Set the text for the positive choice in the file requester. Defaults to OK.
negtx="negative text"
Set the text for the positive choice in the file requester. Defaults to Cancel
Definition Reply
-----------------
When the gadget creation is successful the pipe replies
with
'ok GID'
GetFile ASL modify parameters.
-------------------------
You can only modify the ASL getfile requester when opening it. Unless the selected keyword is present the modify line is ignored.
selected=number (sel=)
Number is ignored but must be given. This opens the file requester and you get returned the following line rather than a simple ok.
SUCCESS=0 if the user aborted the file requester without making a selection. SUCCESS !=0 if the user selected a file, each file name is quoted and all are on a single line.
save=number
If number=0 this is NOT a save requester. If number~=0 this is a save requester.
filename="path:filename" (fn=)
Set the filename and directory for the file requester.
gadgettext="title" (gt=)
Set the file requesters title.
Wide=num
High=num
Set the size of the requester when opened.
top=num
left=num
Set the position of the requester when it opens.
postx="positive text"
Set the text for the positive choice in the file requester. Defaults to OK.
negtx="negative text"
Set the text for the positive choice in the file requester. Defaults to Cancel