The Infostring and Infotext types
These two types are quite similar to each other. They both display a text
(lines separated by CHR$(10), the last line ending with CHR$(0)) for
information only. These objects don't react to any events.
An Infostring object is always completely visible. When the text is changed,
the size of the object will change (as with many other types, but this can be
switched off).
Infotext
objects have a size which is determined by the designer of the
window. Scroll bars are displayed to allow the user to scroll invisible parts
into view.
The Type Words
When creating these types of object, the type parameters are:
PW('TYPE_INFOSTRING'), or
PW('TYPE_INFOTEXT')
The tags
Here are the tags for these objects.
The change (and creation) tags
- PW('INFOSTRING_TEXT')
-
Set the text which should be displayed inside the infostring object. The
parameter should be a string in which the lines are separated by CHR$(10).
The line must end with CHR$(0) as usual.
- PW('INFOSTRING_AUTOSIZE')
-
The parameter is either 1 (=TRUE) or 0 (=FALSE). By default, the value is
TRUE. When autosize is TRUE, then the size of the items in the window are
redetermined when the text in the infostring changes. If autosize is FALSE
then the text is always displayed as best possible in the item, and the
window is not notified when the text changes.
- PW('INFOTEXT_TEXT')
-
Set the text which should be displayed inside the infotext object. The
parameter should be string in which the lines are separated by CHR$(10),
the line ends with CHR$(0).
- PW('INFOTEXT_WIDTH')
-
Set the minimum width of the infotext object, one parameter, a PROforma
number.
- PW('INFOTEXT_WIDTH_PIX')
-
Set the minimum width of the infotext object in pixels, one parameter, a
number.
- PW('INFOTEXT_WIDTH_FS')
-
Set the minimum width of the infotext object, one parameter, a PROforma
number. The window size is calculated as the parameter times the fontsize
used for the text in the object.
- PW('INFOTEXT_LINES')
-
Set the minimum number of visible lines in the infotext object.
The query tags
There are no query tags for these objects.
PROGS, Professional & Graphical Software
last edited 1996 May 30 (wl)