Resize

From TrillWiki

Jump to: navigation, search

Resize code allows the user to change the size of the window.

<resize type="[type]" >
<rtype type="[type]" >
<region [options] >
<rect>
<!-- You know the drill -->
</rect>
</region>
</rtype>
<!-- repeat rtypes as desired -->
</resize>

[edit] <resize>

Attribute Priority Description, Possible Values
type Required Defines what to resize - set to "all" - setting is for possible future expansion

Resize code always contains rtype code.

[edit] <rtype>

Attribute Priority Description, Possible Values
type Required Defines which direction to resize

upperleft, upper, upperright, left, right, lowerleft, lower, lowerright

Rtype code contains region code, which contains rect code to define its placement.

[edit] Updated in Trillian Astra

The <resize> code has been simplified (as of build 77) to the following:

<resize type="all">
<slice left="n" right="n" top="n" bottom="n"/>
</resize>

Where 'n' is the amount of pixels in from the edge that you would like the resize zone. All corner areas become 'x/y resize zones', and all edges become 'x resize zones' (for the sides) or 'y resize zones' (for the top and bottom).

This currently is different to how a slice works when dealing with the <background> images, which are an exact pixel. E.g. an image that is 120 wide would need a left slice value of 20 and a right slice value of 100 if you wanted to slice the image 20 pixels in.

Example:

<resize type="all">
<slice left="10" right="10" top="30" bottom="10"/>
</resize>

This tells Trillian to set a zone all around the edges of the window. The left and right and bottom resize zones are 10 pixels in from the edges, and the top resize zone is 30 pixels in.

Personal tools