Figure 13:3.
|
•
|
title sets the formtitle member and hence displays a title;
|
•
|
para adds a PARAGRAPH gadget size 15 chars by 1 line with no content;
|
•
|
text adds a TEXT field gadget with tag ‘Enter message’, width 15 chars, to hold data of type STRING.
|
•
|
initialises the paragraph’s default value to ‘Hello world’;
|
•
|
sets the form member Okcall (in the line beginning !this.Okcall). This is a callback that gets executed when a button with control-type OK is pressed.
|
•
|
Sets the paragraph’s value to ‘Hello again’.
|