home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / CNREZ.ZIP / CNREZ.DOC < prev    next >
Text File  |  1992-10-14  |  2KB  |  37 lines

  1. CNREZ.EXE is a sample program that demonstrates setting up a simple container.
  2. It creates a standard window with a container as a child of the client window.
  3. Once created, records are inserted into the container and the window is
  4. displayed.
  5.  
  6. Child records are created under each top-level record to demonstrate the Tree
  7. view.
  8.  
  9. Once the container is displayed, Name, Icon, Detail and Text views are
  10. selectable from an actionbar pulldown. Simple direct-editing is enabled.
  11.  
  12. This sample is meant to demonstrate the setting up of a container and nothing
  13. more. Drag/drop, Context Menus, Shared records, Deltas, Ownerdraw are just some
  14. of the things *not* covered here. I hope to upload a sample with these features
  15. at a later date.
  16.  
  17. DISCLAIMER: This program intentionally does no error-checking and uses global
  18. variables. This is to provide an easy to understand program flow. I do not like
  19. to code this way and had to kick myself several times while coding it, but the
  20. clarity is better this way.
  21.  
  22. Hopefully CNREZ will be of some use to beginning container programmers.
  23.  
  24. In order to feel good about myself<g>, I coded up another sample in CNRBAS.ZIP
  25. that I am uploading at the same time as CNREZ. CNRBASE uses extensive error-
  26. checking and uses window words to get rid of those nasty global variables. It
  27. recursively displays all the files in a directory and its subdirectories,
  28. using a secondary thread to keep the container available to the user while
  29. filling it with records.
  30.  
  31. Rick Fishman
  32. Code Blazers, Inc.
  33. 4113 Apricot
  34. Irvine, CA 92720
  35.  
  36. CIS ID: 72251,750
  37.