PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
Gives focus to a window or to a control.
Remark: The SysSetFocus function allows you to give focus to a window not created by WINDEV. To give focus to an control or a WINDEV window, use the SetFocus function or the SetFocusAndReturnToUserInput function.
Example
// Focus à la fenêtre "Microsoft Word - Ventes.DOC"
// Cette fenêtre n'est pas une fenêtre MDI
ResHandle is system int = SysWinHandle("Microsoft Word - Ventes.DOC")
ResFocus is system int = SysSetFocus(ResHandle)
Syntax
<Result> = SysSetFocus(<Handle> [, <MDI window>])
<Result>: entier
  • 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>: entier
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: wd270std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment