In SLICE, certain XML attributes correspond to visual features of a user interface (UI)
component. Changing the XML attribute will change how the feature is seen on the screen.
In some cases, the user may interact with SLICE in a way that changes how a feature is
shown on the screen (eg: by rezizing the SLICE window, thereby changing the
(height). In those cases, the XML will also be updated. This means,
in all cases, the XML will exactly reflect what is displayed to the user.
Id |
Uniquely identify a node for quick script access.
|
X |
The horizontal position in pixels of the component within its container. Defaults to 0.
|
Y |
The vertical position in pixles of the component within its container. Defaults to 0.
|
W |
The width in pixles of the component. Defaults to the width of its container.
|
H |
The height in pixles of the component. Defaults to the height of its container.
|
ZoomLevelX , ZoomLevelY |
For containers, indicates the percentage by which all objects in the container
should automatically be magnified in a given direction. Given as a floating-point number,
where 1.00 indicates no zoom. Note that this does not increase the size of the container, but only of its contents.
|
Visible |
If False, the node and its children will not be displayed. Default is True.
|
Visible |
If False, the node and its children will not be displayed. Default is True.
|
PenColor
|
The color of the ink of a Stroke or the color of new Stroke s when
a user draws on the ink panel. Defaults to its XML parent's value (recursively), or
Black if no color is defined.
|
PenWidth
|
The width, in pixels, of the ink of a Stroke or the width of new Stroke s when
a user draws on the ink panel. Defaults to its XML parent's value (recursively), or 5 if
no width is defined.
|
Transparency
|
A percentage (from 0.0 to 1.0) of how transparent a Stroke should be. This
value is inverse to the alpha value of the stroke.
|
EditMode
|
Applies only to InkPanel nodes, but is inherited. Possible values are: Ink and StrokeErase . Defauls to Ink .
|
BackColor ,
ForeColor
|
ForeColor is the color of the text in a label or button. Values may be common colors or in
the HTML-style format of #000000.
|
Text
|
The text will be placed within, or as a title to, the component.
|
PngImage
|
A Base64 encoding of a PNG image to display as the background image.
|
ImageFile
|
The path, relative to the location of the XML file that is running the script,
of an image. Supports JPG, GIF, and PNG formats.
|
FontSize
|
Defaults to 10.
|
TextAlign
|
Alignment of the text. Left , Center , or Right .
|
Enabled
|
If False, control cannot respond to user interaction.
|
OffsetX ,
OffsetY
|
The offset of the top-left corner of the contents of the container relative to
the top-left corner seen by the user. Experimental
|
JSDefs
|
Contains file names, relative to the path of the XML file, of the JavaScript
script files to load for this app. Only applies to the Slice
XML node. Seperate script names with a pipe (|) character.
|
Init
|
Contains names of JavaScript functions to be called once the app has been initalized.
Only applies to the Slice
XML node. Seperate script names with a pipe (|) character.
|
InkStrokeHandler
|
Invoked when user enters an ink stroke. Responsible node is the InkPanel into which the stroke was entered. Stroke node has already been added as child of the InkPanel node. JavaScript variable StrokeNode points to that node.
|
InkStrokeDeleting-Handler
|
Invoked when user deletes stroke or leaf control by using the stroke eraser. (Not invoked when user deletes strokes by selecting them and clicking a button; any processing in that case needs to be done in the script associated with that button.) Responsible node is InkPanel containing the stroke. JavaScript variable StrokeNodes contains a list with the deleted node.
|
OnClick
|
Called when left mouse button is clicked. Responsible node is the leaf control or container on which it is clicked. Variable MouseLoc is set to a Point giving the location of the mouse; MouseLoc.X and MouseLoc.Y give x and y coordinates.
|
OnClick
|
Called when left mouse button is clicked. Responsible node is the leaf control or container on which it is clicked. Variable MouseLoc is set to a Point giving the location of the mouse; MouseLoc.X and MouseLoc.Y give x and y coordinates.
|
FrameResizeHandler
|
Called when the frame is resized by the user.
|