Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Miniwindows ➜ Miniwindow Positioning

Miniwindow Positioning

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by WillFa   USA  (525 posts)  Bio
Date Thu 31 Jul 2008 06:24 AM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 31 Jul 2008 07:01 AM (UTC)
Message
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:

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Thu 31 Jul 2008 07:02 AM (UTC)
Message

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #3 on Thu 31 Jul 2008 07:35 AM (UTC)
Message
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!
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #4 on Thu 31 Jul 2008 07:47 AM (UTC)

Amended on Thu 31 Jul 2008 07:54 AM (UTC) by WillFa

Message
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?)
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #5 on Thu 31 Jul 2008 08:06 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,257 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.