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 ➜ GetMainWindowPosition

GetMainWindowPosition

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


Posted by Deqitosv   USA  (26 posts)  Bio
Date Thu 14 Jul 2005 03:54 PM (UTC)
Message
I did a search for this already, and was hoping maybe someone else had found this problem and fixed it.

I'm attempting to get the window size for both the main window and the current world, easy enough with the provided functions.

However, I've noticed when I do a GetMainWindowPosition, it is exactly correct to the pixel... Until I maximize the window, then it is entirely wrong.

The same goes with GetWorldWindowPosition, as long as the world isn't maximized, the numbers are correct.

Is anyone else experiencing this, or am I just doing something wrong?

Thanks!

Deqitosv
MushClient Plugins for LegendMUD:
http://www.itgotdeleted.com/ (currently offline)

Experiments in Film:
http://www.cookiejarfilms.com/

15, a Parody of 24:
http://www.pkill.org
Top

Posted by Deqitosv   USA  (26 posts)  Bio
Date Reply #1 on Mon 01 Aug 2005 08:46 PM (UTC)
Message
Still unable to figure out why it keeps the window sizes of the restored window rather than the maximized one when I run these functions....

Deqitosv
MushClient Plugins for LegendMUD:
http://www.itgotdeleted.com/ (currently offline)

Experiments in Film:
http://www.cookiejarfilms.com/

15, a Parody of 24:
http://www.pkill.org
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Thu 04 Aug 2005 07:51 AM (UTC)
Message
These functions return the values that Windows supplies. I suspect that it remembers the "real" window position for when you unmaximize it, and that is the value that is returned by MUSHclient.

- 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.


10,889 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.