| Version 9 (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.
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



