Adding text
Once you have created a Web page with the Page part, you can add content using the other visual parts in the Web Connection and Web Form Category categories.
You can add text to the page with the Text part. Text represents a stream of text of any length; you can use it for just a few words (such as a heading) or for an entire paragraph. By setting properties for the part, you can specify special formatting for the text. For example:
Heading levels
Highlighting (italics or bold)
Font size
Hypertext linking
Color
Any settings you change in the Text properties apply to all of the text displayed by the part. Therefore, if you want to have a single word or a group of words that appear in a different font or have a hypertext link, those words need to be displayed by a separate Text part.
For example, consider the following sentence (underlining represents a hypertext link):
Welcome to Wally's Wine World!
Come explore our Wine Cellar for an excellent selection of fine wines!
This sentence would require three separate Text parts, each with different attributes:
Text
Attributes
Welcome to Wally's Wine World! Come explore our
Normal text
Wine Cellar
Hypertext link
for an excellent selection of fine wines.
Normal text
Note:
The fonts that you see in the Composition Editor at edit time do not necessarily resemble the fonts users will see at run time. Runtime fonts are entirely under the control of the Web browser.
You can change the fonts used in the Composition Editor at edit time on the Web Connection page of the VA Smalltalk Preferences notebook.
Defining hypertext links
When you specify in the properties that a text item (represented by a Text part) has a link to another page, you must specify the location of the link. You can do this in two ways:
By part name
You can specify the name of a Web Connection part. Use this method if the page you want to link to is another Web Connection part in the same VA Smalltalk image.
By URL
You can specify the URL of the page you want to link to. You can use this method to specify any Web page, whether or not it was built with Web Connection.
Last modified date: 05/12/2020