Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How to create a button with icon?

How to create a button with icon?
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2002
Status: Offline
Reply With Quote
Aug 11, 2003, 11:03 PM
 
This may seem like a stupid question but I can't seem to figure how to create a button with an icon in it similar to those like in Mail or a beveled button with an icon in it.

I have a tiff image that I created and can't seem to understand how to place the image on the icon.

Thanks.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Aug 12, 2003, 12:41 AM
 
I believe the "buttons" you're referring to in Mail are toolbar items. But to set a button's icon, you just type in the name of the image in the button's "Icon" field. It only works with certain types (basically those which can naturally fit an image into their shape).
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Aug 12, 2003, 05:01 PM
 
Another way, is to add all the icon files to PB
that is:

PB > Project > add files...

(I dropped them under the main group)

After that, fire up IB. The icons you added show up in the "images" tab in IB.

From there you can just drag and drop them onto the target buttons.

This way works for me. if I just update the icon field in the inspector panel, well... nothing happens. Could be related to my version of the Dev Tools (the latest).
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:18 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2