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 ➜ Manipulating Main Window

Manipulating Main Window

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


Posted by Slick2175   USA  (27 posts)  Bio
Date Sun 16 Nov 2014 08:01 PM (UTC)

Amended on Sun 16 Nov 2014 08:06 PM (UTC) by Slick2175

Message
So Im confused here with manipulating the main window in
which you play your mud in.


Ok from my understanding this should be the size of the grey area that your Game Window Sits on

table.foreach (GetMainWindowPosition (), print)

and this should also be the grey area that your game sits on.

print (GetInfo(261), "World Window non-Client Height")
print (GetInfo(262), "World Window non-Client Width")

But I get two different numbers


-- table.foreach (GetMainWindowPosition (), print)
Main Window
top 132
height 525
left 132
width 1025



-- print (GetInfo(261), "World Window non-Client Height")
-- print (GetInfo(262), "World Window non-Client Width")
581 Client Height
1370 Client Width


What I want to do is I want to cut the main window in half, and move it to the bottom middle. So I can place another window above it. But I dont even know what numbers are the right numbers to be capturing.

As far as the game window we have all of these positions we can call down, and im not exactly sure what each one really represents. So I was hoping someone could clarify what each one represents. Im wanting to make sure the windows looks right regardless of the resolution you run.


-- print (GetInfo(235), "Window Number")
-- print (GetInfo(261), "World Window non Client Height")
-- print (GetInfo(262), "World Window non Client Width")
-- print (GetInfo(263), "World Window Client Height")
-- print (GetInfo(264), "World Window Client Width")
-- print (GetInfo(250), "Main frame window width")
-- print (GetInfo(249), "Main frame window height")
-- print (GetInfo(280),"Output Window Client Height")
-- print (GetInfo(281),"Output Window Client Width")
-- table.foreach (GetWorldWindowPosition(), print)
-- table.foreach (GetMainWindowPosition(), print)
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 16 Nov 2014 10:48 PM (UTC)
Message
To change where the text appears:

http://www.gammon.com.au/scripts/doc.php?function=TextRectangle

I think you probably want "World* Window Client Height/Width".

* Or maybe "Output".

The "client" is the part excepting the title bar, scroll bars etc.

"Non-client" includes title, scrollbars.

The "world window" is the window for this world (as opposed to some other world / notepad window).

"Frame" is the entire client (into which all the windows fit).

"Output window" is where the output goes (as opposed to where you type).

- Nick Gammon

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

Posted by Slick2175   USA  (27 posts)  Bio
Date Reply #2 on Sun 16 Nov 2014 11:30 PM (UTC)
Message
Awesome Thank you, and thanks for the tip with TextRectangle
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.


15,853 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.