home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / NBSIZE.ZIP / NBSIZE.DOC < prev    next >
Text File  |  1993-02-23  |  2KB  |  42 lines

  1. NBSIZE.EXE is a sample program that demonstrates a technique for resizing the
  2. pages of a Notebook control when the size of the Notebook changes. This program
  3. is comprised of 4 modules:
  4.  
  5.  NBSIZE.C:  Main module that provides Notebook functionality
  6.  DIALOG.C:  Loads a dialog, associates it with a notebook page, and contains
  7.             the dialog box window procedure as well as the dynamic sizing
  8.             logic.
  9.  CLIENT.C:  Creates a standard window and associates it with a notebook page.
  10.             Processes the WM_PAINT message and uses a scalable font to display
  11.             a string. The size of the font changes as the page is sized.
  12.  MLE.C:     Creates an MLE control and associates it with a notebook page. It
  13.             is automatically sized when the notebook page sizes.
  14.  
  15. All the pages rely on BKA_AUTOPAGESIZE to dynamically size their windows. The
  16. three pages size themselves differently in response to the notebook getting
  17. resized. The dialog box resizes its controls for optimum space. The client
  18. window resizes its scalable font. The MLE resizes itself to the size of the
  19. page.
  20.  
  21. I unfortunately did not have a lot of time to document this program but you
  22. should be able to follow it if you have followed NBEZ.EXE or NBBASE.EXE.
  23.  
  24. I hope this program will be of some use.
  25.  
  26. ===============================================================================
  27. GLOBAL HISTORY (KEPT SINCE 1/31/93 - Before that, kept on a per-module basis)
  28.  
  29. 2-22-93 - Got rid of wasted space on the bottom of the notebook when no minor
  30.           tabs were being used. Did this by setting the dimensions of the minor
  31.           tabs to 0, 0. This based on a tip by Scott Kliger.
  32.  
  33. ===============================================================================
  34.  
  35. Rick Fishman
  36. Code Blazers, Inc.
  37. 4113 Apricot
  38. Irvine, CA 92720
  39.  
  40. CIS ID: 72251,750
  41.  
  42.