ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Mouse functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
// All the mouse events are directed to the "WIN_WindowName" window
CursorCapture(True, Handle(WIN_WindowName))
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 value): the messages are directed to a window or to a control.
  • False: standard management of events.
<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: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help