PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Zooming in/Zooming out the content of a table
  • Storing the zoom
  • Programming
  • Programming the zoom
  • Disabling the zoom
  • Canceling the zoom
  • Modifying the caption of the option used to cancel the zoom (by programming)
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
AAF: Zoom the content of a control (Table, Spreadsheet, List box, Pivot table, ...)
Overview
To simplify the reading in the controls used to view large volumes of data, the end user has the ability to zoom the data found in the control.
The displayed data can be zoomed in the following controls:
  • Table control,
  • Table control found in a Combo Box control,
  • TreeView Table control,
  • Pivot Table control,
  • Spreadsheet control,
  • List Box control.
On the left,
On the left, "standard" table content ; on the right, the same content zoomed
Zooming in/Zooming out the content of a table
To zoom the content of a control:
The user can zoom the content of a table by using the [CTRL] key and the mouse wheel.
To restore the initial display, all you have to do is select "Cancel zoom" from the popup menu of control (or press [CTRL] + 0).

Storing the zoom

  • On the Table and TreeView Table controls, the zoom is automatically saved and re-applied during the next table display if "Store the column configuration" is checked ("Details" tab in the description window of control).
  • On the Pivot Table control, the zoom is automatically saved.
Programming

Programming the zoom

To program the zoom that will be applied to the Table control (TreeView Table control, Pivot Table control, Spreadsheet control, ...), use ..Zoom on the control.
For example:
// Zoom in 150%
TABLE_Customer..Zoom = 150
If the zoom is performed by programming, the popup menu of the control allows you to cancel the zoom.

Disabling the zoom

To prevent from zooming on a control, all you have to do is use DisableAAF associated with the aafZoom constant.
For example:
// Prevent from zooming
DisableAAF(TABLE_Customer, aafZoom)
To prevent from zooming on a control, all you have to do is use AAFDisable (or DisableAAF) associated with the aafZoom constant.
For example:
// Prevent from zooming
AAFDisable(TABLE_Customer, aafZoom)

Canceling the zoom

To cancel the zoom on a Table control (and to restore the initial status), all you have to do is use AAFExecute (or ExecuteAAF) associated with the aafZoom constant.

Modifying the caption of the option used to cancel the zoom (by programming)

To cancel the zoom, the end user can display the popup menu of the control (right mouse click) and select "Cancel zoom".
To modify the caption of this option, all you have to do is use AAFChangeCaption associated with the aafZoom constant.
Minimum required version
  • Version 20
Comments
Click [Add] to post a comment