PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 it is used in the initialization code of the window.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment