home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!usenet.ins.cwru.edu!agate!ucbvax!BHANU.ANDYNE.ON.CA!mark
- From: mark@BHANU.ANDYNE.ON.CA (Mark Levison)
- Newsgroups: comp.windows.x.motif
- Subject: re:Need a scrollable window/drawing area with spreadsheet-like #
- Message-ID: <9301270009.AA18744@bhanu.andyne.on.ca>
- Date: 27 Jan 93 00:09:21 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: inet
- Organization: The Internet
- Lines: 22
-
-
- The following question was asked
- > I have a drawing area widget parented by a scrollable window (automatic)
- > but I need to update a list of horizontal and vertical "cell" numbers which
- > don't scroll off the area and that are displayed above and to the left of the
- > drawing area - similar in manner to a spreadsheet, where the numbers are
- > always visible. I've tried several permutations with application defined
- > scrolled windows and frames, but to no avail. What is the best way to
- > accomplish this behavior? I want the numbers to scroll with the drawing
- > area, but remain visible.
-
- Either roll your own or buy a spread sheet widget. I had do this 18 months
- ago now. My solution use 4 drawing area, 2 scrollbars and a frame widget.
- One drawing is the main one and the other ones are for horizontal, vertical
- and a top corner that says how many rows there are. You have to set up
- your own scroll bar callbacks etc. It was my first real Motif project and
- took me about 1 month to get right. I could probably do it from scratch is
- 2 - 2 1/2 weeks.
-
- Good Luck
- Mark Levison
- mark@bhanu.andyne.on.ca
-