Hello List,
I find this weird so I filed a report (uxmusysv):
Summary:
Coordinates of controls inside a Container are relative to their
initial position
Incorrect Functionality
Description
Coordinates of RectControls inside a ContainerControl are relative to
their container and that's fine,
but if you resize or move the ContainerControl and check for the
contained RectControls coordinates they're relative to their
container INITIAL position and not to its actual current position.
IDE Version
REALbasic 2006r2
Target and Platform Run on
Macintosh - OS X 10.4.5
Steps to Reproduce
Create a ContainerControl
Put a RectControl into it
Drag the ContainerControl into a resizable window
Lock it to the right
Run the app, resize the window and check the left coordinate of the
RectControl inside the ContainerControl
You see it's ever changing even if it's position relative to the
container is still the same
Workaround
Keep track of the initial position of the ContainerControl,
Subtract the actual ContainerControl coordinate value from that
initial position
and add that offset to the coordinates returned by contained controls
Cool Runnings,
Erne.
/ |\ |\ | /
– |/ | \ | –
\ |\ | \| \
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>