Component

From TrillWiki

Revision as of 02:59, 12 March 2006 by Tometheus (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

A component can be used for a variety of purposes. It can be used to define a regionmap for strangely shaped Buttons. But more importantly, it is used in the creation of Windows. A window can be the message window, the buddylist, etc. A window can be comprised of a single component, or multiple components located in frames and joined by anchors. For all of these purposes, chances are you will need some sort of background code. All of the background code and the icontrols will need to go between the component tags:

<component name="[name]" [attribute]="[value]">
</component>
Attribute Priority Description, Possible Values
name Required Defines how this component is referenced by other parts of the skin
minx Optional Smallest possible horizontal size for this component
miny Optional Smallest possible vertical size for this component
maxx Optional Largest possible horizontal size for this component
maxy Optional largest possible vertical size for this component
defaultx Optional Horizontal size of the window the first time it is loaded in trillian (prior to user resizing)
defaulty Optional Vertical size of the window the first time it is loaded in trillian (prior to user resizing)

The optional properties may be overridden by Trillian if the component is placed inside a frame.

Personal tools