Ultra Light Client Guide and Reference

Adding the remaining parts

Next, add UI components to the layout you have just set up:

Adding the Entry Field part

From [Ulc Data Entry icon] the Ulc Data Entry category, select [Entry Field icon] the Entry Field part and drop it into the To-Do Item group box.

Adding the List part

  1. From [Ulc Lists icon] the Ulc Lists category, select [List icon] the List part and drop it into the To-Do List group box.

Double-click on the List part to bring up its settings view. Look at the attributeName setting. This setting is used to retrieve a list-item object's string representation from the underlying collection part for display in the list. By default, this value is yourself. Because we are dealing only with strings, we can leave the default value as is.

Adding the buttons

At this point, we need to add two buttons to the remaining empty cell. Because a cell can contain only a single widget, add a Box part to the cell and then add the button parts to the box, as follows:

  1. Change the alignment of the cell to be horizontally and vertically centered.
  2. From [Ulc Canvas icon] the Ulc Canvas category, select [Horizontal Box icon] the Horizontal Box part, which creates a box layout with two columns by default. Drop it in the empty cell.
  3. From [Ulc Buttons icon] the Ulc Buttons category, select [Button icon] the Button part; drop one onto each half of the horizontal box.
  4. Edit settings for the Button parts as follows:

Adding the Table Model part

To keep a list of to-do items, we need a nonvisual collection part. For ULC applications, use the Table Model part.

From [Ulc Models icon] the Ulc Models category, select [Table Model icon] a Table Model part and drop it on the free-form surface.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]