net/holzammer/gui/asl/filereq.m

Description:

Contains an object providing a standard asl filerequester.

Requirements:

Compiler: CreativE
OS: AmigaOS >=V39
CPU: >=68020

Object definitions

filereq

title title of the requester window. Ignored when MagicASL is running. Default is (localized) asl default.
oktext text of ok button. Default is (localized) asl default.
canceltext text of cancel button. Default is (localized) asl default.
path current AmigaDOS path of the selected file. Can also be used to set initial path of the requester before opening. Default is ''.
pattern pattern for filtering display of files. Default is #?
tags can be used to provide a taglist with additional (standard asl) tags before opening the requester.

Methods:

filereq()

Purpose: constructor that has to be called at instantiation of the object

request()

Purpose: pops up a file requester
Usage: obj_var.request()
Parameters: none
Return Values: TRUE if user left requester using the ok button.
FALSE if the user selected cancel or displaying the requester failed.
Notes: if the user selected a file the path attribute contains the path of the selected file. Otherwise it is unchanged.