KB-28807: Setting up the Modal Screen’s position.

Question:

How can I set up a Modal Screen to be opened next to the Button pressed to open it?

Solution:

To do so, you must use ToPixelX() and ToPixelY() methods to convert the HIMETRIC coordinate into pixels, and then execute the command for opening the screen by establishing the X and Y position where it should be opened.

For example:

PositionX = Screen.ToPixelX(X)+ Screen.ToPixelX(Width)
PositionY = Screen.ToPixelY(Y)
Application.DoModal “ModalScreen”, , PositionX, PositionY, , , 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 *