[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'Intuition' (#aros)

SetDMRequest

Set the DMRequest of a window.

Declaration

Source position: intuition.pas line 3230

function SetDMRequest(

  Window: PWindow;

  Requester: PRequester

):LongBool;

Arguments

Window

  

The window from which the DMRequest is to be set

Requester

  

A pointer to the requester

Function 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.

Description

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().

Note: 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.

See also

ClearDMRequest

  

Clear (detaches) the DMRequest of the window.

Request

  

Activate a requester.


Documentation generated on: 2017-01-10