Re: displaying parts of views
Re: displaying parts of views
- Subject: Re: displaying parts of views
- From: "Erik M. Buck" <email@hidden>
- Date: Sat, 2 Mar 2002 11:27:16 -0600
- Organization: EMB & Assocites Inc.
Layout the views so that they all overlap. Use clipping in each view so
that in practice no view draws over its siblings. See NSRectClip()
Usually, sibling views should not overlap, but if you control clipping you
can prevent drawing problems. You can clip directly in a -drawRect method
or you can create a single view that contains the three sub-views.
NSClipView will definitely do what you want. For that matter, NSScrollView
with no scroll bars will do what you want.
----- Original Message -----
From: "mac" <email@hidden>
To: <email@hidden>
Sent: Saturday, March 02, 2002 5:43 AM
Subject: displaying parts of views
>
Hello all,
>
>
I have 3 views each with a width of 100.
>
>
I want to display the first 100 of the first view, the middle 100 of the
>
middle view, and the last 100 of the last view next to each other such
>
that the display will show with a total width of 300.
>
>
___________________________________________
>
| |
>
| |
>
| view 1 first 1/3 | view 2 second 1/3 | view 3 last 1/3 |
>
|_____________|_______________|_____________|
>
>
>
How is this done?, I've tried NSClipView, but It will not do what I
>
need without scroll bars. I don't want the views to be scrollable.
>
>
>
mac
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.