On 12/29/05 4:15 PM, Jan E. Schotsman didst favor us with:
> Hello all,
> I have read the HIToolbar programing guide and so far this seems not
> too challenging to implement.
> My main uncertainty is: what situations is a Toolbar appropriate for?
Just think about the features of toolbars and whether those would be useful
in a given situation. Also consider the additional effort needed to
implement a toolbar and what it will take to provide icons for a toolbar. A
toolbar with bad icons is not impressive, and most of us don't have
particularly good graphic design skills. I have a window in my next release
in which I actually went with a popup menu group box instead of tabs or
toolbar. I'm not a big fan of popup menu group boxes, but there were too
many panes for a tab control and I didn't want to have to pay for whole wad
of new original icons I'd need for a toolbar.
Also, if this needs to work in Panther, HIToobar doesn't support selected
states for toolbar items until Tiger. To do that in Panther you have to
handle that aspect yourself.
> I remember an article in MacTech that suggested tabs controls are out and
> should be replaced by toolbars, but that cannot be true as you can have only
> one toolbar per window and IB doesn't let you edit them the way you can edit
> tabs controls.
That's not official word from Apple, just the opinion of someone who's
writing for MacTech. Tab controls are still the better device in some
situations, and you're right that in some situations a toolbar really isn't
an appropriate replacement.
> If I want to use a toolbar (or maybe a subset of items) as a tabs
> control, what is the best way to switch tabs? Steal the content from an
> invisible window, or is the solution more elegant?
Just depends on what you want to do. You could do something equivalent to
the user panes used by tab controls, or store the items corresponding to
each toolbar item in a nib window and then imbed them in the toolbar's
window when needed.
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden