Re: Setting the image on a pop up button
Re: Setting the image on a pop up button
- Subject: Re: Setting the image on a pop up button
- From: Mike Ferris <email@hidden>
- Date: Wed, 11 Dec 2002 09:16:14 -0800
A pull-down menu works differently from a pop-up. Pull-down is used
when you have a menu full of commands and there's no concept of the
"selected" item. A pull-down does not change its unpopped appearance
when you select items. For an example, check out the menus in in Info
panel in PB. These are just menus of commands. They do not indicate a
selection. So they are pull-downs.
Perhaps you should just switch back to being a pop-up in your situation.
Mike
Begin forwarded message:
From: Buddy Kurz <email@hidden>
Date: Tue Dec 10, 2002 7:10:39 PM US/Pacific
To: Mike Ferris <email@hidden>
Cc: email@hidden
Subject: Re: Setting the image on a pop up button
It is set to be a shadowless square pull-down menu. Ugly, but I need
to be able to change the width and height of the button under program
control and that seems to be the only style which allows the height to
be changed.
Why is the pull-down menu different?
thanks
Buddy
On Tuesday, December 10, 2002, at 11:42 AM, Mike Ferris wrote:
selectItemAtIndex: should cause the button to update (title and
image). (Unless the popup is set to be a pull-down menu.) It is odd
that you would have to call setTitle:. I think something else must
be going on with your case...
Mike
Begin forwarded message:
From: Buddy Kurz <email@hidden>
Date: Tue Dec 10, 2002 7:23:44 AM US/Pacific
To: email@hidden
Subject: Setting the image on a pop up button
How do I display an image to the left of the text on a popupbutton? I
can set the image on the individual menu items and it gets copied to
the button title when an item is selected manually but [button
selectItemAtIndex:index] doesn't change the button title or text. I
used [button setTitle:[button titleOfSelectedItem]] to update the
title
after updating the selection but there doesn't seem to be an
equivalent
method to set the image.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.