LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
#pragma code_page(437)
// **********************************************************************************
IDM_MAINMENU MENU
BEGIN
	POPUP "&File"
	BEGIN
		MENUITEM "&Load\tCtrl+L",				IDM_LOAD
		MENUITEM "&Save\tCtrl+S",				IDM_SAVE, GRAYED
		MENUITEM SEPARATOR
		MENUITEM "E&xit\tAlt+X",				IDM_EXIT
	END
	POPUP "&Operation"
	BEGIN
		POPUP "&Interface"
		BEGIN
			MENUITEM "&Open",					IDM_IF_OPEN
			MENUITEM "&Close",					IDM_IF_CLOSE, GRAYED
		END
		POPUP "&Connection"						GRAYED
		BEGIN
			MENUITEM "&Open",					IDM_CON_OPEN, GRAYED
			MENUITEM "&Close",					IDM_CON_CLOSE, GRAYED
			MENUITEM "&Modify",					IDM_CON_MODIFY, GRAYED
			MENUITEM "Co&nnect",				IDM_CONNECT, GRAYED
			MENUITEM "&Disconnect",				IDM_DISCONNECT, GRAYED
		END
		MENUITEM "&Partners",					IDM_PARTNERS, GRAYED
		MENUITEM "&Bus parameters",				IDM_BUSPARS, GRAYED
		MENUITEM SEPARATOR
		MENUITEM "CPU State",					IDM_CPU_STATE, GRAYED
		MENUITEM "CPU Start",					IDM_CPU_START, GRAYED
		MENUITEM "CPU Stop",					IDM_CPU_STOP, GRAYED
		MENUITEM SEPARATOR
		MENUITEM "Get clock",					IDM_GETCLOCK, GRAYED
		MENUITEM "Set clock",					IDM_SETCLOCK, GRAYED
		MENUITEM SEPARATOR
		MENUITEM "Login",						IDM_LOGIN, GRAYED
		MENUITEM "Logout",						IDM_LOGOUT, GRAYED
		MENUITEM SEPARATOR
		MENUITEM "Read\tCtrl+R",				IDM_READ, GRAYED
		MENUITEM "Write\tCtrl+W",				IDM_WRITE, GRAYED
	END
	POPUP "&Extras"
	BEGIN
		POPUP "&Font"
		BEGIN
			MENUITEM "Small",					IDM_FONTSMALL
			MENUITEM "Normal",					IDM_FONTNORMAL, CHECKED
			MENUITEM "Large",					IDM_FONTLARGE
		END
		MENUITEM SEPARATOR
		MENUITEM "&About\t?",					IDM_ABOUT
	END
END
// **********************************************************************************
IDA_MAINACCEL ACCELERATORS MOVEABLE PURE 
BEGIN
	"L",		IDM_LOAD,			VIRTKEY, CONTROL, NOINVERT
	"S",		IDM_SAVE,			VIRTKEY, CONTROL, NOINVERT
	"R",		IDM_READ,			VIRTKEY, CONTROL, NOINVERT
	"W",		IDM_WRITE,			VIRTKEY, CONTROL, NOINVERT
	"?",		IDM_ABOUT,			ASCII,  NOINVERT
	"X",		IDM_EXIT,			VIRTKEY, ALT, NOINVERT
END
// **********************************************************************************
IDD_OPENIF DIALOGEX 0, 0, 135, 65
STYLE DS_MODALFRAME | WS_POPUP | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU
CAPTION "Interface select"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
	CONTROL			"TCP", IDC_IF_TCP, WC_BUTTON, BS_AUTORADIOBUTTON, 10, 10, 50, 12
	CONTROL			"S7OLINE", IDC_IF_ONLINE, WC_BUTTON, BS_AUTORADIOBUTTON, 10, 25, 50, 12
	CONTROL			"CP_L2_1", IDC_IF_CP_L2_1, WC_BUTTON, BS_AUTORADIOBUTTON, 75, 10, 50, 12
	CONTROL			"CP_L2_2", IDC_IF_CP_L2_2, WC_BUTTON, BS_AUTORADIOBUTTON, 75, 25, 50, 12
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 40, 125, 1
	DEFPUSHBUTTON	"&OK", IDOK, 10, 45, 50, 15
	PUSHBUTTON		"&Cancel", IDCANCEL, 75, 45, 50, 15
END
// **********************************************************************************
IDD_OPENCON DIALOGEX 0, 0, 180, 100
STYLE DS_MODALFRAME | WS_POPUP | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU
CAPTION "PLC connection"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
	LTEXT			"&MPI/PB :", IDC_CON_MPI_LBL, 5, 10, 30, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_CON_MPI_VAL, 35, 10, 25, 12
	CONTROL			"", IDC_CON_MPI_UD, UPDOWN_CLASS, UDS_ALIGNRIGHT, 35, 10, 10, 12
	LTEXT			"&IP :", IDC_CON_IP_LBL, 70, 10, 15, 12, SS_CENTERIMAGE
    CONTROL         "", IDC_CON_IP_VAL, WC_IPADDRESS, WS_TABSTOP, 85, 10, 90, 12
	LTEXT			"&Timeout :", IDC_CON_TOUT_LBL, 5, 30, 30, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_CON_TOUT_VAL, 35, 30, 35, 12
	CONTROL			"", IDC_CON_TOUT_UD, UPDOWN_CLASS, UDS_ALIGNRIGHT, 35, 30, 10, 12
	RTEXT			"msec", IDC_STATIC, 70, 30, 20, 12, SS_CENTERIMAGE
	LTEXT			"&Rack :", IDC_CON_RACK_LBL, 125, 30, 25, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_CON_RACK_VAL, 150, 30, 25, 12
	CONTROL			"", IDC_CON_RACK_UD, UPDOWN_CLASS, UDS_ALIGNRIGHT, 150, 30, 10, 12
	LTEXT			"&Name :", IDC_CON_NAME_LBL, 5, 50, 25, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_CON_NAME_VAL, 30, 50, 95, 12, ES_AUTOHSCROLL
	LTEXT			"&Slot :", IDC_CON_SLOT_LBL, 130, 50, 20, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_CON_SLOT_VAL, 150, 50, 25, 12
	CONTROL			"", IDC_CON_SLOT_UD, UPDOWN_CLASS, UDS_ALIGNRIGHT, 150, 50, 10, 12
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 70, 170, 1
	DEFPUSHBUTTON	"&OK", IDOK, 25, 80, 50, 15
	PUSHBUTTON		"&Cancel", IDCANCEL, 105, 80, 50, 15
END
// **********************************************************************************
IDD_CPUSTART DIALOGEX 0, 0, 175, 50
STYLE DS_MODALFRAME | WS_POPUP | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU
CAPTION "Start CPU"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
	CONTROL			"Warm Restart", IDC_WARMSTART, WC_BUTTON, BS_AUTORADIOBUTTON, 10, 10, 70, 12
	CONTROL			"Cold Restart", IDC_COLDSTART, WC_BUTTON, BS_AUTORADIOBUTTON, 95, 10, 70, 12
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 25, 165, 1
	DEFPUSHBUTTON	"&OK", IDOK, 30, 30, 50, 15
	PUSHBUTTON		"&Cancel", IDCANCEL, 95, 30, 50, 15
