![]() |
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.SizeWas 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... |
Confused by what you mean right bottom alignment of windows? Are you talking about actual windows shifting position in game, or say, an Icon being in the bottom right corner, even on resize?
|
Quote:
For example, I had a request of my maintained spell window to right align the icons. On the left align version, it's easy. Just set the small window with just the icons and the big window with all the info to use the same location. But, since the big window is resizable, aligning the two windows to have the same right side was a bit of a problem. I started experimenting with the way that the client repositions items within a page when you resize that page as a way to do the math necessary. I accidentally trashed the HD with all the work on it, so I'll be starting over once I get the next incarnation of my raid window working. I hope that makes clearer what I was working on accomplishing. But, in theory, you could use it to have a group window that is always aligned to the bottom of the screen and grows upward as members join/leave the group. Or to keep two windows positioned vertically one above the other regardless of the size of the windows. |
| All times are GMT -5. The time now is 09:32 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI