Re: Disclosure triangle ?
Re: Disclosure triangle ?
- Subject: Re: Disclosure triangle ?
- From: Eric Peyton <email@hidden>
- Date: Wed, 27 Jun 2001 10:42:57 -0500
On Wednesday, June 27, 2001, at 06:26 AM, Stiphane Sudre wrote:
Where is the Disclosure Triangle button type in the IB inspector
for NSButton ?
There is not a Disclosure Triangle in IB yet.
Make a regular button.
Set it to Square or Rounded Bevel Button.
Set it to borderless.
Set it to Toggle.
Add a icon and a alt icon of the disclosure triangle images
(grabbed form some other application).
Hook up the button to your controller to send a message.
In the message, do what you need to disclose or display.
I'm trying to find how to make a disclosure triangle but:
- the widget in itself does not seem to exist.
Nope.
- it's not possible to use the toggle button type, the behavior is
not consistent with the one of a disclosure triangle.
Why not?
- checkbutton type would suit if I was able to switch the
alternate and usual image but it's not possible.
You could subclass/categorize and make it possible.
Since I recently discovered that one of the Control type I thought
was missing could be made from a NSPopUpButton, I'm wondering if
I'm not missing something here again.
Or is using a disclosure triangle not recommending by the HI
guidelines ?
I believe it is in the HI guidelines.
Eric
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev