Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thin Windows




On 2007 Oct, 23, at 0:58, Jason Barker wrote:

I would like to create a tall, thin toolbar for my application but I
can't seem to create a panel thin enough. I'm thinking about 30 pixels
wide. It seems as though I cannot go thinner than 59 pixels for a
panel, if I remove the text for the title of the panel.

Is it possible to go thinner?

Yes, this can be done if you create the window programatically. That sounds daunting, but it takes surprisingly little code. Check out the "ToolTip" class written by Eric Forget which is in the ^first^ code box on this page:


http://www.cocoadev.com/index.pl?ToolTip

I have adapted this class for use in my app. Just for fun, in the - setString method, I set the width to 30, compiled my app, and it worked.
_______________________________________________


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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Thin Windows (From: "Jason Barker" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.