// File:		SI_YT_4.inc
// Product:	SIMATIC PDM
// Description:	Trendviewer #4
//  $Revision:   1.2  $	
//  $Date:   Nov 7 2003 10:48:30  $
// Copyright (C) Siemens AG (1998 - 2003). All Rights Reserved



// Parameter: YT41_VALUE,  YT41_URV,  YT41_LRV,  YT41_LABEL
// Parameter: YT42_VALUE,  YT42_URV,  YT42_LRV,  YT42_LABEL
// Parameter: YT43_VALUE,  YT43_URV,  YT43_LRV,  YT43_LABEL
// Parameter: YT44_VALUE,  YT44_URV,  YT44_LRV,  YT44_LABEL



MENU OnlineWindow_yt_4
{
	LABEL	YT41_LABEL;
	ITEMS
	{
		Page_process_yt_4
	}
}

MENU Page_process_yt_4
{
	LABEL	[menu_yt_diagram];
	ITEMS
	{

#ifdef YT41_LABEL
		Val_YT41,
#endif

#ifdef YT42_LABEL
		Val_YT42,
#endif

#ifdef YT43_LABEL
		Val_YT43,
#endif

#ifdef YT44_LABEL
		Val_YT44,
#endif

		OCX_out_display_yt_4
	}
}

#ifdef YT41_LABEL
MENU Val_YT41
{
	LABEL	YT41_LABEL;
	STYLE	"OCX_DYNAMIC_YT";
	ITEMS
	{
		YT41_VALUE	(READ_ONLY)
	}
}
#endif

#ifdef YT42_LABEL
MENU Val_YT42
{
	LABEL	YT42_LABEL;
	STYLE	"OCX_DYNAMIC_YT";
	ITEMS
	{
		YT42_VALUE	(READ_ONLY)
	}
}
#endif

#ifdef YT43_LABEL
MENU Val_YT43
{
	LABEL	YT43_LABEL;
	STYLE	"OCX_DYNAMIC_YT";
	ITEMS
	{
		YT43_VALUE	(READ_ONLY)
	}
}
#endif

#ifdef YT44_LABEL
MENU Val_YT44
{
	LABEL	YT44_LABEL;
	STYLE	"OCX_DYNAMIC_YT";
	ITEMS
	{
		YT44_VALUE	(READ_ONLY)
	}
}
#endif

MENU OCX_out_display_yt_4					// OCX-Control 2
{
	LABEL	[menu_yt_diagram] ;
	STYLE	"PDMTVPROXY.PDMTVProxyCtrl.1";	// Name, unter dem das OCX in Windows registriert ist
	ITEMS
	{
		OCX_ProfilNum_yt_4,					// Profil-Nummer

#ifdef YT41_LABEL
		OCX_out_display_41					// 1. Kurve
#endif

#ifdef YT42_LABEL
		OCX_out_display_42,					// 2. Kurve
#endif

#ifdef YT43_LABEL
		OCX_out_display_43					// 3. Kurve
#endif

#ifdef YT44_LABEL
		OCX_out_display_44					// 4. Kurve
#endif

		OCX_UserSettings_yt_4				// Für Speicherung von Settings, die vom Benutzer zur Laufzeit geändert wurden
	}
}

#ifdef YT41_LABEL
MENU OCX_out_display_41						// 1. Kurve im OCX-Control yt
{
	LABEL	YT41_LABEL;
	STYLE	"OCX_DYNAMIC_YT";
	ITEMS
	{
		YT41_VALUE	(READ_ONLY),
		YT41_LRV	(READ_ONLY),
		YT41_URV	(READ_ONLY)
	}
}
#endif

#ifdef YT42_LABEL
MENU OCX_out_display_42						// 2. Kurve im OCX-Control yt
{
	LABEL	YT42_LABEL;
	STYLE	"OCX_DYNAMIC_YT";
	ITEMS
	{
		YT42_VALUE	(READ_ONLY),
		YT42_LRV	(READ_ONLY),
		YT42_URV	(READ_ONLY)
	}
}
#endif

#ifdef YT43_LABEL
MENU OCX_out_display_43						// 3. Kurve im OCX-Control yt
{
	LABEL	YT43_LABEL;
	STYLE	"OCX_DYNAMIC_YT";
	ITEMS
	{
		YT43_VALUE	(READ_ONLY),
		YT43_LRV	(READ_ONLY),
		YT43_URV	(READ_ONLY)
	}
}
#endif

#ifdef YT44_LABEL
MENU OCX_out_display_44						// 1. Kurve im OCX-Control yt
{
	LABEL	YT44_LABEL;
	STYLE	"OCX_DYNAMIC_YT";
	ITEMS
	{
		YT44_VALUE	(READ_ONLY),
		YT44_LRV	(READ_ONLY),
		YT44_URV	(READ_ONLY)
	}
}
#endif

VARIABLE OCX_ProfilNum_yt_4					// Profil-Variable für OCX yt
{
	LABEL	"ProfilID";
	STYLE	"OCX_PROPERTY";
	CLASS	LOCAL;
	TYPE	INTEGER(2)
	{
		DEFAULT_VALUE	1004;				// Profil 1004 : y-t mit Farbwahl
	}
	HANDLING    READ;
}

VARIABLE OCX_UserSettings_yt_4				// Für Speicherung von Settings, die vom Benutzer zur Laufzeit geändert wurden
{
	LABEL	"UserSettings";
	STYLE	"OCX_PROPERTY";
	CLASS	LOCAL;
	TYPE	ASCII (1000)
	{
		DEFAULT_VALUE	"";
	}
	HANDLING	READ & WRITE;
}

