home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / sysba021.zip / SRC.ZIP / sysbar2 / Clock / sb2_clock.dlg < prev    next >
Text File  |  2003-01-03  |  6KB  |  125 lines

  1. /*
  2.  
  3.   SysBar/2 Utility Set  version 0.21
  4.  
  5.   Clock dialogs
  6.  
  7.   ..................................................................
  8.  
  9.   Copyright (c) 1995-1999  Dmitry I. Platonoff
  10.                            All rights reserved
  11.  
  12.                          dplatonoff@canada.com
  13.  
  14.   ..................................................................
  15.  
  16.   LICENSE
  17.   ~~~~~~~
  18.   Redistribution and use in source and binary forms, with or without
  19.   modification, are permitted provided that the following conditions
  20.   are met:
  21.  
  22.   1. Redistributions of source code must retain the above copyright
  23.      notice, this list of conditions and the following disclaimer.
  24.  
  25.   2. Redistributions in binary form must reproduce the above
  26.      copyright notice, this list of conditions and the following
  27.      disclaimer in the documentation and/or other materials provided
  28.      with the distribution.
  29.  
  30.   3. Redistributions of any form whatsoever, as well as all
  31.      advertising materials mentioning features or use of this
  32.      software (if any), must include the following acknowledgment:
  33.      "This product includes software developed by Dmitry I. Platonoff".
  34.  
  35.   4. The names "SysBar/2" and "Dmitry I. Platonoff" must not be
  36.      used to endorse or promote products derived from this software
  37.      without prior written permission. For such permission, please
  38.      contact dplatonoff@canada.com.
  39.  
  40.   5. Products derived from this software may not be called
  41.      "SysBar/2" nor may "Dmitry I. Platonoff" appear in their
  42.      contributor lists without prior written permission.
  43.  
  44.   ..................................................................
  45.  
  46.   DISCLAIMER
  47.   ~~~~~~~~~~
  48.   THIS SOFTWARE IS PROVIDED BY THE AUTHOR OR CONTRIBUTORS "AS IS"
  49.   AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  50.   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  51.   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  52.   AUTHOR OR THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  53.   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  54.   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  55.   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  56.   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  57.   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  58.   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  59.   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  60.  
  61. */
  62.  
  63. #ifndef OS2_INCLUDED
  64.    #include <os2.h>
  65. #endif
  66. DLGINCLUDE 1 "sb2_clock_res.h"
  67.  
  68. DLGTEMPLATE DLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE
  69. BEGIN
  70.     DIALOG  "About SysBar/2 Clock", DLG_ABOUT, 0, 0, 180, 85, NOT 
  71.             FS_DLGBORDER
  72.             PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
  73.     BEGIN
  74.         GROUPBOX        "", D_Version, 4, 29, 132, 50
  75.         LTEXT           "SysBar/2 Clock", 401, 10, 58, 120, 10, DT_VCENTER | 
  76.                         DT_WORDBREAK
  77.         LTEXT           "", D_Copyright, 10, 47, 120, 10, DT_VCENTER | 
  78.                         DT_WORDBREAK
  79.         RTEXT           "", D_Email, 10, 31, 120, 16, DT_WORDBREAK
  80.         ICON            ICO_MAIN, ICO_MAIN, 146, 60, 21, 16, WS_GROUP
  81.     END
  82. END
  83.  
  84. DLGTEMPLATE DLG_SETTINGS LOADONCALL MOVEABLE DISCARDABLE
  85. BEGIN
  86.     DIALOG  "SysBar/2 Clock settings", DLG_SETTINGS, 0, 0, 172, 90, NOT 
  87.             FS_DLGBORDER
  88.             PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
  89.     BEGIN
  90.         GROUPBOX        "Display on top", D_Display, 3, 38, 57, 48
  91.         AUTORADIOBUTTON "~No", D_Display_None, 10, 68, 45, 10, WS_GROUP
  92.         AUTORADIOBUTTON "~Always", D_Display_OnTop, 10, 59, 45, 10
  93.         AUTORADIOBUTTON "Pop-~up", D_Display_Popup, 10, 50, 45, 10
  94.         AUTORADIOBUTTON "Pop/~hide", D_Display_Popup2, 10, 41, 45, 10
  95.         GROUPBOX        "Bind to corner", D_Bind_Corner, 63, 56, 57, 30
  96.         AUTORADIOBUTTON "~Off", D_Bind_Off, 82, 64, 22, 10, WS_GROUP
  97.         AUTORADIOBUTTON "", D_Bind_NW, 68, 69, 10, 10
  98.         AUTORADIOBUTTON "", D_Bind_NE, 106, 69, 10, 10
  99.         AUTORADIOBUTTON "", D_Bind_SW, 68, 57, 10, 10
  100.         AUTORADIOBUTTON "", D_Bind_SE, 106, 57, 10, 10
  101.         GROUPBOX        "Size", D_Size, 123, 56, 43, 30
  102.         AUTORADIOBUTTON "~Small", D_Size_Small, 130, 68, 32, 10, WS_GROUP
  103.         AUTORADIOBUTTON "~Large", D_Size_Large, 130, 59, 32, 10
  104.         AUTOCHECKBOX    "Monoch~rome", D_Display_Mono, 63, 45, 58, 10, 
  105.                         WS_GROUP
  106.         AUTOCHECKBOX    "Loc~k position", D_Lock_Position, 63, 35, 58, 10
  107.         AUTOCHECKBOX    "12-h ~mode", D_Display_12h, 123, 45, 49, 10, 
  108.                         WS_GROUP
  109.         AUTOCHECKBOX    "S~econds", D_Display_Seconds, 123, 35, 49, 10
  110.         GROUPBOX        "Time/Date", D_Time, 3, 2, 165, 34, WS_GROUP
  111.         SPINBUTTON      D_Time_Hours, 8, 17, 24, 12, SPBS_NUMERICONLY | 
  112.                         SPBS_MASTER | SPBS_JUSTLEFT
  113.         SPINBUTTON      D_Time_Minutes, 34, 17, 24, 12, SPBS_NUMERICONLY | 
  114.                         SPBS_MASTER | SPBS_JUSTLEFT
  115.         SPINBUTTON      D_Time_Seconds, 60, 17, 24, 12, SPBS_NUMERICONLY | 
  116.                         SPBS_MASTER | SPBS_JUSTLEFT
  117.         PUSHBUTTON      "Set ~time", D_Time_Set, 7, 5, 79, 10, WS_GROUP
  118.         SPINBUTTON      D_Date_Month, 89, 17, 48, 12, SPBS_READONLY | 
  119.                         SPBS_MASTER | SPBS_JUSTLEFT
  120.         SPINBUTTON      D_Date_Day, 139, 17, 24, 12, SPBS_NUMERICONLY | 
  121.                         SPBS_MASTER | SPBS_JUSTLEFT
  122.         PUSHBUTTON      "Set ~date", D_Date_Set, 89, 5, 75, 10, WS_GROUP
  123.     END
  124. END
  125.