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 ➜ General ➜ Window and scroll bar width?

Window and scroll bar width?

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 11 Sep 2008 11:21 PM (UTC)

Amended on Thu 11 Sep 2008 11:22 PM (UTC) by WillFa

Message
The three window width's that you can feed into GetInfo return, for example:

GetInfo(262) = 1258 , which seems to be measured from the outside edges of the world window frame.

GetInfo(264) = 1254 , which seems to be measured from the inside of the frame.

GetInfo(281) = 1240 , which is the width of the text rectangle, which at the moment fills the inside frame - the scrollbar width. But that can change if TextRectangle resizes the frame...

Is there a way to get the scrollbar width so I could consistently generate the 1240 value? (i.e. GetInfo(264) + HKCU\Control Panel\Desktop\Window Metrics\ScrollWidth )





p.s. Are we close to getting our dirty little hands on 4.37? :)
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 12 Sep 2008 07:48 AM (UTC)
Message
281 is "Output window client width".

That is, regardless of any text rectangle size, this is the client window width.

Thus the difference between 281 and 264 will be the scrollbar width (20 pixels in my case).

In case anyone is wondering what all this talk about clients is about, the client area is the area onto which miniwindows, text, background images, etc. appears.

The "non-client" area is the larger area which encompasses the title, borders, scroll bars and other "housekeeping" stuff.

However this doesn't totally account for why there is a 20-pixel difference in my case between GetInfo (264) and GetInfo (281) as both refer to "client" sizes.

I think this can be accounted for by the fact that there is a splitter window inserted into the frame client area. The splitter window owns the scroll bars, so they are part of the non-client area of the output window, but part of the client area of the owner window, which is the world window.

I hope that makes sense. :)

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Fri 12 Sep 2008 07:50 AM (UTC)
Message
4.37 should be released fairly soon - at least within about 5 days from now.

I am trying to finalize things like getting the current mouse position.

- Nick Gammon

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

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #3 on Fri 12 Sep 2008 06:41 PM (UTC)
Message
Sweet! Thanks for the clarification, Nick. :)
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.


11,315 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.