• 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: Scrollers on custom view appearing but not disappearing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrollers on custom view appearing but not disappearing


  • Subject: Re: Scrollers on custom view appearing but not disappearing
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 29 Feb 2008 18:40:32 -0800


On Feb 29, 2008, at 18:10, Steve Weller wrote:

My custom view spans the window's content view. I want to draw a white rectangle (think of a document) centered in that area and fill the remainder gray. In my drawRect method I first draw gray into the rectangle passed. Then I calculate where the white rectangle should be and draw it.

I need the scrollers to act on the bounds of the white rectangle so that they are present when any part of it is not visible.

The question is, where are your scroll bars coming from? Did you put your custom view inside a scroll view, or did you add scroll bars manually?


When the scroll bars fail to disappear, if you manually drag the thumb, what happens? It's possible you'll have to adjust the frame origin as well as the width.
_______________________________________________


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


References: 
 >Scrollers on custom view appearing but not disappearing (From: Steve Weller <email@hidden>)
 >Re: Scrollers on custom view appearing but not disappearing (From: Quincey Morris <email@hidden>)
 >Re: Scrollers on custom view appearing but not disappearing (From: Steve Weller <email@hidden>)

  • Prev by Date: Re: Scrollers on custom view appearing but not disappearing
  • Next by Date: Re: Scrollers on custom view appearing but not disappearing
  • Previous by thread: Re: Scrollers on custom view appearing but not disappearing
  • Next by thread: Re: Scrollers on custom view appearing but not disappearing
  • Index(es):
    • Date
    • Thread