Description of MUSHclient world function: world.TextRectangle
Name
TextRectangle
Type
Method
Summary
Specifies the size of the rectangle in which text is displayed in the output window.
Prototype
long TextRectangle(long Left, long Top, long Right, long Bottom, long BorderOffset, long BorderColour, long BorderWidth, long OutsideFillColour, long OutsideFillStyle);
This reduces the rectangle in which normal MUD output is displayed, from the entire output window, to the subset specified.
This can be used to make a "desktop effect" where you have room on all sides for miniwindows to be placed.
A border can be drawn at the edge of the rectangle to make it obvious where the text ends, to help in resizing the window.
The text is clipped to be within the text rectangle. A window redraw is forced.
Left, Top, Right, Bottom - describes the rectangle in which the text is drawn. If 0,0,0,0 is specified, text is drawn "normally" to the borders of the output window.
BorderOffset - the offset in pixels between the edge of the text, and the border. You can specify a few pixels here so that the text is not jammed up against the border.
BorderColour - the colour to draw the border in (RGB value).
BorderWidth - the width of the border - make zero for no border.
OutsideFillColour - the brush colour to fill the area outside the text rectangle.
OutsideFillStyle - the brush mode to use for the outside fill. See Brush parameters for a description of the various modes. The brush modes can be: