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
Gives focus to a window or to a control.
Note: SysSetFocus is used to give focus to a window that was not created by WINDEV. To give focus to a WINDEV control or window, use SetFocus or ReturnToCapture.
Example
// Give focus to the "Microsoft Word - Sales 2000.DOC" window
// This window is not an MDI window
ResHandle is system int = SysWinHandle("Microsoft Word - Sales 2000.DOC")
ResFocus is system int = SysSetFocus(ResHandle)
Syntax
<Result> = SysSetFocus(<Handle> [, <MDI Window>])
<Result>: Integer
  • Handle of the window (or control) that had focus before the execution of this function.
  • NULL constant if there is no previous window (or control) or if the specified window (or control) does not exist.
<Handle>: Integer
Handle of the window or control to use. To find out the handle of a window that was not created by WINDEV, use SysWinHandle. To find out the handle of the active window, use SysWinActive.
<MDI Window>: Optional boolean
  • True if the specified window is an MDI window,
  • False (default value) otherwise.
Remarks
  • The handle of a window that was not created by WINDEV is returned by SysWinHandle.
  • The handle of a WINDEV control or window is returned by Handle.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment