I am displaying a modal form on top of a data entry form if a certain contition exists. I want to position the top of this modal form to be just below the current control on the original form.
To do this I am looking at the top property of the current control and adding the top property of it's parent...and it's parent...and it's parent...etc. However there are some parents (ie containers) that don't have a TOP property.
This method works ok as long as the original control is NOT on a pageframe within a pageframe within a container...etc.
Is there a better way to calculate where the top of this modal form should be to appear just below the current control?