Horizontal Rule
Use the Horizontal Rule part to add a horizontal line to a Web page. You can use this part to divide your page into distinct sections. The HTML Horizontal Rule part generates the HTML hr element.
To add a Horizontal Rule part, select the Web Connection Category (
), then the Horizontal Rule part (
). You can also add the part using the Add Part dialog and specifying the class name,
AbtHtmlRule.
Horizontal Rule Properties
The Horizontal Rule part has the following properties:
align
Use the align property to specify how you want the element to be aligned on the Web page. You can select any of the following values from the drop-down list:
o Top
o Middle
o Bottom
o <Default> (Browser default)
In addition, you can specify an alignment by typing the appropriate string directly into the field. Do this if you want to specify a special alignment supported by your browser but not directly supported by VA Smalltalk. VA Smalltalk will use the specified alignment string when generating HTML at run time, but will use its default alignment at edit time.
This property is equivalent to the align attribute of the appropriate HTML element.
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.
height
Use the height property to specify the thickness, in pixels, of the horizontal rule.
This property is equivalent to the size attribute of the HTML hr element.
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.
width
Use the width property to specify the width of the line as a percentage of the width of the page. For example, if you specify 50 in this field, the rule will appear half the width of the page, even if the user resizes the size of the browser window.
Last modified date: 06/24/2018