END
// **********************************************************************************
IDD_SETCLOCK DIALOGEX 0, 0, 140, 80
STYLE DS_MODALFRAME | WS_POPUP | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU
CAPTION "Set clock"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
	LTEXT			"PLC :", IDC_STATIC, 10, 10, 20, 12, SS_CENTERIMAGE
	CONTROL			"", IDC_CLK_PLCDATE, DATETIMEPICK_CLASS, DTS_SHORTDATEFORMAT | WS_TABSTOP, 30, 10, 50, 12
	CONTROL			"", IDC_CLK_PLCTIME, DATETIMEPICK_CLASS, DTS_RIGHTALIGN | DTS_UPDOWN | DTS_TIMEFORMAT | WS_TABSTOP, 90, 10, 40, 12
	LTEXT			"PC :", IDC_STATIC, 10, 25, 20, 12, SS_CENTERIMAGE
	CONTROL			"", IDC_CLK_PCDATE, DATETIMEPICK_CLASS, DTS_SHORTDATEFORMAT | WS_TABSTOP, 30, 25, 50, 12
	CONTROL			"", IDC_CLK_PCTIME, DATETIMEPICK_CLASS, DTS_RIGHTALIGN | DTS_UPDOWN | DTS_TIMEFORMAT | WS_TABSTOP, 90, 25, 40, 12
	CONTROL			"&Take from PC", IDC_CLK_PCLOCAL, WC_BUTTON, BS_AUTOCHECKBOX | BS_LEFT | BS_VCENTER | WS_TABSTOP, 10, 40, 60, 12
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 55, 150, 1
	DEFPUSHBUTTON	"&OK", IDOK, 10, 60, 50, 15
	PUSHBUTTON		"&Cancel", IDCANCEL, 80, 60, 50, 15
END
// **********************************************************************************
IDD_LOGIN DIALOGEX 0, 0, 130, 50
STYLE DS_MODALFRAME | WS_POPUP | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU
CAPTION "Session login"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
	LTEXT			"&Password :", IDC_LOGIN_LBL, 15, 10, 50, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_LOGIN_PWD, 65, 10, 50, 12
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 25, 200, 1
	DEFPUSHBUTTON	"&OK", IDOK, 10, 30, 50, 15
	PUSHBUTTON		"&Cancel", IDCANCEL, 70, 30, 50, 15
END
// **********************************************************************************
IDD_RW_VARSEL DIALOGEX 0, 0, 215, 65
STYLE DS_MODALFRAME | WS_POPUP | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU
CAPTION "Select variable"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
	LTEXT			"Type :", IDC_RW_TYPE_LBL, 10, 10, 25, 12, SS_CENTERIMAGE
	COMBOBOX		IDC_RW_TYPE, 35, 10, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
	LTEXT			"Area :", IDC_RW_AREA_LBL, 90, 10, 20, 12, SS_CENTERIMAGE
	COMBOBOX		IDC_RW_AREA, 110, 10, 40, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
	LTEXT			"DB :", IDC_RW_DBNUM_LBL, 155, 10, 15, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_RW_DBNUM_VAL, 170, 10, 35, 12
	CONTROL			"", IDC_RW_DBNUM_UD, UPDOWN_CLASS, UDS_ALIGNRIGHT, 185, 10, 10, 12
	LTEXT			"Address :", IDC_RW_ADDRESS_LBL, 10, 25, 35, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_RW_ADDRESS_VAL, 50, 25, 35, 12
	CONTROL			"", IDC_RW_ADDRESS_UD, UPDOWN_CLASS, UDS_ALIGNRIGHT, 45, 25, 10, 12
	LTEXT			"Bit :", IDC_RW_BIT_LBL, 95, 25, 15, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_RW_BIT_VAL, 110, 25, 20, 12
	CONTROL			"", IDC_RW_BIT_UD, UPDOWN_CLASS, UDS_ALIGNRIGHT, 110, 25, 10, 12
	LTEXT			"Count :", IDC_RW_COUNT_LBL, 145, 25, 25, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_RW_COUNT_VAL, 170, 25, 35, 12
	CONTROL			"", IDC_RW_COUNT_UD, UPDOWN_CLASS, UDS_ALIGNRIGHT, 170, 25, 10, 12
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 40, 205, 1
	DEFPUSHBUTTON	"&OK", IDOK, 35, 45, 50, 15
	PUSHBUTTON		"&Cancel", IDCANCEL, 120, 45, 50, 15
