PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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.
Component : wd250std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment