Thread: New Windows
View Single Post
Old 05-24-2013, 11:23 AM   #3
valaury3169
Enhanced Imperial Golem
 
Join Date: Jun 2008
Posts: 204
Interface Author - Click to view interfaces
Default

I apologize as well to Danille. I wasn't thinking about the specific purpose of the other thread.

2 things:

First, I played around with my custom buttons to determine the specific behaviour.

If your button is a the top left of the screen (which would imply that whatever window you are opening has plenty of room):
  1. The top left corner of the window will align with the top left corner of the button (I had incorrectly assumed it used the click x,y).

If your button is at the bottom of the screen:
  1. There is not enough room below the button to view the whole window, but there is enough room above it to view the entire window, then it will align the bottom left corner of the window to the bottom left corner of the button.
  2. If there is not enough room above the button to show the entire window, it will align the top edge of the window with the top edge of the screen and align the left edge of the window with the left edge of the button.

There doesn't seem to be any check for left and right, but it will always follow the above rules for up and down. So, if your button is on the right side of the screen, the left edges will align (and be mostly off the right side of the screen), and the vertical positioning will follow the rules.

It would be nice if you could actually control the positioning of the new window, and not just predict the postioning.

Second, I have a couple of questions for Sparxx about new windows. First, I am assuming that not only can you put basic elements (lables, etc), but you can also put dynamic items like gauges and stuff (EQType that is not locked to a specific window)? Also, just to be sure, your code example is snipped, as in you still need the basic tags (<xml>, etc) correct?
valaury3169 is offline   Reply With Quote