Download Qlarity Foundry User's Manual

Transcript
OptoTerminal Qlarity Foundry User’s Manual
93
6.
Click [OK]. The new template name appears in the
Add/Edit Templates dialog box.
errors are present, the compiled workspace is returned
to Layout View.
7.
Click [Close] to close the Add/Edit Templates dialog
box.
Notice that the Object Palette contains a default icon
representing the new template.
8.
Select Code View. The new template name appears
under the Templates icon in the Object Tree. Templates
are not shown in the Object Tree in Layout View.
9.
Click on the new template in the Object Tree. If you
created a template “ready to operate in QF,” the boilerplate code appears in the edit window.
12. To edit the icon or change the name, click
on the
toolbar, or select Add/Edit Templates from the Edit
menu. Click the template name in the Add/Edit Templates dialog box, then click [Edit Icon]. Refer to
section 5.1.2, “Edit a Template Icon” for more information.
10.5.1 New Template Boilerplate Code
10. Variables declared inside a template become properties
of the template object, and functions declared inside
the template become the object’s methods. Add, delete,
or modify properties and methods as desired.
11. When you are finished defining the template, click
or select Compile from the File menu to compile the
workspace. Any errors in the new source code are identified by messages in the Error Messages box. If no
The new template boilerplate code can be used as a foundation for building new objects. Using the boilerplate code can
greatly simplify the creation of new objects. This section
provides an overview of what the boilerplate code is and the
functionality it provides. The actual boilerplate code generated by Qlarity Foundry is continually being improved and
may differ from the code described in this section. The
functionality, however, is mostly the same.
Opto 22 Fax 800-832-OPTO (6786) Web www.opto22.com Phone 800-321-OPTO (6786)