ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System 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
Sets focus to a window or control.
Remark: SysSetFocus sets the focus to a window that has not been created in WINDEV. To set focus to a WINDEV control or window, use SetFocus or SetFocusAndReturnToUserInput.
Example
// Set focus to the "Microsoft Word - Sales.DOC" window
// This window is not an MDI window
ResHandle is system int = SysWinHandle("Microsoft Word - Sales.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.
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