Text
Use the Text part to add text to a Web page. The text can wrap across multiple lines. You must use a separate Text part for each block of text you want to appear with special formatting (such as underlining or italics) or with a hypertext link.
To add a Text part, select the Web Connection Category ( Web Connection Category), then the Text part ( Text icon). You can also add the part using the Add Part dialog and specifying the class name, AbtHtmlText.
Text Properties
The Text part has the following properties:
bold
italic
link
object
string
 
bold
Use the bold property to indicate whether you want the text to appear in a bold font. Depending upon the default edit-time font, you might not see the text appear in a bold font at edit time.
This property is equivalent to the HTML b tag.
converter
Use the converter property to specify the converter to use for the part. A converter is an object that manages the conversion of other objects to and from their display format for certain visual parts, such as a Text part.
eventHandlers
Use the eventHandlers property to define any event handlers for this part. Event handlers provide the ability to detect and react to events that occur while an HtmlPage is loaded in a Web browser. An example of an event handler is mouse over, where you can specify when the mouse moves over an HTML element, something happens, usually a JavaScript is executed..
extraAttributes
Use the extraAttributes property to specify any additional HTML attributes that you want included in the HTML tagging generated by the part. You can use this property to include HTML attributes that are not directly supported by VA Smalltalk.
fontSize
Use the fontSize property to specify the size of the font you want to use for the text specified in this part. Valid values are any integer between 1 and 7. The specific size of the font at run time depends upon the browser defaults.
This property is equivalent to the size attribute of the HTML font element.
foregroundColor
Use the foregroundColor property to specify the text color of the text on the page. (Some browsers might not support changing text color.)
This property is equivalent to the color attribute of the HTML font element.
headerLevel
Use the headerLevel property to specify the level of text for a heading. Valid values are the integers from 1 to 6. (If the text is not a heading, set this property to <Default>.)
This property is equivalent to the HTML h1 through h6 elements.
italic
Use the italic property specifies whether or not you want the text to appear in italic type face.
This property is equivalent to the HTML i tag.
link
Use the link property to specify where you want to link to from a text or image. If you do not want to place a link on the text or image, leave this property blank.
This property is equivalent to the href attribute of the HTML a (anchor) element.
literal
Use the literal property to indicate whether the text of the part is to be passed to the Web browser exactly as you typed it. Set literal to true if you want to include HTML tagging in the text. The Web browser must be able to interpret and display the text at run time.
Use this property if you want to use HTML tagging that is not directly supported by VA Smalltalk.
At edit time, literal text is displayed in a monospaced font by default. You can specify a different font using the Preferences window.
object
Use the object property to specify the text you want displayed by this Text part. The text can be a single word or multiple words and can wrap across multiple lines.
Note:
If you specify a link destination with the link property, all of the text you type in this field is placed within the link. You must use separate Text parts to create individual links within a sentence.
partName
In the Part name field, type the name you want to use to describe the part. For non-visual parts, this text appears under the icon for the part on the free-form surface.
The name of the part can consist of alphanumeric characters, and must be unique from all other parts on the layout surface.
This field is optional. If you do not specify a part name, VA Smalltalk generates a unique name based on the class name of the part.
preformatted
Use the preformatted property to specify that the text should appear exactly as it is typed, with line breaks preserved. Most browsers use a monospaced font to display preformatted text.
This property is equivalent to the HTML pre tag.
At edit time, a monospaced font is used as the default. You can specify a different font using the Preferences window.
string
Use the string property to specify a script. Use this property when your script is small and you want it generated in line with the HTML.
typewriter
Use the typewriter attribute to indicate that the text should be displayed in a typewriter font.
This property is equivalent to the HTML tt tag.
At edit time, a monospaced font is used as the default. You can specify a different font using the Preferences window.
Last modified date: 06/24/2018