home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
zfamily.zip
/
zfamily
/
ZNLFUNCS
/
SAMPLE
/
CTYINF.RC
< prev
next >
Wrap
Text File
|
1993-09-21
|
10KB
|
191 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 : CTYINF.RC
** Author : Valerio Tavazzi (TAVAZZI at ROMEPPC)
** Reviewer : Dario de Judicibus (DEJUDICI at ROMEPPC)
** Created : 13 Jul 1992
** Updated : 21 Sep 1993
** Version : 3.22
** Content : Resource file for the sample program for FMZNLFUN.DLL
*/
#define INCL_PM
#include <os2.h>
#include <ctyinf.rch>
#include <zzzlogo.rch>
rcinclude TSTFUNCS.RC
rcinclude ZZZLOGO.RC
MENU ID_CTYINF
BEGIN
SUBMENU "~Show", IDM_SHOW, MIS_TEXT
BEGIN
MENUITEM "~General...", IDM_S_GENERAL, MIS_TEXT
MENUITEM "~Date...", IDM_S_DATE, MIS_TEXT
MENUITEM "~Time...", IDM_S_TIME, MIS_TEXT
MENUITEM "~Numbers...", IDM_S_NUMBERS, MIS_TEXT
MENUITEM "~Currency...", IDM_S_CURRENCY, MIS_TEXT
MENUITEM SEPARATOR
MENUITEM "~About", IDM_S_ABOUT, MIS_TEXT
MENUITEM SEPARATOR
MENUITEM "E~xit\tF3", IDM_S_EXIT, MIS_TEXT
END
END
STRINGTABLE
BEGIN
IDS_TITLE , "Country 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 validation 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 , "CTYINF.EXE"
IDS_APP_NAME , "CTYINF"
END
DLGTEMPLATE IDLG_NTLINF LOADONCALL MOVEABLE DISCARDABLE
BEGIN
DIALOG "National Information", IDLG_NTLINF, 87, 89, 198, 72,
FS_NOBYTEALIGN | FS_DLGBORDER | WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS, FCF_TITLEBAR
BEGIN
CONTROL "Country :", NTLINFCTYSTX, 7, 58, 98, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "", NTLINFCTYFLD, 113, 58, 75, 8,
WC_ENTRYFIELD, ES_CENTER | ES_MARGIN | ES_READONLY | WS_TABSTOP | WS_VISIBLE | ES_READONLY
CONTROL "OK", DID_OK, 7, 5, 65, 14,
WC_BUTTON, BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
CONTROL "Measurements :", NTLINFMSRSTX, 7, 43, 98, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "", NTLINFMSRFLD, 113, 43, 75, 8,
WC_ENTRYFIELD, ES_CENTER | ES_MARGIN | ES_READONLY | WS_TABSTOP | WS_VISIBLE | ES_READONLY
CONTROL "List separator :", NTLINFSEPSTX, 7, 28, 98, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL ";", NTLINFSEPFLD, 136, 28, 29, 8,
WC_ENTRYFIELD, ES_CENTER | ES_MARGIN | ES_READONLY | WS_TABSTOP | WS_VISIBLE | ES_READONLY
END
END
DLGTEMPLATE IDLG_DTEFMT LOADONCALL MOVEABLE DISCARDABLE
BEGIN
DIALOG "Date Format", IDLG_DTEFMT, 91, 65, 191, 89,
FS_NOBYTEALIGN | FS_DLGBORDER | WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS, FCF_TITLEBAR
BEGIN
CONTROL "Day Month Year", DTEFMTDMYRDB, 10, 72, 104, 10,
WC_BUTTON, BS_RADIOBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "DD/MM/YY", DTEFMTDMYSTX, 120, 71, 60, 10,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "Month Day Year", DTEFMTMDYRDB, 10, 58, 104, 10,
WC_BUTTON, BS_RADIOBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "MM/DD/YY", DTEFMTMDYSTX, 120, 57, 60, 10,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "Year Month Day", DTEFMTYMDRDB, 10, 44, 104, 10,
WC_BUTTON, BS_RADIOBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "YY/MM/DD", DTEFMTYMDSTX, 120, 43, 60, 10,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "Date separator :", DTEFMTSEPSTX, 9, 29, 104, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "/", DTEFMTSEPFLD, 135, 29, 19, 8,
WC_ENTRYFIELD, ES_CENTER | ES_MARGIN | ES_READONLY | WS_TABSTOP | WS_VISIBLE | ES_READONLY
CONTROL "OK", DID_OK, 9, 7, 65, 14,
WC_BUTTON, BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
END
END
DLGTEMPLATE IDLG_TMEFMT LOADONCALL MOVEABLE DISCARDABLE
BEGIN
DIALOG "Time Format", IDLG_TMEFMT, 91, 78, 191, 76,
FS_NOBYTEALIGN | FS_DLGBORDER | WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS, FCF_TITLEBAR
BEGIN
CONTROL "12h (AM/PM)", TMEFMT12HRDB, 10, 59, 104, 10,
WC_BUTTON, BS_RADIOBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "HH:MM PM", TMEFMT12HSTX, 120, 58, 60, 10,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "24h", TMEFMT24HRDB, 10, 45, 104, 10,
WC_BUTTON, BS_RADIOBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "HH:MM", TMEFMT24HSTX, 120, 44, 60, 10,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "Time separator :", TMEFMTSEPSTX, 9, 29, 104, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL ":", TMEFMTSEPFLD, 135, 29, 19, 8,
WC_ENTRYFIELD, ES_CENTER | ES_MARGIN | ES_READONLY | WS_TABSTOP | WS_VISIBLE | ES_READONLY
CONTROL "OK", DID_OK, 9, 7, 65, 14,
WC_BUTTON, BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
END
END
DLGTEMPLATE IDLG_NUMFMT LOADONCALL MOVEABLE DISCARDABLE
BEGIN
DIALOG "Number Format", IDLG_NUMFMT, 107, 72, 168, 81,
FS_NOBYTEALIGN | FS_DLGBORDER | WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS, FCF_TITLEBAR
BEGIN
CONTROL "Decimal separator :", NUMFMTDECSTX, 9, 47, 104, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL ".", NUMFMTDECFLD, 135, 47, 19, 8,
WC_ENTRYFIELD, ES_CENTER | ES_MARGIN | ES_READONLY | WS_TABSTOP | WS_VISIBLE | ES_READONLY
CONTROL "OK", DID_OK, 9, 6, 65, 14,
WC_BUTTON, BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
CONTROL "Thousands separator :", NUMFMTTHSSTX, 9, 64, 104, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL ",", NUMFMTTHSFLD, 135, 64, 19, 8,
WC_ENTRYFIELD, ES_CENTER | ES_MARGIN | ES_READONLY | WS_TABSTOP | WS_VISIBLE | ES_READONLY
CONTROL "Sample :", NUMFMTSMPSTX, 9, 30, 80, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "Error", NUMFMTSMPFLD, 93, 30, 61, 8,
WC_ENTRYFIELD, ES_CENTER | ES_MARGIN | ES_READONLY | WS_TABSTOP | WS_VISIBLE | ES_READONLY
END
END
DLGTEMPLATE IDLG_CURFMT LOADONCALL MOVEABLE DISCARDABLE
BEGIN
DIALOG "Currency Format", IDLG_CURFMT, 96, 59, 192, 102,
FS_NOBYTEALIGN | FS_DLGBORDER | WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS, FCF_TITLEBAR
BEGIN
CONTROL "Prefix", CURFMTPFXRDB, 137, 57, 54, 10,
WC_BUTTON, BS_RADIOBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "Suffix", CURFMTSFXRDB, 137, 43, 54, 10,
WC_BUTTON, BS_RADIOBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "Currency symbol :", CURFMTSYMSTX, 7, 88, 98, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "$", CURFMTSYMFLD, 146, 88, 35, 8,
WC_ENTRYFIELD, ES_CENTER | ES_MARGIN | ES_READONLY | WS_TABSTOP | WS_VISIBLE | ES_READONLY
CONTROL "OK", DID_OK, 8, 7, 65, 14,
WC_BUTTON, BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
CONTROL "Intervening space", CURFMTISPCHK, 8, 57, 129, 10,
WC_BUTTON, BS_CHECKBOX | WS_TABSTOP | WS_VISIBLE
CONTROL "Leading zeros", CURFMTLZRCHK, 8, 43, 129, 10,
WC_BUTTON, BS_CHECKBOX | WS_TABSTOP | WS_VISIBLE
CONTROL "Decimal digits :", CURFMTDGTSTX, 7, 73, 98, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "0", CURFMTDGTFLD, 146, 73, 35, 8,
WC_ENTRYFIELD, ES_CENTER | ES_MARGIN | ES_READONLY | WS_TABSTOP | WS_VISIBLE | ES_READONLY
CONTROL "Sample :", CURFMTSMPSTX, 7, 28, 87, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "Error", CURFMTSMPFLD, 102, 28, 79, 8,
WC_ENTRYFIELD, ES_CENTER | ES_MARGIN | ES_READONLY | WS_TABSTOP | WS_VISIBLE | ES_READONLY
END
END
ACCELTABLE ID_CTYINF
BEGIN
VK_F3, IDM_S_EXIT, VIRTUALKEY
END