AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones del cursor del ratón
  • Limits in browser code
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Used in an linked mouse or stylus event (click code, hover code, left or right button pressed code, etc.) returns the horizontal position (X) of the mouse cursor relative to the control or window in question.
You can get:
  • the position of the mouse (or stylus) when an Image control is clicked (function used in the "Click" event of the Image control).
  • the position of the mouse (or stylus) when hovering over a window (function used in the optional "Mouse hover" event of a window).
WEBDEV - Código Navegador Used in a browser event (of an control or Page), returns the horizontal position (X) of the mouse cursor according to the specified origin.
Remarks:
    Ejemplo
    WEBDEV - Código Navegador
    // Survol souris de la page "Dessin"
    // Code optionnel de la page
    // Souris déplacée (onmousemove)
    Message("Position de la souris: X: " + MouseXPos(mpPage) + " Y: " + MouseYPos(mpPage))
    Sintaxis
    WEBDEV - Código Navegador

    Retrieving the mouse position in a page Ocultar los detalles

    <Result> = MouseXPos([<Origine>])
    <Result>: Integer or real
    • Horizontal position (X-coordinate) of the mouse cursor relative to the specified marker (in pixels)
    • 0 if the information is not available (depending on the browser used and on the control).
    <Origine>: Optional integer constant
    Origin used to calculate position:
    mpControl
    (Default value)
    Mouse position relative to the upper-left corner of the hovered control or page, depending on where the event occurs.
    If this constant is selected, MouseXPos must be used in the "OnClick" code of the control.
    mpPageMouse position relative to the upper-left corner of the page (taking into account the position of the page if it has been scrolled).
    mpScreenMouse position in the screen (relative to the upper-left corner).
    Observaciones
    WEBDEV - Código Navegador

    Limits in browser code

    MouseXPos is not available:
    • in browser procedures.
    • in the events directly or indirectly called from a browser procedure (via ExecuteProcess for example).
    • in the browser code of a Button or Link control..
    Componente: wd290obj.dll
    Versión mínima requerida
    • Versión 9
    Esta página también está disponible para…
    Comentarios
    Haga clic en [Agregar] para publicar un comentario

    Última modificación: 09/04/2024

    Señalar un error o enviar una sugerencia | Ayuda local