• 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: Triangle Collapse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Triangle Collapse


  • Subject: Re: Triangle Collapse
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 12 Aug 2003 12:19:54 +0200

At 2:30 Uhr -0700 12.08.2003, email@hidden 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...

In Cocoa, I guess you'd have to use an NSImageView to fake the disclosure triangle, together with an NSTextField and two NSSeparator lines in an NSBox to fake the header... Hiding the items would work by taking another NSBox containing the items out of the window and shifting the other items in the window below it up, resizing the window manually.

If you write the code to do this, you might want to consider making it a generic, re-usable set of classes and releasing it into the public domain, so others don't have to do the same. I'd love to give it a try, but as I should really be learning, I'll refrain.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: Triangle Collapse
      • From: Scott Anguish <email@hidden>
    • Re: Triangle Collapse
      • From: Rob In der Maur <email@hidden>
    • Re: Triangle Collapse
      • From: Stéphane Sudre <email@hidden>
References: 
 >Triangle Collapse (From: email@hidden)

  • Prev by Date: Re: Setting focus to text field in drawer
  • Next by Date: Re: Triangle Collapse
  • Previous by thread: Re: Triangle Collapse
  • Next by thread: Re: Triangle Collapse
  • Index(es):
    • Date
    • Thread