| Chromumll v1.0 Documentation | Reference - Classes | contents | glossary   | chroma   | classes |
Glyph
Object
+---Glyph
Description:
Super-class:
Sub-classes:
Intrinsic Properties:
combine_child_shapes (Boolean)
combine_shape (Boolean)
desired_height (Integer)
desired_width (Integer)
double_buffer (Boolean)
ignore_alpha (Boolean)
visible (Boolean)
width, height (Integer)
x (Integer)
y (Integer)
Notes:
Size
Examples:
Simple Example
Advanced Example
Intrinsic Properties
combine_child_shapes (Boolean)
combine_shape (Boolean)
desired_height (Integer)
desired_height will be 50 and desired_width will be 25. These properties are valid in objects of class Bitmap or Label, but are undefined in all other sub-classes of Glyph. Common usage:*Bitmap { width = desired_width; height = desired_height; filename = "foo.bmp"; }
desired_width (Integer)
desired_height.
double_buffer (Boolean)
ignore_alpha (Boolean)
visible (Boolean)
width, height (Integer)
width = 0; height = 0;, which ensures that Windows will shape the Glyphs properly. (see greydient.cll)
x (Integer)
y (Integer)
Notes
Size
Examples
Simple Example
*Glyph
{
x = 0;
y = 0;
visible = true;
Glyph
{
width = parent.width;
height = parent.height;
}
}
Advanced Example width = parent.width; etc..
*Glyph
{
x = 0; y = 0;
visible = true;
Glyph { width = parent.width; height = parent.height; }
}
*WindowFrame
{
properties = "border : EdgeBitmap,
caption : Mouseable";
combine_shape = false;
combine_child_shapes = true;
shaped = true;
caption
{
properties = "background : PatternBitmap,
title : Label,
button : PushButton";
combine_shape = true;
combine_child_region = true;
double_buffer = true;
background.filename = parent.parent.active ? "caption_background_active.png"
: "caption_background_inactive.png";
button
{
properties = "image : Bitmap";
x = parent.width - width;
width = image.desired_width;
image.filename = parent.armed ? "caption_button_armed.bmp"
: "caption_button_normal.bmp";
}
}
border
{
combine_shape = true;
filename = parent.parent.active ? "border_active.bmp"
: "border_inactive.bmp";
left_edge = parent.client.x;
right_edge = left_edge;
top_edge = left_edge;
bottom_edge = left_edge;
}
}
| Chromumll v1.0 Documentation | Reference - Classes | contents | glossary   | chroma   | classes |
| Please address any questions, comments, queries or concerns to bugs@thematic.com, subject=Documentation | ||