class ProductInventoryHelpHtmlWnd extends UICommonAPI;

var WindowHandle Me;
var TextureHandle texBack;
var HtmlHandle htmlViewerProductInventoryHelp;

function OnRegisterEvent()
{
	//RegisterEvent(  );
}

function OnLoad()
{
	SetClosingOnESC();

	Initialize();
	Load();
}

function Initialize()
{
	Me = GetWindowHandle( "ProductInventoryHelpHtmlWnd" );
	texBack = GetTextureHandle( "ProductInventoryHelpHtmlWnd.texBack" );
	htmlViewerProductInventoryHelp = GetHtmlHandle( "ProductInventoryHelpHtmlWnd.htmlViewerProductInventoryHelp" );
}

function OnShow()
{
}

function Load()
{

}

function ShowHelp(string strPath)
{
	if(Len(strPath)>0)
	{
		htmlViewerProductInventoryHelp.LoadHtml(strPath);

		Me.ShowWindow();
		Me.SetFocus();
	}
}

/**
 * 윈도우 ESC 키로 닫기 처리 
 * "Esc" Key
 ***/
function OnReceivedCloseUI()
{
	Me.HideWindow();
}
