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
➜ Bug reports
➜ Missing Information in WindowResize Helpfile?
Missing Information in WindowResize Helpfile?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Slick2175
USA (27 posts) Bio
|
Date
| Sat 22 Nov 2014 01:02 AM (UTC) |
Message
| Just curious if this is a bug in the WindowResize helpfile.
the prototype is:
long WindowResize(BSTR WindowName, long Width, long Height, long BackgroundColour);
but in your example on there you have 6 arguments and there is no explanation as to what the other 2 arguments stand for
WindowResize ("inventory", 0, 0, 300, 300, ColourNameToRGB ("red")) -- resize window
So in your example the 2nd and 3rd parameter is width, height, whats the 4th, 5th?
the 4th seems to affect the colour brightness. I cant figure out the 5th.
And it also states
BackgroundColour - this is the RGB code for the colour is used to replace any pixels which are now visible, which were not previously (if the new size is larger than the old one).
So from that unless I misunderstand it, it should only color in the new pixles that are made. For me its fills the whole window even when i make it smaller.
example making window 1 pixel smaller on width and height
win_size = WindowInfo(eq, 4) -- height
win_width = WindowInfo(eq, 3) -- width
WindowResize (eq, win_width - 1, win_size - 1, ColourNameToRGB ("red")) -- resize window
Am I missing something? Or is this info wrong? | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 22 Nov 2014 04:19 AM (UTC) |
Message
| Looks like a bug in the help file. I probably copied and pasted the example from somewhere else. The function prototype would be right. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sat 22 Nov 2014 04:27 AM (UTC) |
Message
| I fixed the online documentation. As for the colour fill, that looks like a bug. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Slick2175
USA (27 posts) Bio
|
Date
| Reply #3 on Sat 22 Nov 2014 05:33 AM (UTC) |
Message
| Alright, just for a fyi
WindowResize ("inventory", 0, 0, 400, 300, ColourNameToRGB ("red")) -- resize window
Where the 400 is there, it affects the color. adjusting it changes the color quite a bit. Its like some type of hue/sat effect. 0 makes it black around 300 the color is bright then once u start going above that starts to change the color it seemed. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sat 22 Nov 2014 05:46 AM (UTC) |
Message
| |
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.
16,725 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top