Ultra Light Client Guide and Reference

Using layout widgets

ULC provides the following layout widgets:

Example

We used layout widgets to create the following:
new layout

(UlcBox rows: 3 columns: 4)
 "First row: Name-label + FirstName + LastName"
 add: (UlcLabel new label: 'Name'; yourself);
 add: (UlcField new columns: 10; ulcName: 'firstName'; yourself);
 add: (UlcField new columns: 10; ulcName: 'lastName'; yourself);
 add: UlcFiller new;
 
 "Second row: Address-label + Street + ZipCode + City"
 add: (UlcLabel new label: 'Address'; yourself);
 add: (UlcField new columns: 4; ulcName: 'street'; yourself);
 add: (UlcField new columns: 4; ulcName: 'zipCode'; yourself);
 add: (UlcField new columns: 6; ulcName: 'city'; yourself);
 
 "Third row: Country-Label + Country"
 add: (UlcLabel new label: 'Country'; yourself);
 add: (UlcField new columns: 10; ulcName: 'country'; yourself);
 skip: 2;
 add: UlcFiller new;
 yourself


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