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 ➜ Positioning the main output window

Positioning the main output window

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


Posted by Tboydston   (14 posts)  Bio
Date Wed 25 Mar 2009 07:30 AM (UTC)
Message
I've been toying with miniwindows lately and I've bumped into a problem with the main output window.

Is there a way to change its location? I know I can set the text offset up to 20 characters, but if I change my font face or size that'd mess up the offset. I'm trying to get a larger margin so I can have a wider miniwindow to the left of the MUD's output. I'm sure I've glossed over something, but all of my searches have been fruitless.

Thanks!
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #1 on Wed 25 Mar 2009 07:38 AM (UTC)
Message
TextRectangle?


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

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Tboydston   (14 posts)  Bio
Date Reply #2 on Wed 25 Mar 2009 07:53 AM (UTC)
Message
That's exactly what I need! Thanks.

P.s.it doesn't seem to be doing much of anything.

TextRectangle(50, 50, 50, 50, 1, ColourNameToRGB ("gray"), 1, 1, ColourNameToRGB ("silver"))

If I put that in the immediate window (just to play with it) nothing really seems to happen. Any ideas?
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #3 on Wed 25 Mar 2009 10:54 AM (UTC)
Message
Try this:

TextRectangle(50, 50, -50, -50, 1, ColourNameToRGB ("gray"), 1, ColourNameToRGB ("silver"), 0)


The changes from 50 to -50 are so the calculation for right and bottom will happen from those edges, rather than the left or top edge (which means this allows your textrectangle to size along if you resize the window).

I also changed the last two parameters around, since those are the cause your function didn't work. You tried to give it a color for the filling style, which caused a return value of eBrushStyleNotValid - and the function didn't work as a result.
Top

Posted by Tboydston   (14 posts)  Bio
Date Reply #4 on Wed 25 Mar 2009 10:06 PM (UTC)
Message
Fantastic! Thanks so much guys.
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,417 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.