Re: Disclosure triangle ?
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.