ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Web-specific functions / Image functions
  • Pre-launched sessions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the horizontal position (X) 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"
  • When action: "Send click details".
Example
// Code de clic de IMG_IMAGE1
X is int = ImageXPos()
Y is int = ImageYPos()
IF X > Y THEN
	LIB_LIBELLE1 = "En Haut - A Droite"
ELSE
	LIB_LIBELLE1 = "En Bas - A Gauche"
END
Syntax
<Result> = ImageXPos()
<Result>: Integer
Horizontal position (or X-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 ImageXPos 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 "Initialization in pre-launched session mode" event.
Component: wd300page.dll
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help