AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones específicas de la Web / Funciones de imagen
  • Pre-launched sessions
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
Returns the number of the image area clicked by the Web user.
This function can only be used in the click code of a Clickable Image control (control with an action set to "Clickable areas defined in edit mode (Image map)" in the "General" tab of the control description window).
Example
// Click on IMG_IMAGE1
n is int = ImageArea()
Trace(n)
SWITCH n
CASE 0: STC_Caption1 = "External area"
CASE 1: STC_Caption1 = "Area 1"
CASE 2: STC_Caption1 = "Area 2"
END
Syntax
<Result> = ImageArea()
<Result>: Integer
Number of the clicked area. This number is undefined if ImageArea is used in an event other than the "Click" event of an Image control.
Remark: In the "General" tab of the Image control description window, "Action on click" corresponds to "Clickable areas defined in edit mode (Image map)".
Remarks

Pre-launched sessions

If your project uses pre-launched sessions, this function must not be used in the project initialization event. This function must be used in the "Initialize project after connecting to the site" event.
Related Examples:
The MapArea control Unit examples (WEBDEV): The MapArea control
[ + ] Using the MapArea control to display specific click areas in an image.
Component: wd290page.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/06/2023

Señalar un error o enviar una sugerencia | Ayuda local