END
// **********************************************************************************
IDD_RW_DLG DIALOGEX 0, 0, 180, 260
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Write variables"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    LISTBOX			IDC_RW_VARLIST, 10, 10, 100, 100, WS_VSCROLL | WS_HSCROLL | WS_TABSTOP | LBS_NOTIFY
    PUSHBUTTON		"&Append", IDC_RW_APPEND, 120, 10, 50, 15
    PUSHBUTTON		"&Insert", IDC_RW_INSERT, 120, 30, 50, 15
    PUSHBUTTON		"&Modify", IDC_RW_MODIFY, 120, 50, 50, 15
    PUSHBUTTON		"&Delete", IDC_RW_DELETE, 120, 70, 50, 15
    LISTBOX			IDC_RW_VALLIST, 10, 120, 160, 100, WS_VSCROLL | WS_HSCROLL | WS_TABSTOP
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 225, 240, 1
    PUSHBUTTON		"&Edit", IDC_RW_EDIT, 15, 230, 40, 15
    DEFPUSHBUTTON	"&OK", IDOK, 70, 230, 40, 15
    PUSHBUTTON		"&Cancel", IDCANCEL, 125, 230, 40, 15
	CONTROL			"", IDC_STATUSBAR, STATUSCLASSNAME, WS_CHILD | WS_VISIBLE, 0, 0, 0, 0
END
// **********************************************************************************
IDD_VIEWDLG DIALOGEX 0, 0, 180, 205
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | WS_SIZEBOX
CAPTION "View variables"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    LISTBOX			IDC_RW_VIEWLIST, 10, 10, 160, 140, WS_VSCROLL | WS_HSCROLL | WS_TABSTOP | LBS_NOTIFY
	CONTROL			"&Update", IDC_RW_UPDATE, WC_BUTTON, BS_AUTOCHECKBOX | BS_LEFT | BS_VCENTER | WS_TABSTOP, 10, 155, 40, 12
	COMBOBOX		IDC_RW_UPDCYCLE, 50, 155, 40, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
	CONTROL			"&Hide parent", IDC_RW_HIDEPARENT, WC_BUTTON, BS_AUTOCHECKBOX | BS_LEFT | BS_VCENTER | WS_TABSTOP, 110, 155, 60, 12
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 170, 170, 1
    DEFPUSHBUTTON	"&Close", IDCANCEL, 65, 175, 50, 15
	CONTROL			"", IDC_STATUSBAR, STATUSCLASSNAME, WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP, 0, 0, 0, 0
END
// **********************************************************************************
IDD_RINPDLG DIALOGEX 0, 0, 185, 50
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit variable"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
	LTEXT			"&Name :", IDC_INP_NAME_LBL, 5, 10, 25, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_INP_NAME_VAL, 30, 10, 95, 12, ES_AUTOHSCROLL
	COMBOBOX		IDC_INP_TYPE, 130, 10, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 25, 175, 1
	DEFPUSHBUTTON	"&OK", IDOK, 30, 30, 50, 15
	PUSHBUTTON		"&Cancel", IDCANCEL, 105, 30, 50, 15
END
// **********************************************************************************
IDD_WINPDLG DIALOGEX 0, 0, 160, 80
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit variable"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
	CONTROL			"", IDC_INP_DATE, DATETIMEPICK_CLASS, DTS_SHORTDATEFORMAT | WS_TABSTOP, 10, 10, 50, 12
	CONTROL			"", IDC_INP_TIME, DATETIMEPICK_CLASS, DTS_RIGHTALIGN | DTS_UPDOWN | DTS_TIMEFORMAT | WS_TABSTOP, 110, 10, 40, 12
	EDITTEXT		IDC_INP_VAL, 10, 25, 85, 12, ES_AUTOHSCROLL
	CONTROL			"", IDC_INP_UD, UPDOWN_CLASS, UDS_ALIGNRIGHT, 10, 25, 10, 12
	COMBOBOX		IDC_INP_TYPE, 100, 25, 50, 120, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
	LTEXT			"&Name :", IDC_INP_NAME_LBL, 20, 40, 25, 12, SS_CENTERIMAGE
	EDITTEXT		IDC_INP_NAME_VAL, 45, 40, 95, 12, ES_AUTOHSCROLL
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 55, 150, 1
	DEFPUSHBUTTON	"&OK", IDOK, 20, 60, 50, 15
	PUSHBUTTON		"&Cancel", IDCANCEL, 90, 60, 50, 15
