KB-60664: Opening a modal screen according to mouse position.

Question:

How can I open a modal screen according to mouse position?

Solution:

To do so, you must use GetMouseX and GetMouseY methods, which return the mouse’s coordinates, both in pixels. When clicking a screen object, a new model screen is opened according to the click’s position.

Example:

PosX = Application.GetMouseX()
PosY = Application.GetMouseY()
Application.DoModal “ModalScreenName”, “”, PosX, PosY, 0, 0, Arg

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *