ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
TapToFocus (Property)
In french: AutoFocusAuClic
The TapToFocus property is used to:
  • Determine if tap to focus is enabled in a Camera control.
  • Enable or disable tap to focus in a Camera control.
If tap to focus is enabled, the camera will focus on the spot tapped by the user.
Remarks:
  • This property can only be used on Camera controls that are not in "Version-26-compatible mode".
  • This property corresponds to the "Enable tap to focus" option in the "General" tab of the Camera control description window.
Example
IF CAM_MyCamera.TapToFocus = True THEN
ToastDisplay("Tap to focus.")
END
Syntax

Determining if the tap to focus feature is enabled in a Camera control Hide the details

<Result> = <Camera control>.TapToFocus
<Result>: Boolean
  • True if tap to focus is enabled,
  • False otherwise.
<Camera control>: Control name
Name of the Camera control to be used.

Enabling or disabling tap to focus in a Camera control Hide the details

<Camera control>.TapToFocus = <Authorization>
<Camera control>: Control name
Name of the Camera control to be used.
<Authorization>: Boolean
  • True to enable tap to focus,
  • False otherwise.
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help