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

The easyrequest() function calls a lower level intuition function named
buildeasyrequest() to construct the requester.  an application can call
BuildEasyRequest() directly if it needs to use an easy requester but
requires custom handling of the events sent to the requester.  Handling of
the events should be done using the sysreqhandler() function as described
below.

The buildeasyrequest() functions take the same arguments as easyrequest():

    struct Window *BuildEasyRequestArgs( struct Window *window,
                                         struct EasyStruct *easyStruct,
                                         unsigned long idcmp, APTR args );

    struct Window *BuildEasyRequest( struct Window *window,
                                     struct EasyStruct *easyStruct,
                                     unsigned long idcmp, APTR arg1, ... );

To process input event information directly while an easy requester is
displayed, first call buildeasyrequest() then call sysreqhandler()
periodically to process user input.

    LONG SysReqHandler( struct Window *window, ULONG *idcmpPtr,
                        long waitInput );

This will provide standard handling of events but allow the application to
control the timing of checking the events.  This handling includes checks
for left Amiga keys.

The freesysrequest() function must be called after an application has
finished with a requester (if it was created with buildeasyrequest() call).

    void FreeSysRequest( struct Window *window );

This function ends the requester and frees any resources allocated with
the buildeasyrequest() call.