PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Cached 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 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 a clickable image (whose type is "Map area - Send the click coordinates to the server").
Versions 15 and later
PHP This function is now available for the PHP sites.
New in version 15
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
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> = ImageXPos()
<Result>: Integer
Horizontal position (or X coordinate) in pixels of the mouse in relation to the top left corner of the Clickable Image control on which the left mouse button was pressed.
This value is undefined if ImageXPos is used in a process other than the click code of an image whose type is "Click area - Send the click coordinates to the server".
Remarks
Versions 20 and later

Cached sessions

If your project is using cached sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.
New in version 20

Cached sessions

If your project is using cached sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.

Cached sessions

If your project is using cached sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment