Re: Custom TabViewItem Things
Re: Custom TabViewItem Things
- Subject: Re: Custom TabViewItem Things
- From: Michael Becker <email@hidden>
- Date: Mon, 29 Mar 2004 09:55:54 +0200
Hi Seth,
There's no standard class for handling all this. But you can always
build this stuff yourself. Just make the tabview tab-less, provide
buttons (or add them programmatically) which call a certain action that
activates the appropriate tab.
- The control would wider than the sum width of the buttons. Like in
GoLive, the control spans the width of the window
Write yourself a custom view that does nothing but display a grey
background and put it behind the buttons, so your control spans the
width of the window. If you create the buttons out of images you can
completely customize your buttons' appearance, too.
- Buttons are added and removed on the fly
Add them programmatically, providing merely the necessary frame
coordinates.
- Buttons are always left justfied
See above.
- Buttons have the ability to hold an icon and text caption
See above (you're dealing with standard aqua buttons)
- Buttons would ideally be able to contain another button. Think
Safari. I'll be using them exactly in the same way, but I want
the "Adobe" appearance.
I'm not sure, but most probably that would mean writing a completely
custom view/control class.
- If too many buttons are in the control to fit in the view, the
buttons are squished to fit as many as possible. Once it goes over
the absolute max, it would present a menu, exactly like Safari.
I think here we've reached a point where many people go sometimes. The
"exactly like <SomeApp>"-phrase. Don't assume that *every*thing you see
in *any* application is a drag-and-drop-standard-cocoa control. I am
afraid you will have to do all the programming for this yourself. That
means resizing the buttons, determing whether to create a menu,
creating the menu etc.
But I don't know how to do this properly, either, so I can't help you
here...
Bye,
Michael
_______________________________________________
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.