Positioning the main output window

Posted by Tboydston on Wed 25 Mar 2009 07:30 AM — 5 posts, 20,471 views.

#0
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!
USA #1
TextRectangle?


http://www.gammon.com.au/scripts/doc.php?function=TextRectangle
#2
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?
Netherlands #3
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.
#4
Fantastic! Thanks so much guys.