FROM : Quincey Morris
DATE : Sat Mar 01 03:40:32 2008
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.
DATE : Sat Mar 01 03:40:32 2008
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.
| Related mails | Author | Date |
|---|---|---|
| Steve Weller | Mar 1, 01:00 | |
| Quincey Morris | Mar 1, 01:46 | |
| Steve Weller | Mar 1, 03:10 | |
| Quincey Morris | Mar 1, 03:40 | |
| Quincey Morris | Mar 1, 04:31 | |
| Steve Weller | Mar 1, 06:31 | |
| Quincey Morris | Mar 1, 07:33 | |
| Steve Weller | Mar 1, 17:57 | |
| Kyle Sluder | Mar 1, 18:37 |






Cocoa mail archive