END
// **********************************************************************************
IDD_LOAD_MODE DIALOGEX 0, 0, 250, 65
STYLE DS_MODALFRAME | WS_POPUP | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU
CAPTION "Select PLC"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
	CONTROL			"Old", IDC_LOAD_USEOLD, WC_BUTTON, BS_AUTORADIOBUTTON, 10, 10, 230, 12
	CONTROL			"New", IDC_LOAD_USENEW, WC_BUTTON, BS_AUTORADIOBUTTON, 10, 25, 230, 12
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 40, 240, 1
	DEFPUSHBUTTON	"&OK", IDOK, 50, 45, 50, 15
	PUSHBUTTON		"&Cancel", IDCANCEL, 150, 45, 50, 15
END
// **********************************************************************************
// Dialog
IDD_ABOUTBOX DIALOGEX 0, 0, 160, 80
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About S7ComTest"
FONT 10, "MS Shell Dlg", 400, 0, 0x1
BEGIN
	ICON			IDI_MAINICON, IDC_STATIC, 5, 5, 20, 20, SS_REALSIZEIMAGE
	CTEXT			FILE_VERSION_ABOUT, IDC_TRANSTXT1, 25, 5, 130, 20, SS_CENTERIMAGE, WS_EX_TRANSPARENT
	CTEXT			"Test program for S7 communication", IDC_TRANSTXT2, 5, 30, 150, 12, SS_CENTERIMAGE
	CTEXT			"(c) Karoly Saly 2021", IDC_TRANSTXT3, 5, 45, 150, 12
	CONTROL			"", IDC_SEPARATOR, WC_STATIC, SS_OWNERDRAW, 5, 60, 150, 1
	DEFPUSHBUTTON	"O&k", IDOK, 65, 64, 40, 12, WS_GROUP
END
// **********************************************************************************
// Version
VS_VERSION_INFO VERSIONINFO
FILEVERSION FILE_VERSION
PRODUCTVERSION FILE_VERSION
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x9L
#else
FILEFLAGS 0x8L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
	BLOCK "StringFileInfo"
	BEGIN
		BLOCK "040e04b0"
		BEGIN
			VALUE "Comments", "S7ComTest"
			VALUE "CompanyName", "KarMaPet"
			VALUE "FileDescription", "S7ComTest"
			VALUE "FileVersion", FILE_VERSION_STR
			VALUE "InternalName", "S7ComTest"
			VALUE "LegalCopyright", "Copyright (C) Karoly Saly 2021."
			VALUE "LegalTrademarks", "Karoly Saly"
			VALUE "OriginalFilename", "S7ComTest.exe"
			VALUE "ProductName", "S7ComTest"
			VALUE "ProductVersion", FILE_VERSION_STR
		END
	END
	BLOCK "VarFileInfo"
	BEGIN
		VALUE "Translation", 0x40e, 1200
	END
END
// **********************************************************************************
STRINGTABLE
BEGIN
	IDM_VM_DEF					"Default"
	IDM_VM_BIN					"Bin"
	IDM_VM_HEX					"Hex"
	IDM_VM_DEC					"Dec+/-"
	IDM_VM_UDEC					"Dec"
	IDM_VM_CHAR					"Char"
	IDM_VM_REAL					"Real"
	IDM_VM_TIME					"Time"
	IDM_VM_DT					"Date/Time"
END

STRINGTABLE
BEGIN
	IDS_APPCLASS				"S7COMTEST"
	IDS_APPTITLE				"Test program for S7 communication"
	IDS_READTITLE				"Read variables"
	IDS_WRITETITLE				"Write variables"
	IDS_VIEWTITLE				"View variables"

	IDS_ERR_CLASS				"Can't create class!"
	IDS_ERR_MAINWIN				"Can't create main window!"
	IDS_ERR_CHILDWIN			"Can't create edit window!"
	IDS_ERR_STATUSBAR			"Can't create statusbar!"
	IDS_MSGERRORTITLE			"S7ComTest error"
	IDS_EXCEPTIONTITLE			"S7ComTest fatal error"
END
