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