[comp.sys.next] basic view questions

mikem@uhccux.uhcc.Hawaii.Edu (Mike Morton) (04/26/91)

Here are a couple of basic questions about view management.

(1) To make a spreadsheet scroll in two dimensions, I'd first think of
using a ScrollView with both scrollers present.  But at the top of a
spreadsheet are column headings (A, B, C...) which scroll sideways but
NOT up and down.  Similarly, along the left side are row numbers which
also scroll only one way.

Is there some simple way to do this with a ScrollView, or do I just need
to cobble together three or four views and a couple of Scrollers?

(2) Another spreadsheet example (though I'm not doing one, really).  Most
GUI spreadsheets allow you to click on or near the right edge of a column's
heading and drag to resize that column.  I want each heading to be a
separate subview, but that means that clicking near the left edge of
column B will give the mouse click to B, when I want A to be resized.

Should B hand off with a message to A, or could I make A's subview overlap
B's by a few pixels?  In general, do overlapping views bring any problems?

Thanks in advance for any suggestions...

 -- Mike Morton // P.O. Box 11299, Honolulu, HI  96828, (808) 676-6966 HST
      Internet: mikem@uhccux.uhcc.hawaii.edu
    (anagrams): Mr. Machine Tool; Ethical Mormon; Chosen Immortal; etc.