2025-04-27 07:49:33 -04:00

278 lines
7.1 KiB
HTML

<HTML>
<!--
Copyright (c) 2000 Microsoft Corporation
-->
<HEAD>
<TITLE>Remote Assistance</TITLE>
<meta http-equiv="MSThemeCompatible" content="Yes">
<LINK id="UI_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="../../Css/rc.css">
<script LANGUAGE="Javascript" >
var g_oSAFRemoteAssistanceHelper = null;
/*++
Control handling routines
--*/
//
// Security Check
//
function DoLoad()
{
var L_ERRACCESSDENIED_MSG = "Directly launching this page is not allowed. ";
if( null == parent.TraceFunctEnter )
{
idBody.style.visibility = "hidden";
alert( L_ERRACCESSDENIED_MSG );
return;
}
}
//
// Helper_InitializeStatus: Stuff done when the RCControl page is loaded
//
function Helper_InitializeStatus()
{
parent.TraceFunctEnter("Helper_InitializeStatus");
try
{
if( parent.g_oSAFRemoteAssistanceHelper != null)
{
//
// Docked
//
g_oSAFRemoteAssistanceHelper = parent.g_oSAFRemoteAssistanceHelper;
}
Helper_UpdateStatus( "VIEW Only" );
btnActual.focus();
}
catch(error)
{
parent.FatalError( parent.L_ERRFATAL_MSG, error );
}
parent.TraceFunctLeave();
return;
}
var g_parentcols = 0;
//
// Helper_HideChat: Toggles the chat box controls
//
function Helper_HideChat()
{
parent.TraceFunctEnter("Helper_HideChat");
try
{
if( parent.frames.idFrameScreen.g_oSAFRemoteAssistanceHelper.m_bConnected == false )
{
//
// Disconnected
//
parent.TraceFunctLeave();
return;
}
if(false == parent.frames.idFrameTools.g_oSAFRemoteAssistanceHelper.m_bChatBoxHidden)
{
//
// Chatbox is visible. Hide it
//
g_parentcols = parent.idFrameSet2.cols;
parent.idFrameSet2.cols = "0%,*";
parent.idFrameTools.btnSendChat.className="stySubmitButton DisplayNone MaxHeight";
parent.frames.idFrameChat.Helper_HideChatWindow();
parent.frames.idFrameStatus.idchatimg.src = "../Common/show-chat.gif";
parent.frames.idFrameStatus.btnHideChat.innerText = " Show Chat ";
parent.frames.idFrameStatus.idchatimg.title = "Show Chat Window";
parent.frames.idFrameStatus.btnHideChat.title = "Show Chat Window";
parent.frames.idFrameTools.g_oSAFRemoteAssistanceHelper.m_bChatBoxHidden = true;
}
else
{
//
// Chatbox is Hidden. Show it
//
parent.frames.idFrameChat.Helper_ShowChatWindow();
parent.idFrameTools.btnSendChat.className="stySubmitButton Display MaxHeight";
parent.frames.idFrameStatus.idchatimg.src = "../Common/hide-chat.gif";
parent.frames.idFrameStatus.btnHideChat.innerText = " Hide Chat ";
parent.frames.idFrameStatus.idchatimg.title = "Hide Chat Window";
parent.frames.idFrameStatus.btnHideChat.title = "Hide Chat Window";
parent.idFrameSet2.cols = g_parentcols;
parent.frames.idFrameTools.g_oSAFRemoteAssistanceHelper.m_bChatBoxHidden = false;
}
}
catch( error )
{
parent.FatalError( parent.L_ERRFATAL_MSG, error );
}
parent.TraceFunctLeave();
return;
}
var g_szStatusMsg = null;
//
// Helper_UpdateStatus: Update the status bar
//
function Helper_UpdateStatus( szStatusMsg )
{
parent.TraceFunctEnter("Helper_UpdateStatus");
try
{
idStatus.innerHTML = "&nbsp;&nbsp;<strong>Status: </strong>" + szStatusMsg ;
g_szStatusMsg = szStatusMsg;
}
catch( error )
{
parent.FatalError( parent.L_ERRFATAL_MSG, error );
}
parent.TraceFunctLeave();
}
//
// Helper_UpdateMode: Update the status bar
//
function Helper_UpdateMode( fMode )
{
parent.TraceFunctEnter("Helper_UpdateMode");
try
{
if( 1 == fMode )
{
idStatus.innerHTML = "&nbsp;&nbsp;<strong>Status: </strong>" + g_szStatusMsg + " [Actual Size]" ;
btnScale.disabled = false;
btnActual.disabled = true;
}
else if( 1 == fMode )
{
idStatus.innerHTML = "&nbsp;&nbsp;<strong>Status: </strong>" + g_szStatusMsg + " [Scaled to Window]" ;
btnScale.disabled = true;
btnActual.disabled = false;
}
else
{
idStatus.innerHTML = "&nbsp;&nbsp;<strong>Status: </strong>" + g_szStatusMsg + " [Actual Size]" ;
btnScale.disabled = false;
btnActual.disabled = true;
}
}
catch( error )
{
parent.FatalError( parent.L_ERRFATAL_MSG, error );
}
parent.TraceFunctLeave();
}
function ScaleToWindow()
{
parent.TraceFunctEnter("ScaleToWindow");
try
{
parent.frames.idFrameScreen.g_oSAFRemoteAssistanceHelper.m_oSAFRemoteDesktopClient.EnableSmartSizing = true;
Helper_UpdateMode( 1 );
var obj = new ActiveXObject("Rcbdyctl.Setting");
obj.SetProfileString("Scaling",1);
btnActual.focus();
}
catch( error )
{
parent.FatalError( parent.L_ERRFATAL_MSG, error );
}
parent.TraceFunctLeave();
}
function ActualSize()
{
parent.TraceFunctEnter("ActualSize");
try
{
parent.frames.idFrameScreen.g_oSAFRemoteAssistanceHelper.m_oSAFRemoteDesktopClient.EnableSmartSizing = false;
Helper_UpdateMode( 0 );
var obj = new ActiveXObject("Rcbdyctl.Setting");
obj.SetProfileString("Scaling", 0);
btnScale.focus();
}
catch( error )
{
parent.FatalError( parent.L_ERRFATAL_MSG, error );
}
parent.TraceFunctLeave();
}
function Help()
{
parent.TraceFunctEnter("Help");
try
{
parent.LaunchHelp(0);
}
catch( error )
{
parent.FatalError( parent.L_ERRFATAL_MSG, error );
}
parent.TraceFunctLeave();
}
function document.onkeydown()
{
if (window.event.keyCode==8)
{
window.event.returnValue=false;
}
}
</script>
</head>
<body id="idBody" scroll="no" class="Overflow" tabindex=-1 onLoad='DoLoad()'>
<TABLE border=0 name="idControlPanel" class="styRAStatusBarTable Border" cellpadding=0 cellspacing=0>
<tr id="idStatusBar">
<TD class="Cursor Border Overflow" nowrap>
<IMG id=idchatimg name=idchatimg tabindex=1 onkeydown="if (event.keyCode==13){idchatimg.onclick();}" onclick="btnHelp.focus();idchatimg.focus();Helper_HideChat();" title="hide chat window" src="../Common/hide-chat.gif" class="vAlign">
</TD>
<TD class="Cursor vAlign styRAStatusBarTableTD2 Overflow" title="hide chat window" nowrap>
<font title="hide chat window" class="styText" id="btnHideChat">&nbsp;&nbsp;Hide Chat &nbsp;</font>
</TD>
<td class="Cursor Overflow" > &nbsp;&nbsp;</td>
<TD align="left" class="vAlign styStatus Cursor " class="Overflow" nowrap>
<Span id=idStatus class="styText FontColorBlue"><Strong>&nbsp;&nbsp;&nbsp;&nbsp;Status: </Strong> </Span>
</TD>
<TD align="right" class="vAlign Cursor Border " class="Overflow" nowrap>
<button id='btnScale' onclick="ScaleToWindow()" tabindex=2> <Span class="vAlign styText FontColorBlue">Scale to Window </Span></button>
</TD>
<TD align="right" class="vAlign Cursor Border " class="Overflow" nowrap>
<button id='btnActual' onclick="ActualSize()" tabindex=3> <Span class="vAlign styText FontColorBlue" >Actual Size </Span></button>
</TD>
<TD align="right" class="vAlign Cursor Border " class="Overflow" nowrap>
<button id='btnHelp' onclick="idchatimg.focus();btnHelp.focus();Help();" tabindex=4> <Span class="vAlign styText FontColorBlue" >Help...</Span></button>
</TD>
</Tr>
</TABLE>
</body>
</html>