Unit 'intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

ClearDMRequest

Clear (detaches) the DMRequest of the window.

Declaration

Source position: intuition.pas line 4083

function ClearDMRequest(

  window: pWindow

):LongBool;

Arguments

window

  

A pointer to the window from which the DMRequest is to be cleared.

Function result

If the DMRequest was not currently in use, detaches the DMRequest from the window and returns True. If the DMRequest was currently in use, doesn't change anything and returns False.

Description

Attempts to clear the DMRequest from the specified window, that is detaches the special requester that you attach to the double-click of the menu button which the user can then bring up on demand. This routine will not clear the DMRequest if it's active (in use by the user). The IDCMP message class IDCMP_REQCLEAR can be used to detect that the requester is not in use, but that message is sent only when the last of perhaps several requesters in use in a window is terminated.

See also

SetDMRequest

  

Set the DMRequest of a window.

Request

  

Activate a requester.


Documentation generated on: 2021-07-30