Information Technology Reference
In-Depth Information
Setting object contents
Setting the contents of UI objects remains a chore. Although both labels and buttons are simple, you typically
need to follow these steps:
1. Set the text label.
2. Optionally, change the font, text size, and color.
3. Change the text justification and line breaks.
4. Optionally, add a drop shadow.
5. Resize the object to make sure the text displays correctly.
6. Realign the object after your changes.
Similar steps are needed to set the contents of other objects, such as image views. See the example later in this
chapter.
To change the label text, double-click it. The label edge and interior are highlighted. Type “This is off,” as shown
in Figure 7.16. When you press Return, you see that the label is no longer centered.
FIGURE 7.16
When setting text in a label, the label doesn't remain centered after editing.
Search WWH ::




Custom Search