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: Scrollbars- JavaScript or Aqua?




On May 12, 2005, at 10:54 AM, Daniel Phillips wrote:

Hello,

I'm adding the finishing touches to my widget to try and make it presentable and I was wondering what your opinions on scrollbars in widgets were.

It's pretty much a necessity for my widget to have a scrolling display to make it useful. At present, scrollbars are provided by using the CSS overflow:auto parameter for my main div element. This gives me standard Aqua scrollbars and the ability to scroll using the scrollwheel. However, I see that Apple's guidelines recommend not using Aqua controls on the front of the widget, though I have seen widgets on Apple's download page which feature Aqua controls on their front page.

My other option is to use the scrollbar javascript as provided in the examples that came with the developer tools but this will lose the ability to scroll with the wheel. Does anyone have any opinions on the best way to implement scrolling in a widget?

Thanks in advance,
Daniel.


Daniel--

The new Scroller sample code makes adding a DHTML scroller to a widget very easy (it's more complete than the one installed on disk). You can find it at:

http://developer.apple.com/referencelibrary/AppleApplications/ idxDashboard-date.html

Using custom scroll bars and scrollers allow you to integrate their design into your widget better. This is highly recommended. Aqua controls tend to look odd on the front of a widget.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden
References: 
 >Scrollbars- JavaScript or Aqua? (From: Daniel Phillips <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.