Mike Littlewood
asked on
Position a window at run-time in relation to its parent (not ownercentre etc)
I have a very small window that gets created when its parent does, but I dont want it to sit in the middle of its parent, but down in the bottom left corner of the parents window. Â How can I determine the screen position it should go to (assuming I know the width of the 2 windows and the start position of the parent)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks all ...
I got it working using the second solution.
For some reason using "Parent.<>" just keeps throwing up errors
I got it working using the second solution.
For some reason using "Parent.<>" just keeps throwing up errors
Sure it throws errors. I've thought that You change it by what is really parent.
BTW
It seems that You haven't Parent/Child relationship if the second solution works ok.
BTW
It seems that You haven't Parent/Child relationship if the second solution works ok.
Top := Parent.Height-Height;