home *** CD-ROM | disk | FTP | other *** search
/ Dream 50 / Amiga_Dream_50.iso / BeOS / develop / WordWrap0.3.txt < prev    next >
Text File  |  1997-12-23  |  2KB  |  53 lines

  1. File: WordWrap0.3.zip
  2. Author: Ed Musgrove BeDev#2076
  3. Release:  23 December 1997
  4. Compatibility: PR 2
  5. Location: pub/contrib/util and/or pub/contrib/develop
  6. Description: Word wrap files with long lines.
  7.     A GUI app with file requester.  Uses My font
  8.     sensitivity routine
  9. Notes: 
  10. (0) Eventually, I hope to break this app into a number of
  11. small pieces. I will try to make this a tutorial for beginner
  12. BeOS programmers.
  13.  
  14. (1) There is a "load file..." gadget as well as menu item and 
  15. a preferences panel withan "integer gadget" which accepts a 
  16. value between 0 and UINT_MAX inclusive. When the file requester 
  17. sends a "load file" message, the file is buffered, the lines are 
  18. wordwrapped, and a save file panel opens to allow the file to be 
  19. placed and named. There are two "font" buttons to enable play 
  20. with font sensitive gui items. There is provision for some LibPref 
  21. preferences (window placement and colors of all the gadgets
  22. and window background.)
  23.  
  24. Source code is included.
  25.  
  26. This is a test implimentation of my own simple word
  27. wrapping procedure. I am also employing the first
  28. implimentation of my font sensitive GUI, along with
  29. a trial run of an "integer gadget". I am really releasing this 
  30. as a test of these concepts, not so much as a tool to
  31. help tweak text files.
  32.  
  33. Examine the procedures for all three things (the word
  34. wrap code, the font sensitive GUI, and the integer
  35. restricted gadget) and let me know of errors or needed 
  36. enhancements you notice. 
  37.  
  38. Known Bugs:
  39. There is a race condition which causes the windows to
  40. be too small horizontally, and hosed when you try to
  41. scroll or resize. This can be prevented by running the
  42. app from a terminal. See the printf() on line 56 of
  43. windowGuts.cpp. This bug only shows up rarely on
  44. my BeBox66. I am experimenting with semaphores
  45. unsuccessfully.
  46. Another problem is that to activate my windows, one
  47. must select the title tab, window border, or menu
  48. area. The custom scroll view must be gobbling up all 
  49. the clicks and not properly passing them on--hmmmm.
  50.  
  51. -Ed
  52. edgar@harbornet.com
  53.