ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Use in an Image control
  • Use in a Camera control
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
The ZoomWithFinger property is used to:
  • determine if an Image or Camera control supports pinch zoom.
  • enable or disable pinch zoom in an Image or Camera control.
AndroidiPhone/iPad To use this property on a Camera control, the control must have been created with version 27 or have the following option unchecked: Version-26-compatible mode: Use VideoParameter( ) to configure the control ("General" tab of the Camera control).
Example
// In drawing mode, no pinch zoom
IF bDrawing = True THEN
IMG_Image1.ZoomWithFinger = False
ELSE
IMG_Image1.ZoomWithFinger = True
END
Syntax

Determining if an Image or Camera control supports pinch zoom Hide the details

<Result> = <Control used>.ZoomWithFinger
<Result>: Boolean
  • True if pinch zoom is enabled,
  • False otherwise.
<Control used>: Control name
Name of the control to be used:
  • Image control,
  • AndroidiPhone/iPad Camera control.

Enabling or disabling pinch zoom in an Image or Camera control Hide the details

<Control used>.ZoomWithFinger = <Authorization>
<Control used>: Control name
Name of the control to be used:
  • Image control,
  • AndroidiPhone/iPad Camera control.
<Authorization>: Boolean
  • True to enable pinch zoom,
  • False otherwise.
Remarks

Use in an Image control

  • This property is mainly used to temporarily interrupt the the pinch zoom in order to drawn in an Image control. Similarly, the finger scrolling can be interrupted with the ScrollWithFinger property.
  • iPhone/iPadIOS Widget Caution: For an Image control, the scroll and zoom feature must have been enabled in the description window ("Automatic scroll and zoom" option in the "Details" tab).
  • Calling dStartDrawing automatically disables pinch zoom and finger scrolling.
AndroidiPhone/iPad

Use in a Camera control

  • When pinch zoom is enabled, the user can zoom in/out by moving two fingers together or apart in the Camera control.
  • This property corresponds to the "Enable pinch zoom" option in the "General" tab of the control description window.
  • When the user zooms in or out, the "Zoom in or out" event is executed. This event gets the value of the new zoom. To handle this parameter, it is necessary to declare a procedure directly in the "Zoom in or out" event.
    The procedure must be declared using the following syntax:
    PROCEDURE <Procedure name>(<Zoom>)
    where <Zoom> is the new zoom value expressed as a percentage.
Minimum version required
  • Version 22
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help