User Guide

Ruby Component
Specifies that parts of characters are allowed to overhang the string's layout rectangle. By default, characters are first aligned inside the
rectangle's boundaries, then any characters which still overhang the boundaries are repositioned to avoid any overhang and thereby avoid
affecting pixels outside the layout rectangle. An italic, lowercase letter F ( f) is an example of a character that may have overhanging parts.
Setting this flag ensures that the character aligns visually with the lines above and below but may cause parts of characters, which lie
outside the layout rectangle, to be clipped or painted.
Flag = 32
Specifies that Unicode layout control characters are displayed with a representative character.
Flag = 1024
Specifies that an alternate font is used for characters that are not supported in the requested font. By default, any missing characters are
displayed with the "fonts missing" character, usually an open square.
Flag = 2048
Specifies that the space at the end of each line is included in a string measurement. By default, the boundary rectangle returned by the
Graphics::MeasureString method excludes the space at the end of each line. Set this flag to include that space in the measurement.
Flag = 4096
Specifies that the wrapping of text to the next line is disabled. NoWrap is implied when a point of origin is used instead of a layout rectangle.
When drawing text within a rectangle, by default, text is broken at the last word boundary that is inside the rectangle's boundary and
wrapped to the next line.
Flag = 8192
Specifies that only entire lines are laid out in the layout rectangle. By default, layout continues until the end of the text or until no more lines
are visible as a result of clipping, whichever comes first. The default settings allow the last line to be partially obscured by a layout rectangle
that is not a whole multiple of the line height. To ensure that only whole lines are seen, set this flag and be careful to provide a layout
rectangle at least as tall as the height of one line.
Flag = 16384
Specifies that characters overhanging the layout rectangle and text extending outside the layout rectangle are allowed to show. By default,
all overhanging characters and text that extends outside the layout rectangle are clipped. Any trailing spaces (spaces that are at the end of a
line) that extend outside the layout rectangle are clipped. Therefore, the setting of this flag will have an effect on a string measurement if
trailing spaces are being included in the measurement. If clipping is enabled, trailing spaces that extend outside the layout rectangle are not
included in the measurement. If clipping is disabled, all trailing spaces are included in the measurement, regardless of whether they are
outside the layout rectangle.
Multiple flags set can produce combined effects:
When both 2 and 1 are set, individual lines of text are drawn vertically. The first line starts at the right edge of the layout rectangle; the
second line of text is to the left of the first line, and so on.
When 2 is set and 1 is not set, individual lines of text are drawn vertically. The first line starts at the left edge of the layout rectangle; the
second line of text is to the right of the first line.
When 1 is set and 2 is not set, the individual lines of text are horizontal and the reading order is from right to left. This setting does not
change the order in which characters are displayed, it simply specifies the order in which characters can be read.
The 2 and 1 flags can affect string alignment.
Bitmaps
If you pass a bitmap to a Ruby component via a Bitmap connector then you can use this in the View class drawBitmap and
drawBitmapSection methods to display it (or a section of it) on the View. These methods are defined as follows:
drawBitmap bitmap, position [, alpha, rotation, origin]
124 of 212