ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Image functions
  • 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 vertical position (Y) of the mouse cursor in relation to the specified Image control.
This function can only be used in the click code of an Image control. This Image control has the following characteristics (in the "General" tab of the control description window):
  • Action on click: "Server call"
  • During the action: "Send click coordinates".
Example
// Click code of IMG_IMAGE1
X is int = ImageXPos()
Y is int = ImageYPos()
IF X > Y THEN
STC_CAPTION1 = "Top - Right"
ELSE
STC_CAPTION1 = "Bottom - Left"
END
Syntax
<Result> = ImageYPos()
<Result>: Integer
Vertical position (Y-coordinate) in pixels of the mouse cursor in relation to the upper-left corner of the Image control on which the left mouse button was pressed.
This value is undefined if ImageYPos is used in an event other than the click code of an Image control with an action set to "Send click coordinates" ("General" tab of the control description window).
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 "Initializing the project after connection to the site" event.
Component: wd290page.dll
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 06/08/2022

Send a report | Local help