On Feb 11, 2007, at 7:08 AM, Chris Halford wrote:
Mark,
You should validate that your functions still work if the position
(left/top) of your container control moves after it is created.
There is sneaky stuff still in the mix:(
My containers are in a fixed position...so I did not need to test
this. It is possible that ContainerControls are not designed to be
moving in real time after creation. If they were not designed to
do so, then RB may not have an update routine to recalc their
position within the window. ContainerControls are not
rectControls. They are their own class. While rectControls exist
within the controlList and the window always knows their current
locations, I cannot say how ContainerControls are maintained.
Assuming that RB does not adjust the top/left of the ContainerControl
when you move, it may be up to you to track the movements, and then
offset your top/left calculations for each movement. I.E. "roll
your own" top/left update routine since you are the one who knows
where the ContainerControl as moved and how far....then you can plug
those calculations into the routines I provided and you will have
true locations of the mouse within the container or one of its
rectControls....
Just a thought..
Mark
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>