home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / motif / 8880 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.5 KB

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