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

  1. NBLOAD.EXE is a sample program that demonstrates different ways of loading the
  2. pages of a Notebook control. Since a Notebook can have many pages and each page
  3. is associated with a window, it is important to use a good technique for
  4. creating the windows so that performance is optimized. A notebook with just a
  5. few pages need not worry about different techniques because no matter how the
  6. windows are created and associated with pages, performance will not suffer.
  7.  
  8. This sample associates a dialog box with each Notebook page. It allows you to
  9. load these dialog boxes 3 ways by a command line parameter.
  10.  
  11.     Parameter         Technique
  12.     ---------         ---------
  13.         0             Load dialogs on demand (only when the user has selected
  14.                       the page that should be associated with the dialog).
  15.  
  16.         1             On Demand with timer support. Start a timer. When you
  17.                       get a WM_TIMER message, load the next dialog that hasn't
  18.                       yet been loaded. When all dialogs are loaded, stop the
  19.                       timer. If the user selects a page that has not yet been
  20.                       loaded, load it at that time.
  21.  
  22.         2             Load all dialogs at program initialization time.
  23.  
  24. By running the program with different commandline parameters, you will notice
  25. the difference in startup speed vs. page-flipping speed. Actually, I've noticed
  26. that the amount of time that it takes to load the dialog and associate it with
  27. a page really is not a bad performance hit when the user selects a page. But
  28. the time it takes to load all dialogs at program initialization can be bad, so
  29. I choose to create my Notebooks always using a Load-On-Demand technique. I
  30. haven't found the timer technique to be of much benefit.
  31.  
  32. I wrote this program to test these techniques out. You may want to tailor it
  33. with your own dialogs to test your notebook for performance. In any case, I
  34. hope it will be of some use.
  35.  
  36. Rick Fishman
  37. Code Blazers, Inc.
  38. 4113 Apricot
  39. Irvine, CA 92720
  40.  
  41. CIS ID: 72251,750
  42.  
  43.