home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!s5!is1.is.morgan.com!is.morgan.com!jlieb
- From: jlieb@is.morgan.com (Jerry Liebelson)
- Subject: Keeping a col/row fixed while scrolling horiz/vertically
- Message-ID: <1992Dec29.233205.12637@is.morgan.com>
- Sender: news@is.morgan.com
- Nntp-Posting-Host: katana
- Organization: Morgan Stanley & Company, Inc.
- Date: Tue, 29 Dec 1992 23:32:05 GMT
- Lines: 43
-
- I'm just getting started with Tcl/Tk and wonder if anyone can comment on the
- feasibility of doing the following:
-
- I want to create a scrolling table where the leftmost column and topmost
- row serve as "semi-fixed" row and column headings, respectively.
- (This kind of functionality is found in some spreadsheets such as Wingz.)
-
- To illustrate:
-
- CHn = column heading n
- RHn = row heading n
- dxy = Data at row x, col y
-
-
-
- XX CH1 CH2 CH3 scroll XX CH2 CH3 CH4
- RH1 d11 d12 d13 horizontally RH1 d12 d13 d14
- RH2 d21 d22 d23 ---------------> RH2 d22 d23 d24
- RH3 d31 d32 d33 RH3 d32 d33 d34
- RH4 d41 d42 d43 RH4 d42 d43 d44
- RH5 d51 d52 d53 RH5 d52 d53 d54
-
- | scroll
- | vertically (column with RH's stays fixed)
- |
- |
- V
-
- XX CH1 CH2 CH3
- RH2 d21 d22 d23 (row with CH's stays fixed)
- RH3 d31 d32 d33
- RH4 d41 d42 d43
- RH5 d51 d52 d53
- RH6 d61 d62 d63
-
- Apart from having to write and incorporate a special purpose widget, is
- there a way to emulate this somehow under the current version of Tcl/Tk?
-
-
- --
- Jerry Liebelson
- jlieb@is.morgan.com
- Compuserve: 73477,2740
-