• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting the image on a pop up button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Tue, 10 Dec 2002 11:42:04 -0800

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.

  • Follow-Ups:
    • Re: Setting the image on a pop up button
      • From: Buddy Kurz <email@hidden>
References: 
 >Setting the image on a pop up button (From: Buddy Kurz <email@hidden>)

  • Prev by Date: Re: pbxbuild problems?
  • Next by Date: Re: Key Equiv for NSButton in an NSDrawer?
  • Previous by thread: Setting the image on a pop up button
  • Next by thread: Re: Setting the image on a pop up button
  • Index(es):
    • Date
    • Thread