• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to fill rectangle under vertical scroller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to fill rectangle under vertical scroller?


  • Subject: Re: How to fill rectangle under vertical scroller?
  • From: Graham Cox <email@hidden>
  • Date: Wed, 17 Jun 2009 13:01:39 +1000


On 17/06/2009, at 9:43 AM, Sumin Kim wrote:

I am drawing custom scroller for my application and could change color and
looks of knob, arrows, and knob slot. But I still cannot change the color of
a rectangle located in right bottom corner under vertical scroller. I could
not find out how to handle the area. Any advice will be appreciated.


You need to place a view here and do the custom drawing in the view. To place the view, you need to subclass NSScrollView and override the - tile method to place the view in that corner. The scrollview subclass will also typically own the custom view.

Here's an example from the archives that will do what you want:

http://www.cocoabuilder.com/archive/message/cocoa/2001/6/29/21070

--Graham


_______________________________________________

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


  • Follow-Ups:
    • Re: How to fill rectangle under vertical scroller?
      • From: Sumin Kim <email@hidden>
    • Re: How to fill rectangle under vertical scroller?
      • From: Sumin Kim <email@hidden>
References: 
 >How to fill rectangle under vertical scroller? (From: Sumin Kim <email@hidden>)

  • Prev by Date: How to fill rectangle under vertical scroller?
  • Next by Date: Re: How to fill rectangle under vertical scroller?
  • Previous by thread: How to fill rectangle under vertical scroller?
  • Next by thread: Re: How to fill rectangle under vertical scroller?
  • Index(es):
    • Date
    • Thread