Technology
 

Window

From Unofficial Konfabulator Wiki

Contents

[edit] alignment

alignment will control how the object is aligned, working together with hOffset. alignment also is a synonym of hAlign, so never use both.

[edit] Possible Values:

  • left - hOffset will correspond to the left edge
  • right - hOffset will correspond to the right edge
  • center - hOffset will correspond to the middle

[edit] JavaScript:

myObjectName.alignment = "center";

[edit] Example:

<alignment>center</alignment>

[edit] contextMenuItems

CommonAttrib:contextMenuItems

[edit] height

The height attribute controls the vertical dimension of the box model, or how high it looks on the screen.

If Omitted: The height of the box defaults to a value of -1 and the box height is then automatically determined.

JavaScript:

myObjectName.height = 30;

Example:

<height>30</height>

or

<height = "30" />

[edit] hOffset

the horizontal offset of the object

JavaScript:

myObjectName.hOffset = 44;

Example:

<hOffset>44</hOffset>

[edit] level

[edit] name

The name is used to identify the object in JavaScript.

JavaScript:

object.name = "myObjectName";

Example:

<name>myObjectName</name>

[edit] onContextmenu

CommonAttrib:onContextmenu

[edit] onFirstDisplay

[edit] onGainFocus

[edit] onLoseFocus

[edit] onMultiClick

CommonAttrib:onMultiClick

[edit] opacity

opacity controls the opacity =)

It is a range from 0 to 255. 0 being invisible and 255 being completely opaque.

To hide an object, a common practice is to set its opacity to 0. But these days, the 'visible' property is the better thing to use, as you don't have to track the previous opacity to restore it later.

To hide an object but still interact with it, it's common practice to set its opacity to 1. See also: object tracking

JavaScript:

myObjectName.opacity = 200;

Example:

<opacity>200</opacity>

[edit] shadow

[edit] title

[edit] visible

[edit] vOffset

vOffset controls the vertical placement. This works with vAlign and is related to hOffset.

value : integer (floating point just gets rounded)

JavaScript:

myObjectName.vOffset = 100;

Example:

<vOffset>100</vOffset>

[edit] width

width controls how wide the object appears to be. Related to height.

value : integer (floating point gets rounded)

Rate this article: