Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!uxc.cso.uiuc.edu!uxc.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!jpd00964
From: jpd00964@uxa.cso.uiuc.edu
Newsgroups: comp.sys.next
Subject: Re: View question
Message-ID: <246300034@uxa.cso.uiuc.edu>
Date: 11 Aug 89 00:41:00 GMT
References: <24012@labrea.Stanford.EDU>
Lines: 15
Nf-ID: #R:labrea.Stanford.EDU:24012:uxa.cso.uiuc.edu:246300034:000:651
Nf-From: uxa.cso.uiuc.edu!jpd00964    Aug 10 19:41:00 1989


> Does anyone know of a simple way to change the order of display of views
> and their subviews?

The first subviews added get drawn first, with later ones getting put on
top of them.  You could pull them out of the list and put them back in again.

However, from you posting, if I understand correctly, I think you might find
it easier to add the "knobbies" as a subview of you rectangles instead of
the other way around.  Either that, or include a flag in each rectangle object
on if it should have knobbies or not.  Then, in its drawSelf:: routine, you
could draw the knobs if the flag is set and not draw them if its not.

Michael Rutman
Softmed