(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/intuition.h>

BOOL SetDMRequest (window , dmrequest)

LOCATION
In IntuitionBase at offset 43

SYNOPSIS
struct Window * window
struct Requester * dmrequest

FUNCTION
Try to set the DMRequest of a window. A DMRequest is a requester that appears if the user double-clicks with the menu button. The new DMRequest will only be set if the old DMRequest is not in use. The official way to change the DMRequest is to call ClearDMRequest() until it returns TRUE and then call SetDMRequest().

INPUTS
window
The window from which the DMRequest is to be set
dmrequest
Pointer to the requester

RESULT
TRUE if old DMRequest was not in use and therefore changed to the new one, or FALSE if the old DMRequest was in use and could not be set to the new one.

EXAMPLE

SEE ALSO
ClearDMRequest(), Request()

NOTES
If the DMRequest has the POINTREL flag set, the DMR will show up as close to the pointer as possible. The RelLeft/Top fields are used to fine-tune the positioning.

BUGS

INTERNALS

HISTORY
31.01.1999 hkiel
Function had wrong LVO
28.01.1999 hkiel
Empty skeletons