home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / winsock / wstim101 / src / ntime.dlg < prev    next >
Encoding:
Text File  |  1995-05-19  |  3.1 KB  |  68 lines

  1. // Contents ---------------------------------------------------------------
  2. //
  3. //   ntime.dlg -- Dialog Boxes for Network Time client
  4. //
  5. //   Version 1.0.1, a Windows Socket Time Client
  6. //
  7. //   Copyright (C) Frederick W. Bent 1994
  8. //   All rights reserved.
  9. //
  10. //
  11. // Redistribution and use in source and binary forms are permitted provided
  12. // that the above copyright notice and this paragraph are duplicated in all
  13. // such forms and that any documentation, advertising materials, and other
  14. // materials related to such distribution and use acknowledge that the
  15. // software was developed by Frederick W. Bent.  In addition, if you wish
  16. // to distribute this program in source and/or binary forms with other
  17. // samples of WinSock programs, you must first contact the author so that
  18. // I can keep accurate records of its usage.  The name of the author may
  19. // not be used to endorse or promote products derived from this software
  20. // without specific prior written permission. Specifically, do not modify
  21. // this source in any way and re-distribute it without the author's prior
  22. // consent.  THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OF
  23. // IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES
  24. // OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  25. //
  26. //
  27. // Ends -------------------------------------------------------------------
  28.  
  29. DLGINCLUDE RCDATA DISCARDABLE
  30. BEGIN
  31.     "NTIME.H\0"
  32. END
  33.  
  34. HOSTBOX DIALOG 38, 20, 163, 145
  35. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  36. CAPTION "Setup Time Client"
  37. FONT 8, "Helv"
  38. BEGIN
  39.     EDITTEXT        IDC_HOSTNAME, 12, 20, 140, 13, ES_AUTOHSCROLL | WS_GROUP
  40.     EDITTEXT        IDC_USER, 12, 48, 140, 13, ES_AUTOHSCROLL
  41.     EDITTEXT        IDC_UDPRETRY, 12, 76, 8, 13
  42.     EDITTEXT        IDC_UDPTIME, 86, 76, 22, 13
  43.     CHECKBOX        "Use &TCP protocol connection", IDC_USETCP, 12, 95, 140, 13, BS_AUTOCHECKBOX | WS_TABSTOP
  44.     CHECKBOX        "&Modify your system's date && time", IDC_UPDATE, 12, 108, 140, 13, BS_AUTOCHECKBOX | WS_TABSTOP
  45.     DEFPUSHBUTTON   "OK", IDOK, 11, 125, 40, 14, WS_TABSTOP
  46.     PUSHBUTTON        "O&pen", IDB_CONNECT, 62, 125, 40, 14, WS_TABSTOP
  47.     PUSHBUTTON      "Cancel", IDCANCEL, 113, 125, 40, 14, WS_TABSTOP
  48.     LTEXT           "Enter time correction in seconds (optional)", -1, 12, 38, 140, 8
  49.     LTEXT           "Enter a host name or Internet address", -1, 12, 10, 140, 8
  50.     LTEXT        "UDP retry count", IDT_UDP1, 12, 66, 66, 8
  51.     LTEXT        "UDP timeout (sec.)", IDT_UDP2, 86, 66, 66, 8
  52. END
  53.  
  54. ABOUTBOX DIALOG 30, 60, 200, 60
  55. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  56. CAPTION "About Time Client"
  57. FONT 8, "Helv"
  58. BEGIN
  59.     DEFPUSHBUTTON      "OK", IDOK, 80, 42, 40, 14, WS_GROUP
  60.     ICON            "NTimeIcon", -1, 10, 10, 18, 20
  61.     CONTROL        "", -1, "Static", SS_BLACKRECT, 9, 9, 20, 21
  62.     CTEXT           "Windows Sockets Time Client Version 1.0.1", -1, 30, 10, 171, 10
  63.     CTEXT           "Copyright ⌐ 1994 by Frederick W. Bent", -1, 30, 20, 171, 10
  64.     CTEXT           "All rights reserved.", -1, 30, 30, 171, 10
  65. END
  66.  
  67.  
  68.