ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Mouse functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
CursorCapture (Function)
In french: CurseurCapture
Directs all the events associated with the mouse toward a specific window or control, regardless of the screen object where the mouse event occurs.
// Tous les événement souris sont dirigés vers la fenêtre "FEN_NomFenêtre"
CursorCapture(True, Handle(FEN_NomFenêtre))
Syntax
<Result> = CursorCapture([<Redirection>, ] <Object identifier>)
<Result>: Integer
  • Identifier (handle) of the window previously receiving all the mouse messages,
  • NULL if no specific window was receiving the mouse events (standard mode).
<Redirection>: Optional boolean
Specifies the management mode of the mouse events:
  • True (default): messages are directed to a window or field.
  • False Classic event management.
<Object identifier>: Integer
Handle of the window or control. This identifier is returned by Handle.
Remarks
CursorCapture has no effect when used in the initialization code of the window.
Component: wd300std.dll
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help