PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Drawing functions, zoom and automatic scrollbars
  • Limit
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
..Zoom allows you to find out and modify the zoom value used:
Versions 17 and later
  • in an Image control. The management of automatic scrollbars and zoom must be enabled in this Image control ("Automatic scrollbars and zoom" in the "Details" tab of the description window of the control).
  • Android in a Map control.
  • WINDEV in an Organization Chart control.
New in version 17
  • in an Image control. The management of automatic scrollbars and zoom must be enabled in this Image control ("Automatic scrollbars and zoom" in the "Details" tab of the description window of the control).
  • Android in a Map control.
  • WINDEV in an Organization Chart control.
  • in an Image control. The management of automatic scrollbars and zoom must be enabled in this Image control ("Automatic scrollbars and zoom" in the "Details" tab of the description window of the control).
  • Android in a Map control.
  • WINDEV in an Organization Chart control.
  • in an Image control. The management of automatic scrollbars and zoom must be enabled in this Image control ("Automatic scrollbars and zoom" in the "Details" tab of the description window of the control).
  • AndroidiPhone/iPad in a Map control.
  • WINDEV in an Organization Chart control.
  • WINDEVAndroidiPhone/iPad in an Image control. The management of automatic scrollbars and zoom must be enabled in this Image control ("Automatic scrollbars and zoom" in the "Details" tab of the control description window).
  • WINDEVWEBDEV - Server codeWEBDEV - Browser codeAndroidiPhone/iPadUniversal Windows 10 AppPHP in a Map control.
  • WINDEV in an Organization Chart control.
  • Versions 20 and later
    WINDEV in a Table, TreeView Table, Pivot Table, Spreadsheet or List Box control.
    New in version 20
    WINDEV in a Table, TreeView Table, Pivot Table, Spreadsheet or List Box control.
    WINDEV in a Table, TreeView Table, Pivot Table, Spreadsheet or List Box control.
  • Versions 21 and later
    WINDEV in a window.
    New in version 21
    WINDEV in a window.
    WINDEV in a window.
  • Versions 22 and later
    WINDEV in a Word Processing control.
    New in version 22
    WINDEV in a Word Processing control.
    WINDEV in a Word Processing control.
  • Versions 24 and later
    WINDEV in a PDF Reader control.
    New in version 24
    WINDEV in a PDF Reader control.
    WINDEV in a PDF Reader control.
    WINDEVAndroid in a PDF Reader control.
Versions 18 and later
iPhone/iPad This property is now available for the Map control in the iPhone/iPad applications.
New in version 18
iPhone/iPad This property is now available for the Map control in the iPhone/iPad applications.
iPhone/iPad This property is now available for the Map control in the iPhone/iPad applications.
Versions 20 and later
WINDEVWindows This property is now available for the Map control in the WINDEV applications for Windows.
WEBDEV - Server codeWindowsLinux This property is now available for the Map control in the WEBDEV sites in Windows and Linux.
WEBDEV - Browser code This property is now available on the Map control in Browser mode.
PHP This property is now available on the Map control for the PHP sites.
New in version 20
WINDEVWindows This property is now available for the Map control in the WINDEV applications for Windows.
WEBDEV - Server codeWindowsLinux This property is now available for the Map control in the WEBDEV sites in Windows and Linux.
WEBDEV - Browser code This property is now available on the Map control in Browser mode.
PHP This property is now available on the Map control for the PHP sites.
WINDEVWindows This property is now available for the Map control in the WINDEV applications for Windows.
WEBDEV - Server codeWindowsLinux This property is now available for the Map control in the WEBDEV sites in Windows and Linux.
WEBDEV - Browser code This property is now available on the Map control in Browser mode.
PHP This property is now available on the Map control for the PHP sites.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode for the Map control.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode for the Map control.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode for the Map control.
Versions 25 and later
Android This property is now available on PDF Reader controls in Android applications.
New in version 25
Android This property is now available on PDF Reader controls in Android applications.
Android This property is now available on PDF Reader controls in Android applications.
Example
WINDEVAndroidiPhone/iPad
// 40% zoom on the PDF file displayed in the Image control
IMG_Image_PDF..Zoom = 40
Syntax

Finding out the zoom value Hide the details

<Result> = <Element name>..Zoom
<Result>: Integer
Value of zoom currently performed in the element. This value corresponds to a percentage:
  • in an Image control,
  • Versions 17 and later
    WINDEV in an Organization Chart control.
    New in version 17
    WINDEV in an Organization Chart control.
    WINDEV in an Organization Chart control.
Versions 17 and later
Android In a Map control, this value is included between 1 (the entire Earth is displayed) and 21.
New in version 17
Android In a Map control, this value is included between 1 (the entire Earth is displayed) and 21.
Android In a Map control, this value is included between 1 (the entire Earth is displayed) and 21.
This value corresponds to a percentage:
  • in an Image control,
  • WINDEV in an Organization Chart control.
AndroidiPhone/iPad In a Map control, this value is included between 1 (the entire Earth is displayed) and 21.
This value corresponds to:
  • WINDEVAndroidiPhone/iPad In an Image control: the zoom percentage.
  • WINDEV In an Organization Chart control: the zoom percentage.
  • Versions 20 and later
    WINDEV In a Table, Treeview Table, Pivot Table or Spreadsheet control: the zoom percentage.
    New in version 20
    WINDEV In a Table, Treeview Table, Pivot Table or Spreadsheet control: the zoom percentage.
    WINDEV In a Table, Treeview Table, Pivot Table or Spreadsheet control: the zoom percentage.
  • WINDEVWEBDEV - Server codeWEBDEV - Browser codeAndroidiPhone/iPadUniversal Windows 10 AppPHP In a Map control: to a value found between 1 (display of the entire table) and 21.
  • Versions 21 and later
    WINDEV In a window: the zoom percentage.
    New in version 21
    WINDEV In a window: the zoom percentage.
    WINDEV In a window: the zoom percentage.
  • Versions 22 and later
    WINDEV In a Word Processing control: the zoom percentage.
    New in version 22
    WINDEV In a Word Processing control: the zoom percentage.
    WINDEV In a Word Processing control: the zoom percentage.
  • Versions 24 and later
    WINDEV In a PDF Reader control: the zoom percentage.
    New in version 24
    WINDEV In a PDF Reader control: the zoom percentage.
    WINDEV In a PDF Reader control: the zoom percentage.
    WINDEVAndroid In a PDF Reader control: the zoom percentage.
<Element name>: Character string (with or without quotes)
Versions 17 and later
Name of element to use:
  • Name of Image control.
  • WINDEV Name of Organization Chart control.
  • Android Name of Map control.
New in version 17
Name of element to use:
  • Name of Image control.
  • WINDEV Name of Organization Chart control.
  • Android Name of Map control.
Name of element to use:
  • Name of Image control.
  • WINDEV Name of Organization Chart control.
  • Android Name of Map control.
Name of control to use:
  • Name of Image control.
  • WINDEV Name of Organization Chart control.
  • AndroidiPhone/iPad Name of Map control.
Name of element to use:
  • WINDEVAndroidiPhone/iPad Name of Image control.
  • WINDEV Name of Organization Chart control.
  • WINDEVWEBDEV - Server codeWEBDEV - Browser codeAndroidiPhone/iPadUniversal Windows 10 AppPHP Name of Map control.
  • Versions 20 and later
    WINDEV Name of the Table, TreeView Table, Pivot Table, Spreadsheet or List Box control.
    New in version 20
    WINDEV Name of the Table, TreeView Table, Pivot Table, Spreadsheet or List Box control.
    WINDEV Name of the Table, TreeView Table, Pivot Table, Spreadsheet or List Box control.
  • Versions 21 and later
    WINDEV Name of window.
    New in version 21
    WINDEV Name of window.
    WINDEV Name of window.
  • Versions 22 and later
    WINDEV Name of Word Processing control.
    New in version 22
    WINDEV Name of Word Processing control.
    WINDEV Name of Word Processing control.
  • Versions 24 and later
    WINDEV Name of PDF Reader control.
    New in version 24
    WINDEV Name of PDF Reader control.
    WINDEV Name of PDF Reader control.
    WINDEVAndroid Name of PDF Reader control.

Modifying the zoom value Hide the details

<Element name>..Zoom = <New zoom>
<Element name>: Character string (with or without quotes)
Versions 17 and later
Name of element to use:
  • Name of Image control.
  • WINDEV Name of Organization Chart control.
  • Android Name of Map control.
New in version 17
Name of element to use:
  • Name of Image control.
  • WINDEV Name of Organization Chart control.
  • Android Name of Map control.
Name of element to use:
  • Name of Image control.
  • WINDEV Name of Organization Chart control.
  • Android Name of Map control.
