home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
zfamily.zip
/
zfamily
/
ZDTFUNCS
/
SAMPLE
/
DTEINF.RC
< prev
next >
Wrap
Text File
|
1993-09-24
|
6KB
|
129 lines
/*
** /----------------------------------------------------------------------\
** | IBM Z Family Reusable Libraries/2 (5641-504) |
** |----------------------------------------------------------------------|
** | (C) Copyright International Business Machines Corporation 1993, 1994 |
** |----------------------------------------------------------------------|
** | DISCLAIMER OF WARRANTIES |
** | ------------------------ |
** | The following code is sample code created by IBM Corporation. |
** | Such a code is provided to you solely for the purpose of assisting |
** | you in the development of your applications. The code is provided |
** | "AS IS", without warranty of any kind. IBM shall not be liable for |
** | any damages arising out of your use of the following code, even if |
** | they have been advised of the possibility of such damages. | *
** \----------------------------------------------------------------------/
**
** Header : DTEINF.RC
** Author : Dario de Judicibus (DEJUDICI at ROMEPPC)
** Created : 15 Jul 1992
** Updated : 02 Sep 1993
** Version : 4.12
** Content : Resource file for the sample program for FMZDTFUN.DLL
**
*/
#define INCL_PM
#include <os2.h>
#include <dteinf.rch>
#include <zzzlogo.rch>
rcinclude TSTFUNCS.RC
rcinclude ZZZLOGO.RC
BITMAP TMEZONMAPBMP ZDTWORLD.BMP
MENU ID_DTEINF
BEGIN
SUBMENU "~Date", IDM_DATE, MIS_TEXT
BEGIN
MENUITEM "~Check...", IDM_D_CHECK, MIS_TEXT
MENUITEM "~Timezones...", IDM_D_TIMEZONES, MIS_TEXT
MENUITEM SEPARATOR
MENUITEM "~About", IDM_D_ABOUT, MIS_TEXT
MENUITEM "E~xit\tF3", IDM_D_EXIT, MIS_TEXT
END
END
STRINGTABLE
BEGIN
IDS_TITLE, "Date information"
IDS_ERR_WINDOW_CREATE, "Window creation failed!"
IDS_ERR_WINDOW_POS, "Window positioning failed!"
IDS_REQUIRED_FIELD, "Required field not completed. Select cancel to exit dialog."
IDS_VALIDATE_FIELD, "Field data validataion error. Select cancel to exit dialog."
IDS_NO_HELP, "No help is available."
IDS_HELP_TERM, "Help Terminated Due to Error"
IDS_HELP_OCCRD, "Help Error Occurred"
IDS_HELP_TERM_TITLE, "Help Error"
IDS_APP_EXE_NAME, "DTEINF.EXE"
IDS_APP_NAME, "DTEINF"
END
DLGTEMPLATE IDLG_CHKDTE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
DIALOG "Check date", IDLG_CHKDTE, 61, 106, 319, 111, FS_NOBYTEALIGN |
WS_VISIBLE, FCF_TITLEBAR
BEGIN
LTEXT "Use language", CHKDTECLNSTX, 10, 94, 75, 8
GROUPBOX "Date", CHKDTEDTEGRP, 9, 26, 101, 58
LTEXT "Day", CHKDTEDAYSTX, 16, 65, 51, 8
ENTRYFIELD "", CHKDTEDAYFLD, 69, 65, 32, 8, ES_CENTER | ES_MARGIN
LTEXT "Month", CHKDTEMTHSTX, 16, 49, 51, 8
ENTRYFIELD "", CHKDTEMTHFLD, 69, 49, 32, 8, ES_CENTER | ES_MARGIN
LTEXT "Year", CHKDTEYEASTX, 16, 33, 51, 8
ENTRYFIELD "", CHKDTEYEAFLD, 69, 33, 32, 8, ES_CENTER | ES_MARGIN
PUSHBUTTON "", CHKDTECHKBUT, 117, 26, 21, 54
GROUPBOX "Information", CHKDTEINFGRP, 144, 6, 167, 101
LTEXT "Weekday is", CHKDTEWKDSTX, 154, 87, 71, 8
ENTRYFIELD "", CHKDTEWKDFLD, 227, 87, 74, 8, ES_CENTER | ES_MARGIN | ES_READONLY
LTEXT "Month name is", CHKDTEMTNSTX, 154, 73, 71, 8
ENTRYFIELD "", CHKDTEMTNFLD, 227, 73, 74, 8, ES_CENTER | ES_MARGIN | ES_READONLY
CHECKBOX "Leap year", CHKDTELPYCHK, 156, 13, 62, 10
LTEXT "Day in year", CHKDTEDIYSTX, 154, 59, 71, 8
ENTRYFIELD "", CHKDTEDIYFLD, 227, 59, 36, 8, ES_CENTER | ES_MARGIN | ES_READONLY
LTEXT "Julian date", CHKDTEJULSTX, 154, 45, 71, 8
ENTRYFIELD "", CHKDTEJULFLD, 227, 45, 36, 8, ES_CENTER | ES_MARGIN | ES_READONLY
LTEXT "Week of the year", CHKDTEWEKSTX, 155, 31, 71, 8
ENTRYFIELD "", CHKDTEWEKFLD, 228, 31, 36, 8, ES_CENTER | ES_MARGIN | ES_READONLY
PUSHBUTTON "OK", DID_OK, 9, 5, 83, 14
CONTROL "", CHKDTECLNDDL, 90, 51, 47, 52, WC_COMBOBOX,
CBS_DROPDOWNLIST | WS_GROUP | WS_TABSTOP | WS_VISIBLE
END
END
DLGTEMPLATE IDLG_TMEZON LOADONCALL MOVEABLE DISCARDABLE
BEGIN
DIALOG " Timezones", TMEZONDLG, 138, 69, 144, 156, WS_VISIBLE,
FCF_TITLEBAR
BEGIN
GROUPBOX "Universal Coordinated Time", TMEZONUTCGRP, 4, 97, 135, 54, WS_TABSTOP
LTEXT "Hours ", TMEZONHRSSTX, 11, 131, 71, 8
ENTRYFIELD "", TMEZONHRSFLD, 102, 131, 31, 8, ES_CENTER | NOT ES_AUTOSCROLL | ES_MARGIN
LTEXT "Minutes", TMEZONMINSTX, 11, 117, 71, 8
ENTRYFIELD "", TMEZONMINFLD, 102, 117, 31, 8, ES_CENTER | NOT ES_AUTOSCROLL | ES_MARGIN
LTEXT "Seconds", TMEZONSECSTX, 11, 103, 71, 8
ENTRYFIELD "", TMEZONSECFLD, 102, 103, 31, 8, ES_CENTER | NOT ES_AUTOSCROLL | ES_MARGIN
ENTRYFIELD "", TMEZONOFFFLD, 63, 45, 18, 8, WS_GROUP | ES_CENTER | NOT ES_AUTOSCROLL | ES_MARGIN
PUSHBUTTON "", TMEZONMAPBUT, 5, 45, 134, 49, WS_GROUP | WS_VISIBLE | WS_CLIPSIBLINGS |
NOT WS_TABSTOP | BS_USERBUTTON | BS_NOPOINTERFOCUS
ENTRYFIELD "", TMEZONHR2FLD, 45, 21, 26, 8, ES_CENTER | NOT ES_AUTOSCROLL | ES_MARGIN | ES_READONLY
ENTRYFIELD "", TMEZONMI2FLD, 81, 21, 26, 8, ES_CENTER | NOT ES_AUTOSCROLL | ES_MARGIN | ES_READONLY
ENTRYFIELD "", TMEZONSE2FLD, 117, 21, 26, 8, ES_CENTER | NOT ES_AUTOSCROLL | ES_MARGIN | ES_READONLY
CONTROL "", TMEZONOFFSLD, 5, 32, 134, 12, WC_SLIDER,
SLS_HORIZONTAL | SLS_CENTER | SLS_SNAPTOINCREMENT |
SLS_HOMELEFT | SLS_PRIMARYSCALE1 | WS_GROUP |
WS_TABSTOP | WS_VISIBLE
CTLDATA 12, 0, 25, 0, 0, 0
PUSHBUTTON "", TMEZONOFFBUT, 6, 19, 30, 12
PUSHBUTTON "OK", DID_OK, 39, 2, 64, 14
END
END
ACCELTABLE ID_DTEINF
BEGIN
VK_F3, IDM_D_EXIT, VIRTUALKEY
END