Silverfrost Logo About Us | Contact Us
 

ADD_CURSOR_MONITOR@

Platform

Win32(ClearWin+)

Purpose

To name a call-back function that monitors which window or control has the cursor.

Syntax

SUBROUTINE ADD_CURSOR_MONITOR@( CB_FUNC )
EXTERNAL CB_FUNC

Description

A general mechanism is available to enable programmers to monitor the window/control that has the cursor (or the focus, see ADD_FOCUS_MONITOR@).

CB_FUNC is the name of a routine that is either a function returning an integer, or a SUBROUTINE. The return value (if any) is not used. Cursor call-back functions can use the CLEARWIN_INFO@ parameter 'CURSOR_WINDOW' to determine the window handle of the control or window that has the cursor.

Notes

a) Window handles can be obtained using %hw or %lc.

b) Although window handles are unique at any given time, handles can (and often do) get re-used after a window has been destroyed.

See also

REMOVE_CURSOR_MONITOR@, ADD_FOCUS_MONITOR@

 

 

Copyright © 1999-2017 Silverfrost Limited