PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Pre-launched sessions
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
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 (whose type is "Map Area).This function can only be used in the click code of a Clickable Image control (Clickable Image control with the action "Click redefined by graphic areas in edit (Map Area)" in the "General" tab of the control description window).
Example
// Click on 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 a Clickable Image control.
This is a "Map Area" control).The action "Click redefined by graphic areas in edit (Map Area)" has been defined in the "General" tab of the control description window).
Remarks
Versions 20 and later

Pre-launched sessions

If your project uses pre-launched sessions, this function must not be used in the event "Initializing" of the project. This function must be used in the event "Initializing the project after connection to the site".
New in version 20

Pre-launched sessions

If your project uses pre-launched sessions, this function must not be used in the event "Initializing" of the project. This function must be used in the event "Initializing the project after connection to the site".

Pre-launched sessions

If your project uses pre-launched sessions, this function must not be used in the event "Initializing" of the project. This function must be used in the event "Initializing the project after connection to the site".
Related Examples:
The MapArea control Unit examples (WEBDEV): The MapArea control
[ + ] Using the MapArea control to display specific click areas in an image.
Component : wd240page.dll
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment