| Version 14 (modified by mikel, 5 years ago) |
|---|
Add a Button
Now we add a button that activates the currency conversion.
- Drag a Button object from the palette and drop it on the window
- Double-click the button and change its title to "Convert"
- Select the button and then choose "Attributes" from the pull-down menu at the top of the Inspector window. Almost halfway down the "Attributes" view of the Inspector window, find the "Key Equiv" field. Choose "Return" from the pulldown menu in that field.
When you choose "Return", InterfaceBuilder enters "\R" in the text field for the Key Equivalent. Now when a user hits the "Return" key, your application will behave as if they had clicked the "Convert" button.
Add a Separator
Now add a separator line to visually group the text fields together. Drag a separator line from the palette and drop it above the button.
Drag the ends of the separator line until it spans a visually pleasing width. As always, you can use the blue guidelines that InterfaceBuilder displays to adjust the size and position of the line and other elements to conform to Apple's Human Interface Guidelines.
Attachments
-
ibwin-tiger13.jpg
(42.6 KB) - added by mikel
5 years ago.
Adding a Button
-
ibwin-tiger14.jpg
(43.5 KB) - added by mikel
5 years ago.
Changing the Button title
-
ibwin-tiger15.jpg
(113.5 KB) - added by mikel
5 years ago.
Choosing Return for the key equivalent
-
ibwin-tiger16.jpg
(43.8 KB) - added by mikel
5 years ago.
Adding the separator




