Re: Pop-up Panels?
Re: Pop-up Panels?
- Subject: Re: Pop-up Panels?
- From: "I. Savant" <email@hidden>
- Date: Mon, 27 Jul 2009 13:43:06 -0400
On Jul 27, 2009, at 1:35 PM, Frank D. Engel, Jr. wrote:
I want to create something like an NSPopUpButton, but instead of a
menu coming from it, I'd like to display a custom panel that acts
like a pop-up menu: it would be a selection interface, but not a
simple menu; if the user clicks outside of it, it would just
disappear and nothing would change, etc... like pop-up calculators
and calendars in some programs...
You'd want a button that stays down when the view is displayed
(like a popup). You'd want a view in which to display your complicated
UI. For this, you'd need a borderless (or custom-drawn) window to
position over the control's host window in which to display your
custom view.
There are examples of both online. If you have more specific
questions, post them (in other words, "what have you tried", and
"break it down").
I'm sure things like this are done often enough, but all of the
search terms I'm coming up with are giving me sites that show how to
change the appearance of the button itself, not what gets popped up.
I recall someone coming up with something like this (a popup-
calendar-date-chooser control of some kind). Perhaps you could learn
by example if you found it.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Pop-up Panels? (From: "Frank D. Engel, Jr." <email@hidden>) |