View Single Post
  #1  
Unread 01-11-2006, 11:09 AM
mother9987's Avatar
mother9987 mother9987 is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 204
Default Cartesian Addition (Right/Bottom Aligning Windows)

Just wondering if anyone has attempted to do math on coordinate pairs to achieve right-aligning of windows.

Currently, I'm working on my maintained spells window to make a right-side of the screen version, which requires two windows to share the same top-right corner.

I'm having some luck with:

Code:
MathIsHard.Size=Parent.MaintainedCompact.Size
MathIsHard.RightBarbie.Size=Location
MathIsHard.RightBarbie.PackSize=A,A
MathIsHard.Size=Size
Which basically takes the location of the maintained window, adds it's size and then subtracts the size of the small maintained window. (The result ends up in MathIsHard.RightBarbie.Size. The calculation isn't instant.) Currently, I'm using an effector to read the value back an instant later but am open for other ideas.

Was just wondering if anyone had tried something similar in the past and had any warnings/tips...

Or, if no one had tried it before, perhaps it'll work as inspiration to some of the geniuses writing interfaces...
__________________
'Tetht the printhiple, tetht the printhiple,' muttered Igor. 'Thorry, thur, but Igorth do not "tetht the printhiple". Thtrap it to the bench and put a good thick bolt of lightning through it, thatth our motto. Thatth how you tetht thomething.'
Reply With Quote