[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  Manipulating Main Window
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Manipulating Main Window

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


Posted by Slick2175   USA  (27 posts)  [Biography] 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)
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

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


2,553 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]