Miniwindow Positioning

Posted by WillFa on Thu 31 Jul 2008 06:24 AM — 6 posts, 16,539 views.

USA #0
Could it be possible to change the algorithm for position 7 so that it's not

for I = 1,n
Window[I].top = i*(ScreenHeight/n+1) - Window[i].height/2

but instead

for I = 1,n
totalHeight += Window[I].height

first = Screenheight/2 - totalheight/2

Window[1].top = first
for I = 1,n-1
Window[I+1].top = Window[I].top + Window[I].height


The way the current positioning works, if you have 4 miniwindows. 1 positioned at 6 (top right), 1 at 8 (bottom right) and 2 at 7 (centered right side), the 2 centered ones can overlap the two corner ones with empty space in the middle.
Australia Forum Administrator #1
No, they don't.


WindowCreate ("1", 0, 0, 100, 100, 6, 0, ColourNameToRGB ("cyan")) 
WindowCreate ("2", 0, 0, 100, 100, 7, 0, ColourNameToRGB ("red")) 
WindowCreate ("3", 0, 0, 100, 100, 7, 0, ColourNameToRGB ("blue")) 
WindowCreate ("4", 0, 0, 100, 100, 7, 0, ColourNameToRGB ("yellow")) 
WindowCreate ("5", 0, 0, 100, 100, 7, 0, ColourNameToRGB ("green")) 
WindowCreate ("6", 0, 0, 100, 100, 8, 0, ColourNameToRGB ("magenta")) 

WindowShow "1"
WindowShow "2"
WindowShow "3"
WindowShow "4"
WindowShow "5"
WindowShow "6"


See below for screenshot:
Australia Forum Administrator #2
USA #3
I just came back to say I figured out what my problem was...
The windows positioned in the corners had the Draw Underneath flag set.

Sorry! My goof!
USA #4
http://byfiles.storage.live.com/y1pic-CbWOdM7Vvu1osdIQQGeaWATN9QhV1TbUV6BJ6hQn9QV0-RSJ5FLiRFo3Pi5Vk

here's a picture of what I was seeing when I opened my big mouth...

(I guess the regulars can't post images?)
Amended on Thu 31 Jul 2008 07:54 AM by WillFa
Australia Forum Administrator #5
Only one person can post images. :-)

Looking at those pictures, I can see you are making good use of the new features. Looking forwards to the release.