Name of element to use:
  • Name of Image control.
  • WINDEV Name of Organization Chart control.
  • AndroidiPhone/iPad Name of Map control.
Name of element to use:
  • WINDEVAndroidiPhone/iPad Name of Image control.
  • WINDEV Name of Organization Chart control.
  • WINDEVWEBDEV - Server codeWEBDEV - Browser codeAndroidiPhone/iPadUniversal Windows 10 AppPHP Name of Map control.
  • Versions 20 and later
    WINDEV Name of the Table, TreeView Table, Pivot Table, Spreadsheet or List Box control.
    New in version 20
    WINDEV Name of the Table, TreeView Table, Pivot Table, Spreadsheet or List Box control.
    WINDEV Name of the Table, TreeView Table, Pivot Table, Spreadsheet or List Box control.
  • Versions 21 and later
    WINDEV Name of window.
    New in version 21
    WINDEV Name of window.
    WINDEV Name of window.
  • Versions 22 and later
    WINDEV Name of Word Processing control.
    New in version 22
    WINDEV Name of Word Processing control.
    WINDEV Name of Word Processing control.
  • Versions 24 and later
    WINDEV Name of PDF Reader control.
    New in version 24
    WINDEV Name of PDF Reader control.
    WINDEV Name of PDF Reader control.
    WINDEVAndroid Name of PDF Reader control.
<New zoom>: Integer or Integer constant
New zoom value that will be applied to the element.
Versions 24 and later
WINDEVAndroid For a PDF Reader control, this value can correspond to:
  • a percentage.
  • one of the following constants:
    zoomAdaptHeightDisplays the PDF file at full height in the PDF Reader control.
    zoomAdaptWidthDisplays the PDF file at full width in the PDF Reader control.
    zoomAdaptSizeDisplays the entire PDF file in the PDF Reader control.
Remark: the zoom value is not stored when a new PDF file is loaded in the control.
New in version 24
WINDEVAndroid For a PDF Reader control, this value can correspond to:
  • a percentage.
  • one of the following constants:
    zoomAdaptHeightDisplays the PDF file at full height in the PDF Reader control.
    zoomAdaptWidthDisplays the PDF file at full width in the PDF Reader control.
    zoomAdaptSizeDisplays the entire PDF file in the PDF Reader control.
Remark: the zoom value is not stored when a new PDF file is loaded in the control.
WINDEVAndroid For a PDF Reader control, this value can correspond to:
  • a percentage.
  • one of the following constants:
    zoomAdaptHeightDisplays the PDF file at full height in the PDF Reader control.
    zoomAdaptWidthDisplays the PDF file at full width in the PDF Reader control.
    zoomAdaptSizeDisplays the entire PDF file in the PDF Reader control.
Remark: the zoom value is not stored when a new PDF file is loaded in the control.
WINDEVAndroidiPhone/iPad For an Image control, this value can correspond to:
  • a percentage.
  • one of the following constants:
    zoomAdaptHeightDisplays the image full height in the Image control.
    zoomAdaptWidthDisplays the image full width in the Image control.
    zoomAdaptSizeDisplays the entire image in the Image control.
Remark: the zoom value is not stored when a new image is loaded in the control.
Versions 17 and later
Android For a Map control, this value is included between 1 (the entire Earth is displayed) and 21.
WINDEV For an Organization Chart control, this value corresponds to a percentage.
New in version 17
Android For a Map control, this value is included between 1 (the entire Earth is displayed) and 21.
WINDEV For an Organization Chart control, this value corresponds to a percentage.
Android For a Map control, this value is included between 1 (the entire Earth is displayed) and 21.
WINDEV For an Organization Chart control, this value corresponds to a percentage.
AndroidiPhone/iPad For a Map control, this value is included between 1 (the entire Earth is displayed) and 21.
WINDEV For an Organization Chart control, this value corresponds to a percentage.
WINDEVWEBDEV - Server codeWEBDEV - Browser codeAndroidiPhone/iPadUniversal Windows 10 AppPHP For a Map control:
  • this value is included between 1 (the entire Earth is displayed) and 21.
  • Versions 20 and later
    this value can correspond to the following constant:
    zoomAdaptSizeAdapts the zoom of Map control in order for all the markers to be visible at the same time.
    New in version 20
    this value can correspond to the following constant:
    zoomAdaptSizeAdapts the zoom of Map control in order for all the markers to be visible at the same time.
    this value can correspond to the following constant:
    zoomAdaptSizeAdapts the zoom of Map control in order for all the markers to be visible at the same time.
WINDEV For an Organization Chart control, this value corresponds to a percentage.
Versions 20 and later
WINDEV For a Table, TreeView Table, Pivot Table, Spreadsheet or List Box control: this value corresponds to a percentage.
New in version 20
WINDEV For a Table, TreeView Table, Pivot Table, Spreadsheet or List Box control: this value corresponds to a percentage.
WINDEV For a Table, TreeView Table, Pivot Table, Spreadsheet or List Box control: this value corresponds to a percentage.
Versions 21 and later
WINDEV For a window, this value corresponds to a percentage.
New in version 21
WINDEV For a window, this value corresponds to a percentage.
WINDEV For a window, this value corresponds to a percentage.
Versions 22 and later
WINDEV For a Word Processing control, this value corresponds to a percentage.
New in version 22
WINDEV For a Word Processing control, this value corresponds to a percentage.
WINDEV For a Word Processing control, this value corresponds to a percentage.
Remarks
WINDEVReports and QueriesWindowsUser code (UMC)

Drawing functions, zoom and automatic scrollbars

The option "Automatic scrollbars and zoom", available on Image controls, is not compatible with dStartDrawing. If this option is used on the Image control, the display performed by dStartDrawing is fixed in the control. The zoom is also fixed. The standard behavior is restored during the call to dEndDrawing.
The same effect can be noticed with dPixelColor and dRotation.

Limit

This property only applies to:
  • to Image controls with the option "Automatic scrollbars and zoom".
Versions 17 and later
  • Android the Map controls.
  • WINDEV the Organization Chart controls.
New in version 17
  • Android the Map controls.
  • WINDEV the Organization Chart controls.
  • Android the Map controls.
  • WINDEV the Organization Chart controls.
  • AndroidiPhone/iPad the Map controls.
  • WINDEV the Organization Chart controls.
  • WINDEVWEBDEV - Server codeWEBDEV - Browser codeAndroidiPhone/iPadUniversal Windows 10 AppPHP the Map controls.
  • WINDEV the Organization Chart controls.
  • Versions 20 and later
    WINDEV the Table, TreeView Table, Pivot Table, Spreadsheet or List Box controls.
    New in version 20
    WINDEV the Table, TreeView Table, Pivot Table, Spreadsheet or List Box controls.
    WINDEV the Table, TreeView Table, Pivot Table, Spreadsheet or List Box controls.
  • Versions 21 and later
    WINDEV a window.
    New in version 21
    WINDEV a window.
    WINDEV a window.
  • Versions 22 and later
    WINDEV a Word Processing control.
    New in version 22
    WINDEV a Word Processing control.
    WINDEV a Word Processing control.
Related Examples:
The Image control (display a PDF or a TIFF) Unit examples (WINDEV): The Image control (display a PDF or a TIFF)
[ + ] Displaying a PDF or TIFF document in the Image control found in a window.
The Map control Unit examples (WEBDEV): The Map control
[ + ] This example explains how to use the Map control of WEBDEV.
It can be used to display a map that includes markers as well as an itinerary.
The Map control Unit examples (WINDEV): The Map control
[ + ] Using the Map control of WINDEV.
It is used to display a map that includes markers as well as an itinerary.
Minimum version required
  • Version 12
This page is also available for…
Comments
Video Zoom
https://youtu.be/MVrzB-HW_3o

https://windevdesenvolvimento.blogspot.com/2019/05/dicas-2125-windev-webdev-mobile-tabela.html

// btn_AUMENTAR_zoom
TABLE_PEDIDO_JUNTA..Zoom+=10
// btn_DIMINUIR_zoom
TABLE_PEDIDO_JUNTA..Zoom-=10
amarildo
27 May 2019
Example
MapLicenseGgl("AIzaSyDbSVKYPwB1a-_vPbDzAr6LgAfIj4iW2hc")

PositionWx is geoPosition
PositionWx.Latitude = -25.4401779
PositionWx.Longitude = -49.2118695

MarkerWx is Marker
MarkerWx.Description = "WX INFORMATICA"
MarkerWx.Name = "WX INFORMATICA"
MarkerWx.Position = PositionWx

MapAddMarker(GoogleMaps,MarkerWx)

GoogleMaps.DisplayPosition(PositionWx)
GoogleMaps..Zoom = 18
BOLLER
13 Jul. 2018