Unofficial Konfabulator Wiki
Register
Advertisement

alignment[]

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

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

JavaScript:[]

myObjectName.alignment = "center";

Example:[]

<alignment>center</alignment>

contextMenuItems[]

CommonAttrib:contextMenuItems

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" />

hOffset[]

the horizontal offset of the object

JavaScript:

myObjectName.hOffset = 44;

Example:

<hOffset>44</hOffset>

level[]

name[]

The name is used to identify the object in JavaScript.

JavaScript:

object.name = "myObjectName";

Example:

<name>myObjectName</name>

onContextmenu[]

CommonAttrib:onContextmenu

onFirstDisplay[]

onGainFocus[]

onLoseFocus[]

onMultiClick[]

CommonAttrib:onMultiClick

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>

shadow[]

title[]

visible[]

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>

width[]

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

value : integer (floating point gets rounded)

Advertisement