PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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 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"
  • 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> = 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 "Initializing the project after connection to the site" event.
Component: wd270page.dll
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment