• 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: Disclosure triangle ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disclosure triangle ?


  • Subject: Re: Disclosure triangle ?
  • From: Kyle Mandli <email@hidden>
  • Date: Wed, 27 Jun 2001 10:28:12 -0500

One way that did something that kind of does what you need is to create a square button with IB and turn off the bordered attribute in the info window and change the size to fit the triangle but you may need to do this manually by typing in the size in the size dialog. This will give you the functionality of a button but you can then put an image in that you want to use at your discretion. It will handle everything you need. The only thing you need to do for a disclosure triangle is to find an image with it sideways and down (possibly from the system?) and switch the image when it is pressed through actions in you controller where you can control the actions of the button easily. Using this method makes it so you have to write little to no code to get the functionality you are looking for. Good luck!

Kyle

On Wednesday, June 27, 2001, at 10:18 AM, Stiphane Sudre wrote:


On mercredi, juin 27, 2001, at 04:47 PM, Kyle Mandli wrote:

It kind of depends on what you are trying to do. Enclosure triangles are included in NSOutlineView but if you are trying to do something else I would extend the NSButton class or even the NSContol class to come up with your own behavior.

I'm looking for an disclosure triangle Widget alone. Like the one available with Carbon.


  • Follow-Ups:
    • Re: Disclosure triangle ?
      • From: Stéphane Sudre <email@hidden>
References: 
 >Re: Disclosure triangle ? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: warning: xxx.app depends on itself
  • Next by Date: Re: Disclosure triangle ?
  • Previous by thread: Re: Disclosure triangle ?
  • Next by thread: Re: Disclosure triangle ?
  • Index(es):
    • Date
    • Thread