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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The WithZoom property is used to specify and to determine whether the user can zoom in and out:
  • in an HTML control in an Android, iPhone or iPad application.
  • Versions 26 and later
    in a map displayed in a Map control in an Android, iPhone or iPad application.
    New in version 26
    in a map displayed in a Map control in an Android, iPhone or iPad application.
    in a map displayed in a Map control in an Android, iPhone or iPad application.
Example
// Disable zoom on the HTM_NavigationPCS control
HTM_NavigationPCS.WithZoom = False
Versions 26 and later
AndroidiPhone/iPad
// Disable zoom on the MAP_MyMap control
MAP_MyMap.WithZoom = False
New in version 26
AndroidiPhone/iPad
// Disable zoom on the MAP_MyMap control
MAP_MyMap.WithZoom = False
AndroidiPhone/iPad
// Disable zoom on the MAP_MyMap control
MAP_MyMap.WithZoom = False
Syntax

To know if an Control HTML or Map allows zooming or not Hide the details

<Result> = <Control used>.WithZoom
<Result>: Boolean
  • True if the control allows zooming,
  • False otherwise.
<Control used>: Control name
Name of control to use:
  • HTML control,
  • Versions 26 and later
    AndroidiPhone/iPad Map control.
    New in version 26
    AndroidiPhone/iPad Map control.
    AndroidiPhone/iPad Map control.

Allow or disallow zooming in an Control HTML or Map control Hide the details

<Control used>.WithZoom = <Zoom>
<Control used>: Control name
Name of control to use:
  • HTML control,
  • Versions 26 and later
    AndroidiPhone/iPad Map control.
    New in version 26
    AndroidiPhone/iPad Map control.
    AndroidiPhone/iPad Map control.
<Zoom>: Boolean
  • True if the control should allow zooming,
  • False otherwise.
Remarks
  • If the zoom is allowed, the user will be able to modify the zoom by moving his fingers on the screen.
  • Android If the zoom is allowed, two zoom buttons are also available.
  • iPhone/iPad In an iPhone/iPad application, you must refresh (or change) the page displayed by the HTML control in order for the activation (or deactivation) of the zoom to be taken into account.
  • The property has no effect in simulator mode.
Minimum version required
  • Version 18
Comments
Click [Add] to post a comment