home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / tcl / 2270 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.7 KB  |  55 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!s5!is1.is.morgan.com!is.morgan.com!jlieb
  3. From: jlieb@is.morgan.com (Jerry Liebelson)
  4. Subject: Keeping a col/row fixed while scrolling horiz/vertically
  5. Message-ID: <1992Dec29.233205.12637@is.morgan.com>
  6. Sender: news@is.morgan.com
  7. Nntp-Posting-Host: katana
  8. Organization: Morgan Stanley & Company, Inc.
  9. Date: Tue, 29 Dec 1992 23:32:05 GMT
  10. Lines: 43
  11.  
  12. I'm just getting started with Tcl/Tk and wonder if anyone can comment on the
  13. feasibility of doing the following:
  14.  
  15. I want to create a scrolling table where the leftmost column and topmost
  16. row serve as "semi-fixed" row and column headings, respectively.
  17. (This kind of functionality is found in some spreadsheets such as Wingz.)
  18.  
  19. To illustrate:
  20.  
  21.   CHn = column heading n
  22.   RHn = row heading n
  23.   dxy = Data at row x, col y
  24.  
  25.  
  26.  
  27.     XX   CH1  CH2  CH3       scroll                 XX   CH2  CH3  CH4
  28.     RH1  d11  d12  d13       horizontally           RH1  d12  d13  d14
  29.     RH2  d21  d22  d23       --------------->       RH2  d22  d23  d24
  30.     RH3  d31  d32  d33                              RH3  d32  d33  d34
  31.     RH4  d41  d42  d43                              RH4  d42  d43  d44
  32.     RH5  d51  d52  d53                              RH5  d52  d53  d54
  33.  
  34.              |  scroll
  35.              |  vertically                      (column with RH's stays fixed)
  36.              |
  37.              |
  38.              V
  39.  
  40.     XX   CH1  CH2  CH3
  41.     RH2  d21  d22  d23     (row with CH's stays fixed)
  42.     RH3  d31  d32  d33
  43.     RH4  d41  d42  d43
  44.     RH5  d51  d52  d53
  45.     RH6  d61  d62  d63
  46.  
  47. Apart from having to write and incorporate a special purpose widget, is
  48. there a way to emulate this somehow under the current version of Tcl/Tk?
  49.  
  50.  
  51. -- 
  52. Jerry Liebelson
  53. jlieb@is.morgan.com
  54. Compuserve: 73477,2740
  55.