T
TC
Hi Stephen
Hoping you will read this & be able to comment.
I need to get, at runtime, the absolute location (in screen pixels) of
a control on a form. This is for an online tutorial program, that
actually points to various controls & tells the user what they do. I've
got this working fine, using code that I've lifted from your excellent
PositionFormRelativeToControl function.
I now need, if possible, to do the same for reports. That is: to get,
at runtime, the absolute location (in screen pixels) of a control on a
report; bearing in mind that the report might be displayed initially in
any size.
For the sake of this exercise, reports & forms seem rather similar.
Both use lightweight controls; both have the necessary control
properties (left, top etc.); and both have 3 OFormSubs(!) But on an
initial try, I did not get the right result.
So, before I start delving in to this: do you happen to know, off the
top of your head, whether it is possible?
TIA,
TC
Hoping you will read this & be able to comment.
I need to get, at runtime, the absolute location (in screen pixels) of
a control on a form. This is for an online tutorial program, that
actually points to various controls & tells the user what they do. I've
got this working fine, using code that I've lifted from your excellent
PositionFormRelativeToControl function.
I now need, if possible, to do the same for reports. That is: to get,
at runtime, the absolute location (in screen pixels) of a control on a
report; bearing in mind that the report might be displayed initially in
any size.
For the sake of this exercise, reports & forms seem rather similar.
Both use lightweight controls; both have the necessary control
properties (left, top etc.); and both have 3 OFormSubs(!) But on an
initial try, I did not get the right result.
So, before I start delving in to this: do you happen to know, off the
top of your head, whether it is possible?
TIA,
TC