Re: Triangle Collapse
Re: Triangle Collapse
- Subject: Re: Triangle Collapse
- From: Scott Anguish <email@hidden>
- Date: Tue, 12 Aug 2003 17:54:42 -0400
On Tuesday, August 12, 2003, at 6:19 AM, M. Uli Kusterer wrote:
See the Finder's "Get Info" window for an example. The different
sections are separated by a line with a triangle that you can click
on to hide or expand this section.
No, there's no standard control that takes care of this, and I'm not
aware of any sample code. It'd be easy to do this in Carbon, as Carbon
has a "disclosure triangle" control and a "window header" control
which could be used with a static text field to generate the header...
I'm not sure how much easier this could be. An NSButton with a toggle
on/off state with the two different images (pointing left, pointing
down).
when it is clicked on, grow the window and insert the views.
There was an example of this at WWDC in the tips. Also, Kurt Revis
<email@hidden>
released a DisclosableView framework -
http://www.snoize.com/Code/DisclosableView.tar.gz
the MOKit (www.lorax.com) has one as well.
_______________________________________________
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.