home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / zfamily.zip / zfamily / ZNLFUNCS / SAMPLE / TSTNTNL.INC < prev    next >
Text File  |  1993-09-21  |  3KB  |  57 lines

  1. /*
  2. ** /----------------------------------------------------------------------\
  3. ** |             IBM Z Family Reusable Libraries/2 (5641-504)             |
  4. ** |----------------------------------------------------------------------|
  5. ** | (C) Copyright International Business Machines Corporation 1993, 1994 |
  6. ** |----------------------------------------------------------------------|
  7. ** |                       DISCLAIMER OF WARRANTIES                       |
  8. ** |                       ------------------------                       |
  9. ** | The following code is sample code created by IBM Corporation.        |
  10. ** | Such a code is provided to you solely for the purpose of assisting   |
  11. ** | you in the development of your applications. The code is provided    |
  12. ** | "AS IS", without warranty of any kind.  IBM shall not be liable for  |
  13. ** | any damages arising out of your use of the following code, even if   |
  14. ** | they have been advised of the possibility of such damages.           |                                                                         *
  15. ** \----------------------------------------------------------------------/
  16. **
  17. **  Header   : TSTNTNL.INC
  18. **  Author   : Valerio Tavazzi (TAVAZZI at ROMEPPC)
  19. **  Reviewer : Dario de Judicibus (DEJUDICI at ROMEPPC)
  20. **  Created  : 14 Jul 1992
  21. **  Updated  : 21 Sep 1993
  22. **  Version  : 3.22
  23. **  Content  : Called by NTLINFMMsgProc in WM_INITDLG case statement
  24. **
  25. */
  26.  {
  27.    if(! znlGetCountryName(Country.CtryInfo.country , Ntlinf->NtlInfCountry))
  28.      return FALSE ;
  29.  
  30.    if(! znlGetMeasurementName(Country.Measurement , Ntlinf->NtlInfMeasurements))
  31.      return FALSE ;
  32.  
  33.    if(! znlGetListSeparator(&Country, Ntlinf->NtlInfListSeparator))
  34.      return FALSE ;
  35.  
  36.   /* 
  37.   **  Initialize entry field control: NtlInfCountry                  
  38.   */
  39.    WinSendDlgItemMsg(hWndDlg, NTLINFCTYFLD, EM_SETTEXTLIMIT, MPFROMSHORT(16), 0L) ;
  40.    if (Ntlinf->NtlInfCountry[0])
  41.      WinSetDlgItemText(hWndDlg, NTLINFCTYFLD, Ntlinf->NtlInfCountry) ;
  42.  
  43.   /* 
  44.   **  Initialize entry field control: NtlInfMeasurements             
  45.   */
  46.    WinSendDlgItemMsg(hWndDlg, NTLINFMSRFLD, EM_SETTEXTLIMIT, MPFROMSHORT(16), 0L) ;
  47.    if (Ntlinf->NtlInfMeasurements[0])
  48.      WinSetDlgItemText(hWndDlg, NTLINFMSRFLD, Ntlinf->NtlInfMeasurements) ;
  49.  
  50.   /* 
  51.   **  Initialize entry field control: NtlInfListSeparator            
  52.   */
  53.    WinSendDlgItemMsg(hWndDlg, NTLINFSEPFLD, EM_SETTEXTLIMIT, MPFROMSHORT(2), 0L) ;
  54.    if (Ntlinf->NtlInfListSeparator[0])
  55.      WinSetDlgItemText(hWndDlg, NTLINFSEPFLD, Ntlinf->NtlInfListSeparator ) ;
  56.  }
  57.