home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / strgen.zip / README < prev    next >
Text File  |  1996-03-15  |  2KB  |  46 lines

  1. NAME: STRGEN
  2.  
  3. COPYRIGHT:
  4. ----------
  5. Copyright (C) International Business Machines Corp., 1991,1995.
  6.  
  7. DISCLAIMER OF WARRANTIES:
  8. -------------------------
  9. The following [enclosed] code is sample code created by IBM
  10. Corporation.  This sample code is not part of any standard IBM product
  11. and is provided to you solely for the purpose of assisting you in the
  12. development of your applications.  The code is provided "AS IS",
  13. without warranty of any kind.  IBM shall not be liable for any damages
  14. arising out of your use of the sample code, even if they have been
  15. advised of the possibility of such damages.
  16.  
  17.  
  18. DESCRIPTION:
  19.  
  20. Sample of using the IStringGenerator class for translating elements to IStrings
  21. in the ICollectionViewListBox.  This sample can also be used if you wish to
  22. populate table records from DAX classes to the ICollectionViewListBox.
  23.  
  24.  
  25. How to use it:
  26.  
  27.  
  28. 1) Modify MYSTRGEN.HPP:
  29.    - change the typedef to point to the object you want a string generated for.
  30.      In the sample, the object is the Customer.
  31.  
  32.    - change the implementation for StrgenFn::stringFor() to return a string
  33.      for your object.
  34.  
  35.    - replace the inclusion for Customer.hpp to the header file where you have
  36.      the class for your object declared.
  37.  
  38. 2) Import mystrgen.vbe in Visual Builder or just load up mystrgen.vbb.
  39.  
  40. 3) Specify MyStringGen() in the String generator field of the
  41.    ICollectionViewListBox or ICollectionViewComboBox settings notebook.
  42.  
  43. Any questions for this sample, drop a mail to BLUC@VNET.IBM.COM
  44.  
  45. Brian Luc, 03/15/96
  46.