[Contents] [index] [Help] [Retrace] [browse <] [Browse >]

Requesters are temporary sub-windows, usually containing several gadgets,
used to confirm actions, access files, or adjust the options of a command
the user has just given.  request() creates and activates a requester in
the window.  endrequest() removes the requester from the window.

    BOOL Request( struct Requester *requester, struct Window *window );
    void EndRequest( struct Requester *requester, struct Window *window );

For simple requesters in a format that matches system requesters, two new
functions have been added to Release 2:

    LONG EasyRequestArgs( struct Window *window,
                          struct EasyStruct *easyStruct,
                          ULONG *idcmpPtr, APTR args );
    LONG EasyRequest( struct Window *window,
                          struct EasyStruct *easyStruct,
                          ULONG *idcmpPtr, APTR arg1, ... );

The easyrequest() functions support requesters with one or more gadgets
automatically providing a layout that is sensitive to the current font and
screen resolution.  See the chapter "intuition requesters and alerts" for
more information on using requester functions.