Windows XP ada file appwiz.cpl...
fungsinya untuk membuka window AddRemove Program...
isi file appwiz.cpl dibuka di notepad
<HTML xmlns:ctls ><HEAD><META content="text/html; charset=iso-8859-1" http-equiv=Content-Type><META http-equiv="MSThemeCompatible" content="Yes"><TITLE ID=ARP>Add or Remove Programs</TITLE> <LINK REL="stylesheet" TYPE="text/css" HREF="arp.css"><STYLE>ctls\:PLACES { behavior: url(places.htc); }ctls\:LISTBOX { behavior: url(listbox.htc); }ctls\:ACCEL { behavior: url(accel.htc); }.PlacesBar {background-color:threedshadow}.Hide {display:none}.NonClientBackground { background-color: buttonface;}.Header { padding-bottom: 5px;vertical-align: text-top; }.GroupImage { margin-right: 5px;}.GroupDesc {padding-left: 1em;padding-right: 1em;}.AppNameRow {}.AppImageTD {width: 20px; padding: '4px 2px 2px 2px';}.InfoPane { padding-top:4px; vertical-align: top;}.PropLabel {width: 7em;padding-top: 2px;padding-bottom: 2px;padding-right: 3px;text-align: right;}.PropValue {width: 6em;text-align: right;padding-right: 7px;}.AddPropLabel {padding-top: 2px;padding-bottom: 2px;padding-right: 3px;text-align: right;}.AddPropValue {width: 13em;text-align: right;padding-right: 7px;}.ButtonDescPane { padding-top: 5px; padding-bottom: 7px;padding-right: 5px;}.ButtonPane { width: 15em; padding: 5px; text-align: right;}.FakeAnchor {cursor:hand;}#idTblExtendedProps.Focus {color: highlighttext;}</STYLE><SCRIPT LANGUAGE="JavaScript" SRC="preload.js" DEFER></SCRIPT><SCRIPT LANGUAGE="JavaScript">
window.resizeTo(600, 450);
</SCRIPT><HTA:APPLICATION id=idAppARP icon=appwiz.ico applicationName="Windows Add/Remove Programs" version=1.0 singleInstance=yes border=normal borderStyle=normal innerBorder=off sysMenu=yes windowState=Normal selection=off contextMenu=off scroll=off scrollFlat=off Caption=yes ></HEAD> <BODY scroll=no style='margin:0px' onload="Body_OnLoad()"><OBJECT id=idCtlAppsDso classid="clsid:3964D9A0-AC96-11D1-9851-00C04FD91972" style='display:none' ><PARAM name="Sort" value="displayname"></OBJECT> <ctls:PLACES id=idPlaces onSelectItem='Places_OnSelectItem()' onExecItem='Places_OnExecItem()' onComplete='Places_OnComplete()' style='position:absolute;
left:0;
top:0;
right:0;' ><SPAN id=idChangeRemove img=install_lg.gif>Change or Remove Programs</SPAN> <SPAN id=idAdd img=add_lg.gif>Add New Programs</SPAN> <SPAN id=idConfig img=config_lg.gif execItem>Add/Remove Windows Components</SPAN> </ctls:PLACES> <TABLE id=idTblOuter cellspacing=0 cellpadding=0 width=100% height=100% style="border-collapse:collapse;" ><COL id=idColPlaces width=83><THEAD><TR id=idTrHeadMargin_Remove class=Hide><TD class=PlacesBar rowspan=15><IMG id=idImgDummy1 width=83 height=0></TD> <TD width=70%><DIV style='height:11px'></DIV></TD> <TD colspan=4><DIV style='height:11px'></DIV></TD> </TR> <TR id=idTrHead_Remove class=Hide><TD valign=baseline style='padding-left:11px; padding-right:11px; padding-bottom:5px' colspan=4><DIV id=idDivInstalledHeader>Currently installed programs:
</DIV> </TD> <TD id=idTdSort valign=baseline align=right style='padding-right:11px; padding-left:11px; padding-bottom:5px' ><NOBR><ctls:ACCEL id=idLblSort style='top:-.1em' forElem=idSelSortBy>&Sort by:</ctls:ACCEL> <SELECT id=idSelSortBy size="1"><OPTION id=idOptName value="displayname" selected>Name</OPTION> <OPTION id=idOptSize value="size">Size</OPTION> <OPTION id=idOptFreq value="timesused">Frequency Of Use</OPTION> <OPTION id=idOptLastUsed value="lastused">Date Last Used</OPTION> </SELECT> </NOBR> </TD> </TR> <TR id=idTrHeadMargin_Add class=Hide><TD class=PlacesBar rowspan=15><IMG id=idImgDummy2 width=83 height=0></TD> <TD><DIV style='height:11px'></DIV></TD> <TD><DIV style='height:11px'></DIV></TD> <TD width=40><DIV style='height:11px'></DIV></TD> <TD width=3><DIV style='height:11px'></DIV></TD> <TD><DIV style='height:11px'></DIV></TD> </TR> <TR id=idTrHeadCDROM1_Add class=Hide>
<TD id=idLocCDROMHeader class='Header' colspan=5 style='padding-left:11px; padding-right:11px' >Add a program from CD-ROM or floppy disk
</TD> </TR> <TR id=idTrHeadCDROM2_Add class=Hide><TD width=8% style='padding-left:11px; padding-right:11px'><IMG id=idImgCDROM class='GroupImage' src='install_lg.gif' title='' alt='CD-ROM Graphic'></TD> <TD id=idLocCDROMDesc class='GroupDesc' colspan=3 width=80%>To add a program from a CD-ROM or floppy disk, click CD or Floppy.
</TD> <TD id=idTdCDFloppy align=right style='padding-right:11px; padding-left:11px'><BUTTON id=idBtnCDFloppy style='width:9em'><ctls:ACCEL id=idLblCDFloppy forElem=idBtnCDFloppy>CD or &Floppy</ctls:ACCEL> </BUTTON> </TD> </TR> <TR id=idTrHeadInternet1_Add class=Hide><TD class='Header' colspan=5 style='padding-left:11px; padding-right:11px; padding-top:1.5em' ><DIV id=idLocInetHeader>Add programs from Microsoft
</DIV> </TD> </TR> <TR id=idTrHeadInternet2_Add class=Hide><TD style='padding-left:11px; padding-right:11px; width:8%'><IMG id=idImgInet class='GroupImage' src='winupd_lg.gif' title='' alt='Windows Globe Graphic'></TD> <TD id=idLocInetDesc class='GroupDesc' colspan=3 width=80%>To add new Windows features, device drivers, and system updates over
the Internet, click Windows Update.
</TD> <TD id=idTdWindowsUpdate align=right style='padding-right:11px; padding-left:11px'><BUTTON id=idBtnInternet style='width:9em'><ctls:ACCEL id=idLblInternet forElem=idBtnInternet>Windows &Update</ctls:ACCEL> </BUTTON> </TD> </TR> <TR id=idTrHeadPub_Add class=Hide><TD valign=baseline colspan=3 style='padding-left:11px; padding-right:11px; padding-top:1.5em; padding-bottom:3px; width:80%' ><DIV id=idLocPubHeader>Add programs from your network:
</DIV> </TD> <TD valign=baseline colspan=2 align=right style='padding-right:11px; padding-left:11px; padding-top:1.5em; padding-bottom:3px; width:20%'><NOBR><ctls:ACCEL id=idLblCategory style='top:-.1em' forElem=idSelCategory>&Category:</ctls:ACCEL> <SELECT id=idSelCategory size=1><OPTION id=idOptAll value=all>All Categories
</SELECT> </NOBR> <SPAN id=idBindCategories style="display:none"></SPAN> </TD> </TR> <TR id=idTrHeadMargin_Config class=Hide><TD class=PlacesBar rowspan=15><IMG id=idImgDummy3 width=83 height=0></TD> <TD width=8%><DIV style='height:11px'></DIV></TD> <TD width=80% colspan=3><DIV style='height:11px'></DIV></TD> <TD><DIV style='height:11px'></DIV></TD> </TR> <TR id=idTrHeadComponents1_Config class=Hide><TD id=idLocConfigHeader class='Header' colspan=5 style='padding-left:11px'>Add or remove Windows components
</TD> </TR> <TR id=idTrHeadComponents2_Config class=Hide><TD style='padding-left:11px'><IMG id=idImgComponent class='GroupImage' src='install_lg.gif' title='' alt='Computer Graphic'></TD> <TD id=idLocConfigDesc class='GroupDesc' colspan=3>To add or remove a Windows component, such as Internet Information
Services (IIS), click Components.
</TD> <TD style='padding-right:11px; text-align:right'><BUTTON id=idBtnNTOptions><ctls:ACCEL id=idLblNTOptions forElem=idBtnNTOptions>&Components</ctls:ACCEL> </BUTTON> </TD> </TR> <TR id=idTrHeadServices_Config class=Hide><TD colspan=5 valign=baseline style='padding-left:11px; padding-right:11px; padding-top:1.5em; padding-bottom:5px'><DIV id=idLocConfigHeader>Set up services:
</DIV> </TD> </TR> </THEAD> <TBODY><TR id=idTrBody_Remove height=100% class=Hide><TD class=PlacesBar></TD> <TD valign=top colspan=5 style='padding-left:11px; padding-right:11px'><ctls:LISTBOX id=idRemoveListbox onCustomDraw='Remove_OnCustomDraw()' onSetFocus='Remove_OnSetFocus()' defaultSelection=0 autoExpand=true freeze=true templateSource="idRemoveTemplates" ></ctls:LISTBOX> </TD> </TR> <TR id=idTrBody1_Add height=100% class=Hide><TD class=PlacesBar rowspan=3></TD> </TR> <TR id=idTrBody2_Add height=100% class=Hide><TD class=PlacesBar></TD> <TD valign=top colspan=5 style='padding-left:11px; padding-right:11px'><ctls:LISTBOX id=idAddListbox onCustomDraw="Add_OnCustomDraw()" onSetFocus="Add_OnSetFocus()" defaultSelection=0 autoExpand=true freeze=true templateSource="idAddTemplates" ></ctls:LISTBOX> </TD> </TR> <TR id=idTrBody_Config height=100% class=Hide><TD class=PlacesBar></TD> <TD valign=top colspan=5 style='padding-left:11px; padding-right:11px'><ctls:LISTBOX id=idConfigListbox onCustomDraw="Config_OnCustomDraw()" onSetFocus="Config_OnSetFocus()" defaultSelection=0 autoExpand=true freeze=true templateSource="idConfigTemplates" ></ctls:LISTBOX> </TD> </TR> </TBODY> <TFOOT><TR id=idTrFoot_Remove class=Hide><TD class=PlacesBar></TD> <TD id=idRemoveForceX86 valign=center colSpan=2 style='padding-left:11px; padding-right:11px; padding-top:5px' ><INPUT type="checkbox" id=idChkRemoveForcex86 accesskey=b name="forcex86"><ctls:ACCEL id=idLblForce forElem=idChkRemoveForcex86>Emulate &x86 when changing or removing programs</ctls:ACCEL> </TD> </TR> <TR id=idTrFoot_Add class=Hide><TD class=PlacesBar></TD> <TD id=idAddForceX86 valign=center colSpan=5 style='padding-left:11px; padding-right:11px; padding-top:5px' ><INPUT id=idChkAddForcex86 type='checkbox' accesskey=b name="ForceX86"><ctls:ACCEL id=idLblForceX86 forElem=idChkAddForcex86>Emulate &x86 when adding programs</ctls:ACCEL> </TD> </TR> <TR><TD class=PlacesBar></TD> <TD colspan=6><DIV style='height:11px'></DIV></TD> </TR> <TR><TD class='NonClientBackground'></TD> <TD class='NonClientBackground' colspan=3></TD> <TD id=idTdClose class='NonClientBackground' colspan=3 align=right style='height:43px; padding-right:11px; padding-left:11px' ><BUTTON id=idBtnClose style='width:8em'><ctls:ACCEL id=idLblClose forElem=idBtnClose>Cl&ose</ctls:ACCEL> </BUTTON> </TD> </TR> </TFOOT> </TABLE> <SPAN id=idRemoveTemplates style='display:none'><TABLE><TR class=AppNameRow><TD class=AppImageTD><IMG id=idImgRemove datafld="icon" dataformatas="html" hspace=3 align=absmiddle title='' alt='Computer Graphic'></TD> <TD id=idTdDisplayName><SPAN id=idDisplayName datafld="displayname" lbDisplayName nofocusrect></SPAN> </TD> <TD class=PropLabel><SPAN datafld="indexlabel"></SPAN> </TD> <TD class=PropValue><SPAN id=idSpnIndexValue datafld="indexvalue"></SPAN> </TD> </TR> <TR id=idTrInfo lbExpandedRow><TD></TD> <TD id=idTdInfoDesc class=InfoPane>Click here for<SPAN id=idASupportInfo class="FakeAnchor" tabIndex=0 onKeyDown="_OnKeyDownFakeAnchor()" onClick="_OpenSupportInfo();"> <U>support information</U></SPAN>.
</TD> <TD colSpan=2><SPAN id=idSpnExpandedProps datasrc=#idCtlAppsDso.Remove datafld="htmlproperties" dataformatas="html" onClick="_OpenDefinition();"></SPAN> </TD> </TR> <TR id=idTrMultiBtns lbExpandedRow lbDisable><TD></TD> <TD id=idTdMultiDesc class=ButtonDescPane>To change this program or remove it from your computer, click Change or Remove.
</TD> <TD class=ButtonPane colSpan=2><nobr><BUTTON id=idBtnModify style='width:6em'><LABEL id=idLblChange for=idBtnModify accesskey="c"><SPAN>C</SPAN>hange
</LABEL> </BUTTON>  
<BUTTON id=idBtnRemove style='width:6em'><LABEL id=idLblRemove for=idBtnRemove accesskey="r"><SPAN>R</SPAN>emove
</LABEL> </BUTTON> </nobr> </TD> </TR> <TR id=idTrSingleBtns lbExpandedRow><TD></TD> <TD id=idTdSingleDesc class=ButtonDescPane>To change this program or remove it from your computer, click Change/Remove.
</TD> <TD class=ButtonPane colSpan=2><BUTTON id=idBtnBoth><LABEL id=idLblBoth for=idBtnBoth accesskey="c"><SPAN>C</SPAN>hange/Remove
</LABEL> </BUTTON> </TD> </TR> </TABLE> </SPAN> <SPAN id=idAddTemplates style='display:none'><TABLE><TR class=AppNameRow><TD class=AppImageTD><IMG id=idImgAdd src="add.gif" hspace=3 align=absmiddle title='' alt='Graphic'></TD> <TD><SPAN id=idDisplayName datafld="displayname" lbDisplayName nofocusrect></SPAN> </TD> <TD class=PropValue><SPAN id=idIsInstalled datafld="isinstalled"></SPAN> </TD> </TR> <TR id=idTrInfo lbExpandedRow><TD></TD> <TD id=idTdInfoDesc class=InfoPane><SPAN id=idSpnMoreInfo style="display:none">Click here for <SPAN id=idAMoreInfo class="FakeAnchor" tabIndex=0 onKeyDown="_OnKeyDownFakeAnchor()" onClick="_OpenMoreInfo();"> <U>more information</U></SPAN>.</SPAN> </TD> <TD colSpan=2><SPAN id=idSpnAddLaterSchedule datafld="addlaterschedule" dataformatas="html" onClick="_Schedule();"></SPAN> </TD> </TR> <TR id=idTrMultiBtns lbExpandedRow lbDisable><TD></TD> <TD id=idTdMultiDesc class=ButtonDescPane>To add this program, click Add.
</TD> <TD class=ButtonPane colSpan=2><nobr><BUTTON id=idBtnAddLater style='width:8em'><LABEL id=idLblAddLater for=idBtnAddLater accesskey="l">Add <SPAN>L</SPAN>ater...
</LABEL> </BUTTON>  
<BUTTON id=idBtnAdd style='width:8em'><LABEL id=idLblAdd for=idBtnAdd accesskey="a"><SPAN>A</SPAN>dd
</LABEL> </BUTTON> </nobr> </TD> </TR> <TR id=idTrSingleBtns lbExpandedRow><TD></TD> <TD id=idTdSingleDesc class=ButtonDescPane>To add this program, click Add.
</TD> <TD class=ButtonPane colSpan=2><BUTTON id=idBtnAdd style='width:8em'><LABEL id=idLblAdd for=idBtnAdd accesskey="a"><SPAN>A</SPAN>dd
</LABEL> </BUTTON> </TD> </TR> </TABLE> </SPAN> <SPAN id=idConfigTemplates style='display:none'><TABLE><TBODY><TR class=AppNameRow><TD class=AppImageTD><IMG id=idImgRemove src="winupd.gif" hspace=3 align=absmiddle title='' alt='Graphic'></TD> <TD><SPAN id=idDisplayName datafld="displayname" lbDisplayName nofocusrect></SPAN> </TD> </TR> <TR id=idTrInfo lbExpandedRow><TD></TD> <TD id=idTdInfoDesc class=InfoPane colSpan=2>Click Configure to complete Setup for this component.
</TD> </TR> <TR id=idTrConfigBtn lbExpandedRow><TD></TD> <TD id=idTdBtnDesc class=ButtonDescPane>It cannot run until you have supplied all the necessary information.
</TD> <TD class=ButtonPane><BUTTON id=idBtnConfig style='width:8em'><LABEL id=idLblConfig for=idBtnConfig accesskey="n">Co<SPAN>n</SPAN>figure
</LABEL> </BUTTON> </TD> </TR> </TBODY> </TABLE> </SPAN> <SCRIPT LANGUAGE="JavaScript">
var KC_F5 = 116;
var g_docAll = document.all;
var g_idCur = '';
var g_bIsAlpha = false;
var g_iPageDefault = 0;
if (window.clientInformation.cpuClass == "Alpha")
g_bIsAlpha = true;
var g_bRemovePageLoaded = false;
var g_szSupportInfoSize = "dialogWidth:20em; dialogHeight:25em";
var g_bShowSupportInfo = true;
var g_bAddPageLoaded = false;
var g_bReenumInstalledList;
var g_bReenumAddList;
var g_bIsOnDomain;
var g_bSelectDefault = false;
var g_bConfigPageLoaded = false;
var g_bShowServices = true;
</SCRIPT></BODY> </HTML> <HTML xmlns:ctls ><HEAD><META content="text/html; charset=iso-8859-1" http-equiv=Content-Type><META http-equiv="MSThemeCompatible" content="Yes"><LINK REL="stylesheet" TYPE="text/css" HREF="arp.css"><STYLE TYPE="text/css">BODY {background: infobackground;color: infotext;}DIV {position: relative;width: 100%;xborder: '1px solid red'; }TABLE {cursor: default; border-collapse:collapse;}TD {xborder: '1px solid burlywood'; }BUTTON {width: 8em;}ctls\:ACCEL { behavior: url(accel.htc); }</STYLE><SCRIPT LANGUAGE="JavaScript" SRC="preload.js" DEFER></SCRIPT><TITLE>Support Info</TITLE> </HEAD> <BODY scroll=no><DIV id=idDivDlg style='width:100%; height:100%'><DIV id=idDivClient><H1><SPAN id=idProduct _bpInnerText=displayname></SPAN></H1> <DIV id=idDivNoInfo style='display:none'><P id=idPNoSupportHelp>There is no support information for <SPAN id=idProduct3 _bpInnerText=displayname></SPAN>.
<P></DIV> <DIV id=idDivInfo><P id=idPSupportHelp>Use the following information to get technical support for <SPAN id=idProduct2 _bpInnerText=displayname></SPAN>.
<P><TABLE id=idTblInfo style='height:auto'><COL id=idColSupportLabel align=left valign=top style='width:10em; padding-left:10px'><COL style='padding-left:10px'><TR><TD id=idTdPublisherLabel>Publisher:</TD> <TD><A id=idAPublisher _bpInnerText=publisher _bpHref=supporturl></A> </TD> </TR> <TR><TD id=idTdVersionLabel>Version:</TD> <TD id=idVersion _bpInnerText=version></TD> </TR> <TR><TD id=idTdContactPersonLabel>Contact:</TD> <TD id=idContactPerson _bpInnerText=contact></TD> </TR> <TR><TD id=idTdSupportInfoLabel>Support Information:</TD> <TD><SPAN _bpNop=helpurl><A id=idAHelpUrl _bpInnerText=helpurl _bpHref=helpurl></A> <BR></SPAN> <SPAN id=idSpnHelpPhone _bpInnerText=helpphone></SPAN> </TD> </TR> <TR><TD id=idTdReadmeLabel>Readme:</TD> <TD><A id=idAReadme _bpInnerText=readmeurl _bpHref=readmeurl></A> </TD> </TR> <TR><TD id=idTdUpdatesLabel>Product Updates:</TD> <TD><A id=idAUpdates _bpInnerText=updateinfourl _bpHref=updateinfourl></A> </TD> </TR> <TR><TD colSpan=2><SPAN _bpNop=productID><SPAN _bpNop=regcompany><SPAN _bpNop=regowner><BR></SPAN> </SPAN> </SPAN> </TD></TR> <TR><TD id=idTdProductIDLabel>Product ID:</TD> <TD id=idProductID _bpInnerText=productID></TD> </TR> <TR><TD id=idTdRegCoLabel>Registered Company:</TD> <TD id=idTdRegCo _bpInnerText=regcompany></TD> </TR> <TR><TD id=idTdRegOwnLabel>Registered Owner:</TD> <TD id=idTdRegOwn _bpInnerText=regowner></TD> </TR> <TR><TD colSpan=2><BR></TD></TR> <TR><TD id=idTdCommentsLabel>Comments:</TD> <TD id=idComments _bpInnerText=comments></TD> </TR> </TABLE> </DIV> <TABLE id=idTblRepair style='height:auto'><TR><TD><DIV id=idDivRepair _bpValue=capability style='display:none'><HR style='width:100%;' noshade size=2><TABLE cellpadding=0 cellspacing=0><TR><TD id=idTdRepairDesc valign=middle style='padding:0px; margin:0px'>If this program is not working properly you may reinstall it
by clicking <B>Repair</B>.
</TD> <TD id=idTdRepairButton align=right valign=middle style='padding:5px'><BUTTON id="idBtnRepair" _bpValue=recordnumber>
<ctls:ACCEL id=idLblRepair forElem=idBtnRepair>&Repair</ctls:ACCEL> </BUTTON> </TD> </TR> </TABLE> </DIV>
</TD> </TR> <TR><TD style='padding:0px; margin:0px'><HR style='width:100%' noshade size=2></TD> </TR> <TR><TD id=idTdCloseButton style='padding:5px; text-align:right'><BUTTON id=idBtnOK><ctls:ACCEL id=idLblOK forElem=idBtnOK>&Close</ctls:ACCEL> </BUTTON> </TD> </TR> </TABLE> </DIV> </DIV> <SCRIPT LANGUAGE="JavaScript">
document.body.onload = Body_Load;
document.body.onunload = Body_UnLoad;
document.body.onkeypress = Body_KeyPress;
idDivInfo.onclick = GotoWebsite;
idBtnRepair.onclick = Repair;
idBtnOK.onclick = window.close;
var g_docAll = document.all;
var g_wndParent = null;
var g_dlg;
function Body_Load()
{
LoadScriptFile("idScriptUtil", "util.js");
LoadScriptFile("idScriptDlg", "dlg.js");
LoadScriptFile("idScriptBplate", "bplate.js");
InitDlgClass();
InitBoilerPlateClass();
var bplate = new BoilerPlate();
g_wndParent = window.dialogArguments;
g_dlg = new Dlg();
g_dlg.CalcMetrics(g_wndParent.SupportInfo_GetDlgSize(), idDivDlg);
var szStruct = g_wndParent.SupportInfo_Query();
bplate.Parse(szStruct);
bplate.Apply();
if (2 == idTblInfo.rows.length)
{
idTblInfo.deleteRow();
idTblInfo.deleteRow();
}
if (0 == idTblInfo.rows.length)
{
idDivInfo.style.display = 'none';
idDivNoInfo.style.display = 'block';
}
if (parseInt(idDivRepair._bpVar) & APPCAP_REPAIR)
{
idDivRepair.style.display = 'block';
}
window.setTimeout("g_dlg.Resize(idDivClient.offsetWidth, idDivClient.offsetHeight)", 10);
idBtnOK.focus();
}
function Body_KeyPress()
{
if (KC_ESCAPE == window.event.keyCode)
{
window.close();
}
}
function Body_UnLoad()
{
if (g_wndParent)
{
g_wndParent.supportInfoUnloaded = true;
}
}
function GotoWebsite()
{
var elem = window.event.srcElement;
if ("A" == elem.tagName && "" != elem.href)
{
window.open(elem.href, "SupInfoLink");
window.event.returnValue = false;
}
}
function Repair()
{
g_wndParent.SupportInfo_Repair(parseInt(idBtnRepair._bpVar));
if (g_wndParent.supportInfoUnloaded != true)
{
idBtnOK.focus();
}
}
</SCRIPT></BODY> </HTML> <HTML xmlns:ctls><HEAD><META content="text/html; charset=iso-8859-1" http-equiv=Content-Type><META http-equiv="MSThemeCompatible" content="Yes"><LINK REL="stylesheet" TYPE="text/css" HREF="arp.css"><STYLE TYPE="text/css">BODY {background: infobackground; color: infotext;}BUTTON {width: 7em; }TD {xborder: '1px solid burlywood'; }ctls\:ACCEL { behavior: url(accel.htc); }</STYLE><SCRIPT LANGUAGE="JavaScript" SRC="util.js"></SCRIPT><SCRIPT LANGUAGE="JavaScript">
function Body_Load()
{
idBtnOK.focus();
}
function Body_KeyPress()
{
if (KC_ESCAPE == window.event.keyCode || KC_RETURN == window.event.keyCode)
{
window.close();
}
}
</SCRIPT><TITLE>Definition: Size</TITLE> </HEAD> <BODY><TABLE style='height:auto; width:100%'><TR><TD valign=top><H1 id=idHSizeHeader>Size</H1> <P id=idPDefn>Windows estimates the amount of disk space a program (including folders and
subfolders) occupies. This is only an estimate and can sometimes be incorrect.
<BR><BR></TD> </TR> <TR><TD style='padding:0px; margin:0px'><HR style='width:100%' noshade size=2></TD> </TR> <TR><TD id=idTdClose align=right valign=bottom><BUTTON id=idBtnOK><ctls:ACCEL id=idLblOK forElem=idBtnOK>&Close</ctls:ACCEL> </BUTTON> </TD> </TR> </TABLE> <SCRIPT LANGUAGE="JavaScript">
document.body.onload = Body_Load;
document.body.onkeypress = Body_KeyPress;
idBtnOK.onclick = window.close;
</SCRIPT></BODY> </HTML> <HTML xmlns:ctls><HEAD><META content="text/html; charset=iso-8859-1" http-equiv=Content-Type><META http-equiv="MSThemeCompatible" content="Yes"><LINK REL="stylesheet" TYPE="text/css" HREF="arp.css"><STYLE TYPE="text/css">BODY {background: infobackground; color: infotext;}BUTTON {width: 7em; }TD {xborder: '1px solid burlywood'; }ctls\:ACCEL { behavior: url(accel.htc); }</STYLE><SCRIPT LANGUAGE="JavaScript" SRC="util.js"></SCRIPT><SCRIPT LANGUAGE="JavaScript">
function Body_Load()
{
idBtnOK.focus();
}
function Body_KeyPress()
{
if (KC_ESCAPE == window.event.keyCode || KC_RETURN == window.event.keyCode)
{
window.close();
}
}
</SCRIPT><TITLE>Definition: Frequency Of Use</TITLE> </HEAD> <BODY><TABLE style='height:auto; width:100%'><TR><TD valign=top><H1 id=idHFreqHeader>Frequency of Use</H1> <P id=idPDefn1>Windows measures the number of times the program has been run in the past 30
days and labels it accordingly.
<P id=idPDefn2>Frequency is divided into three areas:
<UL><LI id=idLiRarely>Rarely - the program is rarely or never run.
<LI id=idLiSometimes>Occasionally - the program is run sometimes.
<LI id=idLiFrequently>Frequently - the program is run often.
</UL> </TD> </TR> <TR><TD style='padding:0px; margin:0px'><HR style='width:100%' noshade size=2></TD> </TR> <TR><TD id=idTdClose align=right valign=bottom><BUTTON id=idBtnOK><ctls:ACCEL id=idLblOK forElem=idBtnOK>&Close</ctls:ACCEL> </BUTTON> </TD> </TR> </TABLE> <SCRIPT LANGUAGE="JavaScript">
document.body.onload = Body_Load;
document.body.onkeypress = Body_KeyPress;
idBtnOK.onclick = window.close;
</SCRIPT></BODY> </HTML> H1 {
font-size: 13pt;
font-family: Verdana, Tahoma, Arial;
font-weight: bold;
}
BUTTON {
font-size: 8pt; font-family: Tahoma, Verdana, Arial, sans-serif; padding: 1px; }
BODY {
margin:7px;
cursor: default;
font-size: 8pt;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
TABLE {
font-size: 8pt; cursor: default; xborder: '1px solid green';
border-collapse:collapse;
width:100%;
height:100%;
}
SELECT {
font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 8pt; color: windowtext;
}
TD {
padding: 0px;
xborder: '1px solid burlywood'; }
A {
color: windowtext;
}
A.Focus {
color: highlighttext;
}
LABEL SPAN {
text-decoration: underline;
accelerator: true; }
function _NextToken(sz, ichStart, chDelim)
{
var ich = ichStart;
var cch = sz.length;
while (ich < cch && sz.charAt(ich) == chDelim)
{
ich++;
}
if (ich == cch)
ich = -1;
return ich;
}
function BoilerPlate()
{
this._rgszFields = new Array();
this._cfield = 0;
}
function BoilerPlate_Parse(szArgs)
{
szArgs += " ";
var ichTag = 0;
while (true)
{
ichTag = szArgs.indexOf("<", ichTag);
if (-1 == ichTag)
break;
else
{
ichTag++;
var ichNameEnd = szArgs.indexOf(" ", ichTag);
var ichValueBegin = _NextToken(szArgs, ichNameEnd, " ");
var ichValueEnd;
if (szArgs.charAt(ichValueBegin) == '"')
{
ichValueBegin++;
ichValueEnd = szArgs.indexOf('"', ichValueBegin);
}
else
ichValueEnd = szArgs.indexOf(">", ichValueBegin);
var szField = szArgs.substring(ichTag, ichNameEnd);
var szValue = szArgs.substring(ichValueBegin, ichValueEnd);
this._rgszFields[szField.toLowerCase()] = szValue;
this._cfield++;
ichTag = ichValueEnd;
}
}
}
function BoilerPlate_Get(szFieldName)
{
var szValue = this._rgszFields[szFieldName.toLowerCase()];
if ("" == szValue || "undefined" == typeof szValue)
return null;
return szValue;
}
function BoilerPlate_Length()
{
return this._cfield;
}
function _FindParentRow(elem)
{
var trLast = null;
while (elem)
{
if ("TR" == elem.tagName.toUpperCase())
return elem;
elem = elem.parentElement;
}
return null;
}
function BoilerPlate_Apply()
{
var i;
for (i = document.all.length - 1; i >= 0; i--)
{
var elem = document.all.item(i);
var szField;
var bDeleteRow = false;
var bIsElemMarked = false;
var bHideElem = false;
if (null != elem._bpInnerText)
{
szField = this.Get(elem._bpInnerText);
if (null == szField)
{
bDeleteRow = true;
bHideElem = true;
szField = "n/a";
}
elem.innerText = szField;
bIsElemMarked = true;
}
if (null != elem._bpHref && "A" == elem.tagName)
{
szField = this.Get(elem._bpHref);
bHideElem = false;
if (null != szField &&
("http:" == szField.substring(0, 5) ||
"https:" == szField.substring(0, 6) ||
"file:" == szField.substring(0, 5) ||
"ftp:" == szField.substring(0, 4)))
{
elem.href = szField;
if ("n/a" == elem.innerText)
{
elem.innerText = elem.href;
}
if (elem.href != elem.innerText)
{
elem.title = elem.href;
}
bDeleteRow = false;
}
else
{
elem.style.color = document.fgColor;
}
bIsElemMarked = true;
if ("n/a" == szField)
bHideElem = true;
}
if (null != elem._bpValue)
{
elem._bpVar = this.Get(elem._bpValue);
bIsElemMarked = true;
}
if (null != elem._bpNop && null == this.Get(elem._bpNop))
{
bHideElem = true;
}
if (bHideElem)
{
elem.style.display = 'none';
}
if (bIsElemMarked)
{
var trElem = _FindParentRow(elem);
if (trElem && false != trElem._bpDelete)
{
trElem._bpDelete = bDeleteRow;
}
}
}
var rgrows = document.all.tags("TR");
for (i = rgrows.length - 1; i >= 0; i--)
{
var trElem = rgrows[i];
if (trElem && trElem._bpDelete)
{
var tbl = trElem.parentElement;
tbl.deleteRow(trElem.rowIndex);
}
}
}
function InitBoilerPlateClass()
{
new BoilerPlate(null);
BoilerPlate.prototype.Parse = BoilerPlate_Parse;
BoilerPlate.prototype.Get = BoilerPlate_Get;
BoilerPlate.prototype.Length = BoilerPlate_Length;
BoilerPlate.prototype.Apply = BoilerPlate_Apply;
}
function Dlg()
{
this._cxPerEm = 1;
this._cyPerEm = 1;
this._dxFrame = 0;
this._dyFrame = 0;
}
function Dlg_CalcMetrics(szDlgSize, idDivDlg)
{
var cxDiv = idDivDlg.offsetWidth;
var cyDiv = idDivDlg.offsetHeight;
var ichWidth = szDlgSize.indexOf("dialogWidth:") + 12;
var ichHeight = szDlgSize.indexOf("dialogHeight:") + 13;
var cxDlgEm = parseInt(szDlgSize.substring(ichWidth));
var cyDlgEm = parseInt(szDlgSize.substring(ichHeight));
var cxWindow = parseInt(window.dialogWidth);
var cyWindow = parseInt(window.dialogHeight);
this._dxFrame = cxWindow - cxDiv;
this._dyFrame = cyWindow - cyDiv;
this._cxPerEm = cxWindow / cxDlgEm;
this._cyPerEm = cyWindow / cyDlgEm;
}
function Dlg_CxToEms(cx)
{
return cx / this._cxPerEm;
}
function Dlg_CyToEms(cy)
{
return cy / this._cyPerEm;
}
function Dlg_Resize(cx, cy)
{
var cxNew = this.CxToEms(cx + this._dxFrame);
var cyNew = this.CyToEms(cy + this._dyFrame);
window.dialogWidth = cxNew;
window.dialogHeight = cyNew;
}
function InitDlgClass()
{
new Dlg();
Dlg.prototype.CalcMetrics = Dlg_CalcMetrics;
Dlg.prototype.Resize = Dlg_Resize;
Dlg.prototype.CxToEms = Dlg_CxToEms;
Dlg.prototype.CyToEms = Dlg_CyToEms;
}
function EatErrors(szMsg, szUrl, iLine)
{
alert("An unexpected error occurred.\n\n" + szMsg + "\n" + szUrl + "\nLine: " + iLine);
window.event.returnValue = true;
}
function LoadScriptFile(szScriptID, szUrl)
{
if (null == g_docAll(szScriptID))
{
var elemScript = document.createElement("<SCRIPT id=" + szScriptID + " src='" + szUrl + "' language='javascript'></SCRIPT>");
if (elemScript)
{
document.body.insertBefore(elemScript);
}
}
}
function Dso_IsRestricted(szPolicy)
{
var bResult;
bResult = g_docAll.idCtlAppsDso.IsRestricted(szPolicy);
return bResult;
}
function _ParseCmdLine()
{
var szCmdLine = g_docAll.idAppARP.commandLine;
var ichParam = szCmdLine.indexOf("default.hta") + 12;
var cch = szCmdLine.length;
while (ichParam < cch)
{
if (szCmdLine.charAt(ichParam) != ' ')
break;
ichParam++;
}
var nPage = parseInt(szCmdLine.charAt(ichParam));
if (isNaN(nPage) || 2 < nPage)
nPage = g_iPageDefault;
g_docAll.idPlaces.currentButton = nPage;
}
function _InitPlacesBar()
{
var _idPlaces = g_docAll.idPlaces;
if (Dso_IsRestricted("NoRemovePage"))
{
_idPlaces.ShowButton('idChangeRemove', false);
g_iPageDefault++;
}
if (Dso_IsRestricted("NoAddPage"))
{
_idPlaces.ShowButton('idAdd', false);
if (1 == g_iPageDefault)
g_iPageDefault++;
}
if (Dso_IsRestricted("NoWindowsSetupPage"))
{
_idPlaces.ShowButton('idConfig', false);
if (2 == g_iPageDefault)
g_iPageDefault++;
}
}
function Body_OnLoad()
{
window.onerror = EatErrors;
if (document.dir == "rtl")
{
g_docAll.idTdClose.align = "left";
g_docAll.idTdCDFloppy.align = "left";
g_docAll.idTdWindowsUpdate.align = "left";
}
document.body.onkeydown = Body_OnKeyDown;
g_docAll.idBtnClose.onclick = _CloseWindow;
var bExecOCMgr;
bExecOCMgr = !g_docAll.idCtlAppsDso.ShowPostSetup;
if (Dso_IsRestricted("ShowPostSetup"))
bExecOCMgr = false;
else if (Dso_IsRestricted("NoServices"))
bExecOCMgr = true;
var _idPlaces = g_docAll.idPlaces;
_idPlaces.SetExecButton("idConfig", bExecOCMgr);
g_docAll.idColPlaces.width = g_docAll.idPlaces.offsetWidth;
g_docAll.idImgDummy1.width = g_docAll.idPlaces.offsetWidth;
g_docAll.idImgDummy2.width = g_docAll.idPlaces.offsetWidth;
g_docAll.idImgDummy3.width = g_docAll.idPlaces.offsetWidth;
_ParseCmdLine();
}
function Body_OnKeyDown()
{
if (KC_F5 == event.keyCode)
{
switch (g_idCur)
{
case 'idChangeRemove':
Dso_Refresh("Remove");
break;
case 'idAdd':
Dso_Refresh("Categories");
Dso_Refresh("Add");
break;
case 'idConfig':
Dso_Refresh("ocsetup");
break;
}
event.returnValue=false;
}
}
function _CloseWindow()
{
window.parent.close();
}
function _SetPage(idElem)
{
switch (idElem)
{
case 'idChangeRemove':
LoadScriptFile("idScriptRemove", "remove.js");
break;
case 'idAdd':
LoadScriptFile("idScriptAdd", "add.js");
break;
case 'idConfig':
LoadScriptFile("idScriptConfig", "config.js");
break;
}
switch (g_idCur)
{
case 'idChangeRemove':
Remove_Deactivate();
break;
case 'idAdd':
Add_Deactivate();
break;
case 'idConfig':
Config_Deactivate();
break;
}
switch (idElem)
{
case 'idChangeRemove':
Remove_Activate();
break;
case 'idAdd':
Add_Activate();
break;
case 'idConfig':
Config_Activate(false);
break;
}
g_idCur = idElem;
}
function Places_OnExecItem()
{
var idElem = window.event.srcID;
if ('idConfig' == idElem)
{
LoadScriptFile("idScriptConfig", "config.js");
Config_Activate(true);
}
}
function Places_OnSelectItem()
{
if (g_idCur == window.event.srcID)
{
switch (g_idCur)
{
case 'idChangeRemove':
Remove_SetFocus();
break;
case 'idAdd':
Add_SetFocus();
break;
case 'idConfig':
Config_SetFocus();
break;
}
return;
}
_SetPage(window.event.srcID);
}
function Places_OnComplete()
{
if ("undefined" == typeof g_docAll)
g_docAll = document.all;
_InitPlacesBar();
}
var KC_SPACE = 32;
var KC_RETURN = 13;
function _OnKeyDownFakeAnchor()
{
var keyCode = window.event.keyCode;
if (KC_SPACE == keyCode || KC_RETURN == keyCode)
{
window.event.srcElement.click();
}
}
var KC_ESCAPE = 27;
var KC_RETURN = 13;
var APPCAP_INSTALL = 0x0001;
var APPCAP_UNINSTALL = 0x0002;
var APPCAP_MODIFY = 0x0004;
var APPCAP_REPAIR = 0x0008;
var APPCAP_UPGRADE = 0x0010;
var APPCAP_CANGETSIZE = 0x0020;
var APPCAP_MODIFYREMOVE = 0x0080;
var APPCAP_ADDLATER = 0x0100;
var APPCAP_UNSCHEDULE = 0x0200;
function ApplyExtraStyles(tblElem, bFocus)
{
var szFocusClass;
if (bFocus)
szFocusClass = "Focus";
else
szFocusClass = "";
var tblProps = tblElem.all('idTblExtendedProps');
if (tblProps)
{
tblProps.className = szFocusClass;
}
var rganchor = tblElem.all.tags("A");
var canchor = rganchor.length;
for (i = 0; i < canchor; i++)
{
rganchor[i].className = szFocusClass;
}
}
function Dso_GetCtl(szDso)
{
return g_docAll.idCtlAppsDso;
}
function Dso_GetRecordset(szDso)
{
return g_docAll.idCtlAppsDso.namedRecordset(szDso);
}
function Dso_Sort(szDso, szKey)
{
g_docAll.idCtlAppsDso.Sort = szKey;
g_docAll.idCtlAppsDso.Reset(szDso);
}
function Dso_Filter(szDso, szFilter)
{
g_docAll.idCtlAppsDso.Category = szFilter;
g_docAll.idCtlAppsDso.Reset(szDso);
}
function _SetPubWaitingFeedback()
{
var L_RetrievingApps_Text = "Searching the network for available programs...";
g_docAll.idAddListbox.feedBack = L_RetrievingApps_Text;
}
function Dso_Refresh(szDso)
{
g_docAll.idCtlAppsDso.Dirty = true;
if ("Add" == szDso)
_SetPubWaitingFeedback();
g_docAll.idCtlAppsDso.Reset(szDso);
}
function Dso_FeedbackIfEmpty(szDso, idListbox, szEmptyFeedback)
{
var rs = Dso_GetRecordset(szDso);
if (rs && rs.state != 0 && rs.RecordCount > 0)
idListbox.feedBack = "";
else
idListbox.feedBack = szEmptyFeedback;
}
function Add_Activate()
{
LoadScriptFile("idScriptUtil", "util.js");
if (false == g_bAddPageLoaded)
{
g_bIsOnDomain = g_docAll.idCtlAppsDso.OnDomain;
}
g_docAll.idTrHeadMargin_Add.style.display = 'block';
g_docAll.idTrHeadCDROM1_Add.style.display = 'block';
g_docAll.idTrHeadCDROM2_Add.style.display = 'block';
g_docAll.idTrHeadInternet1_Add.style.display = 'block';
g_docAll.idTrHeadInternet2_Add.style.display = 'block';
g_docAll.idTrHeadPub_Add.style.display = 'block';
g_docAll.idTrBody2_Add.style.display = 'block';
if (false == g_bAddPageLoaded)
{
if (Dso_IsRestricted("NoAddFromCDorFloppy"))
{
g_docAll.idTrHeadCDROM1_Add.style.visibility = 'hidden';
g_docAll.idTrHeadCDROM2_Add.style.visibility = 'hidden';
}
if (Dso_IsRestricted("NoAddFromInternet"))
{
g_docAll.idTrHeadInternet1_Add.style.visibility = 'hidden';
g_docAll.idTrHeadInternet2_Add.style.visibility = 'hidden';
}
if (false == g_bIsOnDomain || Dso_IsRestricted("NoAddFromNetwork"))
{
g_docAll.idTrHeadPub_Add.style.visibility = 'hidden';
g_docAll.idTrBody2_Add.style.visibility = 'hidden';
g_bIsOnDomain = false;
}
g_bSelectDefault = true;
}
if (false == g_bIsOnDomain)
{
g_docAll.idTrBody1_Add.style.display = 'block';
}
g_bReenumInstalledList = false;
if (g_bIsAlpha)
{
g_docAll.idTrFoot_Add.style.display = 'block';
g_docAll.idChkAddForcex86.attachEvent("onclick", new Function("idCtlAppsDso.Forcex86 = idChkAddForcex86.checked"));
}
if (false == g_bAddPageLoaded)
{
g_docAll.idBtnCDFloppy.onclick = _AddApp;
g_docAll.idBtnInternet.onclick = _AddApp;
if (g_bIsOnDomain)
{
_SetPubWaitingFeedback();
g_docAll.idSelCategory.onchange = _OnChangeCategories;
g_docAll.idBindCategories.dataFld = 'displayname';
g_docAll.idBindCategories.dataSrc = '#idCtlAppsDso.Categories';
g_docAll.idSpnAddLaterSchedule.dataSrc = "#idCtlAppsDso.Add";
g_docAll.idAddListbox.dataSource = "idCtlAppsDso.Add";
Dso_GetCtl("Categories").attachEvent("ondatasetcomplete", Cat_OnDatasetComplete);
Dso_GetCtl("Add").attachEvent("ondatasetcomplete", Add_OnDatasetComplete);
g_docAll.idAddListbox.Refresh();
}
g_bAddPageLoaded = true;
}
Add_SetFocus();
}
function Add_SetFocus()
{
g_docAll.idAddListbox.focus();
}
function Add_Deactivate()
{
g_docAll.idTrHeadMargin_Add.style.display = 'none';
g_docAll.idTrHeadCDROM1_Add.style.display = 'none';
g_docAll.idTrHeadCDROM2_Add.style.display = 'none';
g_docAll.idTrHeadInternet1_Add.style.display = 'none';
g_docAll.idTrHeadInternet2_Add.style.display = 'none';
g_docAll.idTrHeadPub_Add.style.display = 'none';
g_docAll.idTrFoot_Add.style.display = 'none';
g_docAll.idTrBody1_Add.style.display = 'none';
g_docAll.idTrBody2_Add.style.display = 'none';
if (g_bReenumInstalledList)
{
Dso_Refresh("Remove");
}
}
function Add_OnSetFocus()
{
var evt = window.event;
ApplyExtraStyles(evt.srcChild, evt.bFocus);
}
function Add_OnCustomDraw()
{
var evt = window.event;
var tblElem = evt.srcChild;
if (evt.bSelected)
{
var dwCapability = evt.Recordset("capability");
if ('prepaint' == evt.drawStage)
{
if (dwCapability & APPCAP_ADDLATER)
{
evt.srcElement.EnableTemplate('idTrMultiBtns', true);
evt.srcElement.EnableTemplate('idTrSingleBtns', false);
}
else
{
evt.srcElement.EnableTemplate('idTrMultiBtns', false);
evt.srcElement.EnableTemplate('idTrSingleBtns', true);
}
}
else
{
if (dwCapability & APPCAP_ADDLATER)
{
tblElem.all("idBtnAdd").onclick = _AddApp;
tblElem.all("idBtnAddLater").onclick = _AddLater;
}
else
{
tblElem.all("idBtnAdd").onclick = _AddApp;
}
var szSupportUrl = evt.Recordset("supporturl");
if ("" != szSupportUrl)
{
var spnMoreInfo = tblElem.all("idSpnMoreInfo");
spnMoreInfo.all("idAMoreInfo").href = szSupportUrl;
spnMoreInfo.style.display = 'block';
}
ApplyExtraStyles(evt.srcChild, evt.bFocus);
}
}
}
function _OpenMoreInfo()
{
var url = event.srcElement.parentElement.href;
window.open(url, "", "");
event.returnValue = false;
}
function _FilterCategories(optElem)
{
var szFilter;
_SetPubWaitingFeedback();
if (optElem.value == "all")
szFilter = "";
else
szFilter = optElem.value;
Dso_Filter("Add", szFilter);
}
function _OnChangeCategories()
{
var elem = window.event.srcElement;
var optElem = elem.options(elem.selectedIndex);
_FilterCategories(optElem);
}
function _AddApp()
{
var rsCur = Dso_GetRecordset("Add");
switch(event.srcElement.id)
{
case "idBtnAdd":
g_docAll.idCtlAppsDso.Exec("Add", "install", rsCur.AbsolutePosition);
break;
case "idBtnCDFloppy":
g_docAll.idCtlAppsDso.Exec("Add", "generic install", 0);
break;
case "idBtnInternet":
g_docAll.idCtlAppsDso.Exec("Add", "winupdate", 0);
break;
}
if ("idBtnAdd" == event.srcElement.id || "idBtnInternet" == event.srcElement.id)
{
g_bReenumInstalledList = true;
}
}
function _AddLater()
{
var rsCur = Dso_GetRecordset("Add");
g_docAll.idCtlAppsDso.Exec("Add", "addlater", rsCur.AbsolutePosition);
window.event.returnValue = false;
window.event.cancelBubble = true;
}
function _Schedule()
{
var elemSrc = window.event.srcElement;
if ("idASchedule" == elemSrc.id)
{
var rsCur = Dso_GetRecordset("Add");
g_docAll.idCtlAppsDso.Exec("Add", "addlater", rsCur.AbsolutePosition);
}
window.event.returnValue = false;
window.event.cancelBubble = true;
}
function _ResetCategoryList()
{
var i;
var optElem;
var colOptions = g_docAll.idSelCategory.options;
for (i = 0; i < colOptions.length;)
{
optElem = colOptions[i];
if (optElem.value != "all")
optElem.removeNode();
else
i++;
}
}
function _InitCategoryList()
{
var rsCur = Dso_GetRecordset("Categories");
if (rsCur.RecordCount > 0)
{
var i;
var szDefault;
var optElemSel = null;
szDefault = g_docAll.idCtlAppsDso.DefaultCategory;
if ("" == szDefault)
{
szDefault = "all";
}
rsCur.MoveFirst();
for (i = 1; i <= rsCur.RecordCount; i++)
{
var optElem = document.createElement("option");
optElem.value = rsCur("displayname");
optElem.text = rsCur("displayname");
if (g_bSelectDefault && optElem.value == szDefault)
{
optElem.selected = true;
optElemSel = optElem;
}
g_docAll.idSelCategory.add(optElem);
rsCur.MoveNext();
}
if (optElemSel)
_FilterCategories(optElemSel);
g_bSelectDefault = false;
}
}
function Cat_OnDatasetComplete()
{
if (window.event.qualifier == "Categories")
{
_ResetCategoryList();
_InitCategoryList();
}
}
function Add_OnDatasetComplete()
{
if (window.event.qualifier == "Add")
{
var L_AddNoneAvailable_Text = "No programs are available on the network";
Dso_FeedbackIfEmpty("Add", g_docAll.idAddListbox, L_AddNoneAvailable_Text);
}
}
function Config_Activate(bExec)
{
LoadScriptFile("idScriptUtil", "util.js");
if (bExec)
{
_RunOCMgr();
return;
}
g_docAll.idTrHeadMargin_Config.style.display = 'block';
g_docAll.idTrHeadComponents1_Config.style.display = 'block';
g_docAll.idTrHeadComponents2_Config.style.display = 'block';
g_docAll.idTrHeadServices_Config.style.display = 'block';
g_docAll.idTrBody_Config.style.display = 'block';
if (false == g_bConfigPageLoaded)
{
if (Dso_IsRestricted("NoComponents"))
{
g_docAll.idTrHeadComponents1_Config.style.visibility = 'hidden';
g_docAll.idTrHeadComponents2_Config.style.visibility = 'hidden';
}
g_docAll.idConfigListbox.dataSource = "idCtlAppsDso.ocsetup";
g_docAll.idConfigListbox.Refresh();
g_docAll.idBtnNTOptions.onclick = _RunOCMgr;
g_bConfigPageLoaded = true;
}
Config_SetFocus();
}
function Config_SetFocus()
{
g_docAll.idConfigListbox.focus();
}
function Config_Deactivate()
{
g_docAll.idTrHeadMargin_Config.style.display = 'none';
g_docAll.idTrHeadComponents1_Config.style.display = 'none';
g_docAll.idTrHeadComponents2_Config.style.display = 'none';
g_docAll.idTrHeadServices_Config.style.display = 'none';
g_docAll.idTrBody_Config.style.display = 'none';
}
function Config_OnSetFocus()
{
var evt = window.event;
ApplyExtraStyles(evt.srcChild, evt.bFocus);
}
function Config_OnCustomDraw()
{
var evt = window.event;
var tblElem = evt.srcChild;
if (evt.bSelected && 'postpaint' == evt.drawStage)
{
tblElem.all('idBtnConfig').onclick = _Configure;
}
}
function _RunOCMgr()
{
g_docAll.idCtlAppsDso.Exec('ocsetup', 'ntoptions', 0);
}
function _Configure()
{
var rsCur = Dso_GetRecordset("ocsetup");
g_docAll.idCtlAppsDso.Exec("ocsetup", "install", rsCur.AbsolutePosition);
Dso_Refresh("ocsetup");
}
function Remove_Activate()
{
LoadScriptFile("idScriptUtil", "util.js");
LoadScriptFile("idScriptBplate", "bplate.js");
InitBoilerPlateClass();
g_docAll.idTrHeadMargin_Remove.style.display = 'block';
g_docAll.idTrHead_Remove.style.display = 'block';
g_docAll.idTrBody_Remove.style.display = 'block';
if (g_bIsAlpha)
{
g_docAll.idTrFoot_Remove.style.display = 'block';
g_docAll.idChkRemoveForcex86.attachEvent("onclick", new Function ("idCtlAppsDso.Forcex86 = idChkRemoveForcex86.checked"));
}
if (false == g_bRemovePageLoaded)
{
if (Dso_IsRestricted("NoSupportInfo"))
g_bShowSupportInfo = false;
g_docAll.idSelSortBy.onchange = _SortDataSource;
g_docAll.idRemoveListbox.dataSource = "idCtlAppsDso.Remove";
Dso_GetCtl("Remove").attachEvent("ondatasetcomplete", Remove_OnDatasetComplete);
g_docAll.idRemoveListbox.Refresh();
g_bRemovePageLoaded = true;
}
g_bReenumAddList = false;
Remove_SetFocus();
}
function Remove_SetFocus()
{
g_docAll.idRemoveListbox.focus();
}
function Remove_Deactivate()
{
g_docAll.idTrHeadMargin_Remove.style.display = 'none';
g_docAll.idTrHead_Remove.style.display = 'none';
g_docAll.idTrFoot_Remove.style.display = 'none';
g_docAll.idTrBody_Remove.style.display = 'none';
if (g_bReenumAddList)
{
Dso_Refresh("Add");
}
}
function Remove_OnSetFocus()
{
var evt = window.event;
ApplyExtraStyles(evt.srcChild, evt.bFocus);
}
function Remove_OnCustomDraw()
{
var evt = window.event;
var tblElem = evt.srcChild;
if (evt.bSelected)
{
var dwCapability = evt.Recordset("capability");
if ('prepaint' == evt.drawStage)
{
if (dwCapability & APPCAP_MODIFYREMOVE)
{
evt.srcElement.EnableTemplate('idTrMultiBtns', false);
evt.srcElement.EnableTemplate('idTrSingleBtns', true);
}
else
{
evt.srcElement.EnableTemplate('idTrMultiBtns', true);
evt.srcElement.EnableTemplate('idTrSingleBtns', false);
}
}
else
{
var bplate = new BoilerPlate();
bplate.Parse(evt.Recordset("supportinfo"));
if (!g_bShowSupportInfo ||
!(dwCapability & APPCAP_REPAIR) &&
(1 > bplate.Length() ||
1 == bplate.Length() && null != bplate.Get("displayname")))
{
tblElem.all('idTdInfoDesc').style.visibility = 'hidden';
}
if (dwCapability & APPCAP_MODIFYREMOVE)
{
tblElem.all('idBtnBoth').onclick = _ModifyOrRemove;
if ( !(dwCapability & APPCAP_UNINSTALL) )
tblElem.all('idBtnBoth').disabled = true;
}
else
{
tblElem.all('idBtnModify').onclick = _ModifyOrRemove;
tblElem.all('idBtnRemove').onclick = _ModifyOrRemove;
if ( !(dwCapability & APPCAP_MODIFY) )
tblElem.all('idBtnModify').disabled = true;
if ( !(dwCapability & APPCAP_UNINSTALL) )
tblElem.all('idBtnRemove').disabled = true;
}
var szSort = g_docAll.idSelSortBy.options(g_docAll.idSelSortBy.selectedIndex).value;
if ("displayname" == szSort || "size" == szSort || "timesused" == szSort)
{
var spnValue = evt.srcRow.all("idSpnIndexValue");
var tdValue = spnValue.parentElement;
var tdId = ("timesused" == szSort ? "idAFrequency" : "idASize");
tdValue._szInner = tdValue.innerHTML;
if (tdValue.innerText != "")
{
tdValue.innerHTML =
"<SPAN id=" +
tdId +
" class='FakeAnchor' tabIndex=0 onKeyDown='_OnKeyDownFakeAnchor()' onClick='_OpenDefinition();'> " +
" <U>" +
tdValue._szInner +
"</U></SPAN>";
}
}
ApplyExtraStyles(tblElem, evt.bFocus);
}
}
else
{
if ('prepaint' == evt.drawStage)
{
var spnValue = evt.srcRow.all("idSpnIndexValue");
var tdValue = spnValue.parentElement.parentElement.parentElement;
if (null != tdValue._szInner)
{
tdValue.innerHTML = tdValue._szInner;
tdValue._szInner = null;
}
ApplyExtraStyles(tblElem, false);
}
}
}
function _OpenSupportInfo()
{
var szFeatures = g_szSupportInfoSize + "; resizable:no; help:no";
window.showModalDialog("support.htm", window, szFeatures);
window.event.returnValue = false;
window.event.cancelBubble = true;
}
function _OpenDefinition()
{
var elemSrc = window.event.srcElement;
if (("idSpnIndexValue" == elemSrc.id) && ("" != elemSrc.parentElement.parentElement.id))
{
elemSrc = elemSrc.parentElement.parentElement;
}
if ("" == elemSrc.id)
{
elemSrc = elemSrc.parentElement;
}
if ("idAFrequency" == elemSrc.id)
{
var szFeatures = "dialogWidth:20em; dialogHeight:16em; resizable:no; help:no";
window.showModalDialog("def_freq.htm", window, szFeatures);
}
else if ("idASize" == elemSrc.id || "idSpnIndexValue" == elemSrc.id)
{
var szFeatures = "dialogWidth:20em; dialogHeight:10.7em; resizable:no; help:no";
window.showModalDialog("def_size.htm", window, szFeatures);
}
window.event.returnValue = false;
window.event.cancelBubble = true;
}
function _SortDataSource()
{
var selElem = window.event.srcElement;
var optCur = selElem.options(selElem.selectedIndex);
Dso_Sort("Remove", optCur.value);
}
function _ModifyOrRemove()
{
var rsCur = Dso_GetRecordset("Remove");
var nRec = rsCur.AbsolutePosition;
switch(event.srcElement.id)
{
case "idBtnBoth":
g_docAll.idCtlAppsDso.Exec("Remove", "uninstall", nRec);
break;
case "idBtnModify":
g_docAll.idCtlAppsDso.Exec("Remove", "modify", nRec);
break;
case "idBtnRemove":
g_docAll.idCtlAppsDso.Exec("Remove", "uninstall", nRec);
break;
}
if ("idBtnRemove" == event.srcElement.id)
{
g_bReenumAddList = true;
}
}
function SupportInfo_Repair(nRecordNumber)
{
var rsCur = Dso_GetRecordset("Remove");
var nRecordSav = rsCur.AbsolutePosition;
window.focus();
rsCur.AbsolutePosition = nRecordNumber;
g_docAll.idCtlAppsDso.Exec("Remove", "repair", nRecordNumber);
rsCur.AbsolutePosition = nRecordSav;
}
function SupportInfo_Query()
{
var rsCur = Dso_GetRecordset("Remove");
var szRecord = "<recordnumber " + rsCur.AbsolutePosition + ">";
szRecord += rsCur("supportinfo");
szRecord += "<capability " + rsCur("capability") + ">";
return szRecord;
}
function SupportInfo_GetDlgSize()
{
return g_szSupportInfoSize;
}
function Remove_OnDatasetComplete()
{
if (window.event.qualifier == "Remove")
{
var L_RemoveNoneAvailable_Text = "There are no programs installed on this computer";
Dso_FeedbackIfEmpty("Remove", g_docAll.idRemoveListbox, L_RemoveNoneAvailable_Text);
}
}
<PUBLIC:HTC URN="shellctls"><ATTACH event="oncontentready" handler=_OnContentReady /><SCRIPT language="javascript">
var _bLoading = true;
var _idFor = null;
var _szText = null;
var _ichAccel = 0;
var _chAccel;
var c_szAccelStyle = "style = 'text-decoration:underline; accelerator:true'";
element.attachEvent("onerror", _OnError);
_GetPropertyDefaults();
function get_forCtl() { return _idFor; }
function put_forCtl(id)
{
if (_bLoading)
return;
_idFor = id;
}
function _OnContentReady()
{
_bLoading = false;
_ScanForAccelerator();
_CreateHTML();
}
function _GetPropertyDefaults()
{
if (element.forElem)
_idFor = element.forElem;
}
function _ScanForAccelerator()
{
var sz = element.innerText;
_ichAccel = sz.indexOf('&');
_szText = sz.substring(0, _ichAccel);
if (_ichAccel < sz.length - 1)
_szText = _szText + sz.substring(_ichAccel+1, sz.length);
if (0 <= _ichAccel)
_chAccel = sz.charAt(_ichAccel+1);
}
function _CreateHTML()
{
element.innerHTML =
'<LABEL id=idLblAccel_' + uniqueID + ' for=' + _idFor + ' accesskey="' + _chAccel + '">' +
_szText.substring(0, _ichAccel) +
'<SPAN ' + c_szAccelStyle + '>' +
_szText.substring(_ichAccel, _ichAccel+1) +
'</SPAN>' +
_szText.substring(_ichAccel+1, _szText.length) +
'</LABEL>';
}
function _OnError(szMsg, szUrl, iLine)
{
alert("An unexpected error occurred.\n\n" + szMsg + "\n" + szUrl + "\nLine: " + iLine);
return true;
}
</SCRIPT><PROPERTY name="forElem" get=get_forCtl put=put_forCtl /></PUBLIC:HTC> <PUBLIC:HTC URN="shellctls"><METHOD name="ResetSelection" /><METHOD name="EnableTemplate" /><METHOD name="Refresh" /><METHOD name="focus" /><METHOD name="blur" /><EVENT id=onSelectItem name="onSelectItem" /><EVENT id=onCustomDraw name="onCustomDraw" /><EVENT id=onSetFocus name="onSetFocus" /><EVENT id=onListComplete name="onListComplete" /><ATTACH event="oncontentready" handler=_OnContentReady /><SCRIPT language="javascript">
var _bLoading = true;
var _tblList = null;
var _idDisplayName;
var _divScroll = null;
var _iSelCur = -1;
var _iSelDefault = -1;
var _nItemsPerPage = 0;
var _idDataSource;
var _ctlDataSource = null;
var _szRecordSetName = "";
var _idTemplateSource;
var _cRowsExpand = 0;
var _cRowsAdded = 0;
var _bAutoExpand = false;
var _rgTemplateRows = new Array();
var _htmlRow;
var _bHasFocus = false;
var _bFreeze = false;
var _bTableComplete = false;
var _bInternalFocusChange = false;
var _szFeedBack = "";
var _dvFeedBack = null;
var c_szStyle_Background =
'style = "' +
'position:relative; ' +
'width:100%; ' +
'height:100%; ' +
'overflow-y:scroll; ' +
'border: 1px solid buttonface; '+
'"';
var c_szStyle_Table =
'style = "' +
'table-layout:fixed; ' +
'width:100%; ' +
'height:auto; ' +
'"';
var c_szStyle_Feedback =
'style = "' +
'position:relative; ' +
'width:100%; ' +
'height:100%; ' +
'border: 1px solid buttonface; '+
'"';
element.attachEvent("onkeydown", _OnKeyDown);
element.attachEvent("onerror", _OnError);
_GetPropertyDefaults();
function get_selIndex() { return _iSelCur; }
function put_selIndex(iSel)
{
if (_bLoading)
return;
_SelectItem(parseInt(iSel), true);
}
function get_defaultSel() { return _iSelDefault; }
function put_defaultSel(iSel)
{
if (_bLoading)
return;
_iSelDefault = parseInt(iSel);
}
function get_dataSource() { return _idDataSource; }
function put_dataSource(szDatasrc)
{
if (_bLoading)
return;
if (_ctlDataSource)
{
_ctlDataSource.detachEvent("onrowsdelete", _OnRowsDelete);
if (_tblList)
_tblList.detachEvent("onreadystatechange", _OnTableReady);
}
if ("" == szDatasrc)
{
_idDataSource = null;
_ctlDataSource = null;
}
else
{
_idDataSource = szDatasrc;
_SetDataSourceObject(szDatasrc);
}
if (_ctlDataSource)
{
_ctlDataSource.attachEvent("onrowsdelete", _OnRowsDelete);
if (_tblList)
_tblList.attachEvent("onreadystatechange", _OnTableReady);
}
}
function get_autoExpand() { return _bAutoExpand; }
function put_autoExpand(bAutoExpand)
{
if (_bLoading)
return;
_bAutoExpand = (bAutoExpand) ? true : false;
}
function get_freeze() { return _bFreeze; }
function put_freeze(bFreeze)
{
if (_bLoading)
return;
_bFreeze = (bFreeze) ? true : false;
}
function get_templateSource() { return _idTemplateSource; }
function put_templateSource(szId)
{
if (_bLoading)
return;
_idTemplateSource = szId;
_ResetTemplateStore();
}
function get_feedBack() { return _szFeedBack; }
function put_feedBack(szText)
{
_szFeedBack = szText;
if (_szFeedBack == "")
{
if (_dvFeedBack != null)
_dvFeedBack.style.display = 'none';
}
else
{
if (_dvFeedBack != null)
{
_dvFeedBack.style.display = '';
_dvFeedBack.innerHTML = _szFeedBack;
}
if (_tblList != null)
{
_tblList.style.display = 'none';
}
}
}
function _OnContentReady()
{
_bLoading = false;
_PrepHTML();
}
function _OnTableReady()
{
var tblElem = window.event.srcElement;
if ("complete" == tblElem.readyState)
{
if ((null != _tblList) && (_szFeedBack == "") && _tblList.style.display == 'none')
{
_tblList.style.display = '';
}
var recordset = _GetRecordset();
if (recordset && recordset.state != 0)
{
evt = createEventObject();
evt.tableList = tblElem;
onListComplete.fire(evt);
if (-1 != _iSelDefault && _iSelDefault < _tblList.rows.length)
{
_SelectItem(_iSelDefault, true);
}
_bTableComplete = true;
_CalcItemsPerPage();
}
}
else if ("loading" == tblElem.readyState)
{
if (_bTableComplete)
{
_InternalResetSelection();
}
else
{
_tblList.style.display = '';
}
}
else if ("interactive" == tblElem.readyState)
{
_tblList.style.display = '';
}
}
function _OnDocumentLoad()
{
_ScanSpecialElements();
_CreateHTML();
}
function _ResetTemplateStore()
{
_cRowsExpand = 0;
_rgTemplateRows = new Array();
}
function _GetPropertyDefaults()
{
if (element.dataSource)
{
_idDataSource = element.dataSource;
_SetDataSourceObject(_idDataSource);
if (_ctlDataSource)
_ctlDataSource.attachEvent("onrowsdelete", _OnRowsDelete);
}
if (element.selectionIndex)
_iSelCur = parseInt(element.selectionIndex);
if (element.defaultSelection)
_iSelDefault = parseInt(element.defaultSelection);
if (element.autoExpand)
_bAutoExpand = ('false' != element.autoExpand) ? true : false;
if (element.freeze)
_bFreeze = ('false' != element.freeze) ? true : false;
if (element.feedBack)
_szFeedBack = element.feedBack;
if (element.templateSource)
_idTemplateSource = element.templateSource;
}
function _SetDataSourceObject(szDatasrc)
{
var rgszDatasrc = szDatasrc.split('.');
_ctlDataSource = window.document.applets(rgszDatasrc[0])
if (rgszDatasrc.length > 1)
{
_szRecordSetName = rgszDatasrc[1];
}
else
_szRecordSetName = "";
}
function _GetRecordset()
{
var recordset = null;
if (_ctlDataSource)
recordset = _ctlDataSource.namedRecordset(_szRecordSetName);
return recordset;
}
function _CalcItemsPerPage()
{
if (null == _tblList || 0 == _tblList.rows.length)
{
_nItemsPerPage = 0;
return;
}
var iItem = (_iSelCur != 0) ? 0 : _tblList.rows.length - 1;
var dySelItem = 0;
if (-1 != _iSelCur)
dySelItem = _tblList.rows(_iSelCur).offsetHeight;
if (0 <= iItem)
{
var dyItem = _tblList.rows(iItem).offsetHeight;
if (0 != dyItem)
{
_nItemsPerPage = Math.round((_divScroll.offsetHeight - dySelItem) / dyItem);
}
}
}
function _ScanSpecialElements()
{
var i;
var elem;
if (_idTemplateSource)
{
elem = window.document.all(_idTemplateSource);
}
else
{
elem = element;
}
var rgspan = elem.all.tags("SPAN");
var cspan = rgspan.length;
for (i = 0; i < cspan; i++)
{
var span = rgspan[i];
if (null != span.lbDisplayName)
_idDisplayName = span.id;
}
var rgtr = elem.all.tags("TR");
var ctr = rgtr.length;
for (i = ctr - 1; i >= 0; i--)
{
var trElem = rgtr[i];
if (null != trElem.lbExpandedRow)
{
var bEnable = (null != trElem.lbDisable) ? false : true;
_StoreTemplateRow(trElem, _cRowsExpand++, bEnable);
trElem.parentElement.deleteRow(trElem.rowIndex);
}
}
_htmlRow = elem.innerHTML;
if (_idTemplateSource)
{
elem.innerHTML = "";
}
}
function _PrepHTML()
{
if (false == _bFreeze)
{
window.attachEvent("onload", _OnDocumentLoad);
element.style.display = 'none';
}
}
function _CreateHTML()
{
if (_idDataSource)
{
element.innerHTML =
'<DIV ' + c_szStyle_Background + '> ' +
' <DIV ' + c_szStyle_Feedback + '> ' +
_szFeedBack +
' </DIV>' +
' <TABLE id=idTbl_' + uniqueID + ' ' + c_szStyle_Table + ' datasrc=#' + _idDataSource + ' cellpadding=0 cellspacing=0 style="display:none"> ' +
' <TBODY> ' +
' <TR> ' +
' <TD width=100%> ' +
_htmlRow +
' </TD> ' +
' </TR> ' +
' </TBODY> ' +
' </TABLE> ' +
'</DIV';
_dvFeedBack = element.children[0].children[0];
_tblList = element.children[0].children[1];
if (_szFeedBack == "")
_dvFeedBack.style.display = 'none';
else
_tblList.style.display = 'none';
_tblList.attachEvent("onreadystatechange", _OnTableReady);
}
else
{
if ("" == _htmlRow)
{
_htmlRow = '<TABLE></TABLE>';
}
element.innerHTML =
'<DIV ' + c_szStyle_Background + '> ' +
_htmlRow +
'</DIV';
_tblList = element.children[0].children[0];
element.style.display = '';
}
_divScroll = element.children[0];
_divScroll.attachEvent("onresize", _OnResize);
_tblList.attachEvent("onclick", _OnClick);
}
function InheritProperties(elemTo, elemFrom)
{
elemTo['id'] = elemFrom['id'];
elemTo['className'] = elemFrom['className'];
if (elemTo._bStore)
elemTo['tagName'] = elemFrom['tagName'];
if ('TR' != elemFrom['tagName'])
elemTo['innerHTML'] = elemFrom['innerHTML'];
elemTo['colSpan'] = elemFrom['colSpan'];
}
function _StoreTemplateRow(trTemplate, iRowStore, bEnable)
{
var ctd = trTemplate.cells.length;
var i;
var rowStore = new Array(ctd);
rowStore._ctd = ctd;
rowStore._bStore = true;
rowStore._bEnable = bEnable;
InheritProperties(rowStore, trTemplate);
for (i = 0; i < ctd; i++)
{
rowStore[i] = new Object();
rowStore[i]._bStore = true;
InheritProperties(rowStore[i], trTemplate.cells(i));
}
_rgTemplateRows[iRowStore] = rowStore;
}
function _CollapseRow(tblElem)
{
var cRow = _cRowsAdded;
for (; 0 < cRow; cRow--)
{
tblElem.deleteRow();
}
_cRowsAdded = 0;
}
function _ExpandRow(tblElem)
{
var iRow;
_cRowsAdded = 0;
for (iRow = _cRowsExpand - 1; iRow >= 0; iRow--)
{
var rowTemplate = _rgTemplateRows[iRow];
if (rowTemplate._bEnable)
{
var trNew = tblElem.insertRow();
if (trNew)
{
var cCol = rowTemplate._ctd;
var iCol;
InheritProperties(trNew, rowTemplate);
for (iCol = 0; iCol < cCol; iCol++)
{
var tdNew = trNew.insertCell();
if (tdNew)
InheritProperties(tdNew, rowTemplate[iCol]);
}
_cRowsAdded++;
}
}
}
}
var ASF_SELECT = 0x01;
var ASF_FOCUS = 0x02;
function _ApplySelectionStyle(tblElem, state)
{
var elemDisplayName = tblElem.all(_idDisplayName);
var trDisplayName = _GetParentElem(elemDisplayName, "TR");
if (state & ASF_SELECT)
{
if (state & ASF_FOCUS)
{
trDisplayName.style.backgroundColor = 'highlight';
trDisplayName.style.color = 'highlighttext';
elemDisplayName.style.fontWeight = 'bold';
tblElem.style.backgroundColor = 'highlight';
tblElem.style.color = 'highlighttext';
}
else
{
trDisplayName.style.backgroundColor = 'buttonface';
trDisplayName.style.color = '';
elemDisplayName.style.fontWeight = 'bold';
tblElem.style.backgroundColor = 'buttonface';
tblElem.style.color = '';
}
}
else
{
trDisplayName.style.backgroundColor = '';
trDisplayName.style.color = '';
elemDisplayName.style.fontWeight = '';
tblElem.style.backgroundColor = '';
tblElem.style.color = '';
}
}
function _MakeRowVisible(trSel)
{
var yTop = trSel.offsetTop - _divScroll.scrollTop;
var yBottom = trSel.offsetTop + trSel.offsetHeight - _divScroll.scrollTop;
if (yBottom > _divScroll.offsetHeight)
{
_divScroll.scrollTop += yBottom - _divScroll.offsetHeight;
}
else if (yTop < 0)
{
_divScroll.scrollTop += yTop;
}
}
function _SetTabIndex(elem, bSet, bFireFocus)
{
if (elem)
{
if (bSet)
{
var tabIndexOriginal = elem.tabIndex;
elem.tabIndex = 0;
if (bFireFocus && _bHasFocus && !elem._bFocus)
{
var focusChangeOriginal = _bInternalFocusChange;
_bInternalFocusChange = true;
try
{
elem.focus();
}
catch(e)
{
elem.tabIndex = tabIndexOriginal;
_bInternalFocusChange = focusChangeOriginal;
}
}
}
else
elem.tabIndex = -1;
}
}
function _AttachItemEvents(elem)
{
if (elem)
{
if (null == elem._lbEventsBound)
{
elem._lbEventsBound = true;
elem.attachEvent("onkeydown", _OnKeyDownItem);
elem.attachEvent("onblur", _OnBlurItem);
elem.attachEvent("onfocus", _OnFocusItem);
}
}
}
function _GetItemSrcChild(trElem)
{
if (trElem)
{
return trElem.children[0].children[0];
}
return null;
}
function _GetItemDisplayNameElem(trElem)
{
var srcChild = _GetItemSrcChild(trElem);
if (srcChild)
return srcChild.all(_idDisplayName);
return null;
}
function _SelectItem(iSelNew, bFireFocus)
{
var bRet = false;
var trElem;
var srcChild;
var elemDisplayName;
var stateFocus = _bHasFocus ? ASF_FOCUS : 0;
if (-1 != _iSelCur)
{
if (iSelNew == _iSelCur)
{
return false;
}
trElem = _tblList.rows(_iSelCur);
srcChild = _GetItemSrcChild(trElem);
elemDisplayName = srcChild.all(_idDisplayName);
_FireCustomDraw(trElem, srcChild, false, 'prepaint');
_FireSelectItem(trElem, srcChild, 'deselected');
_ApplySelectionStyle(srcChild, stateFocus);
if (_bAutoExpand)
_CollapseRow(srcChild);
_FireCustomDraw(trElem, srcChild, false, 'postpaint');
_SetTabIndex(elemDisplayName, false, false);
}
if (0 == _tblList.rows.length)
iSelNew = -1;
else if (iSelNew >= _tblList.rows.length)
iSelNew = _tblList.rows.length - 1;
_iSelCur = iSelNew;
if (-1 != _iSelCur)
{
var recordset = _GetRecordset();
trElem = _tblList.rows(_iSelCur);
srcChild = _GetItemSrcChild(trElem);
elemDisplayName = srcChild.all(_idDisplayName);
if (recordset && recordset.state != 0)
recordset.AbsolutePosition = trElem.recordNumber;
_FireCustomDraw(trElem, srcChild, true, 'prepaint');
_ApplySelectionStyle(srcChild, ASF_SELECT | stateFocus);
if (_bAutoExpand)
_ExpandRow(srcChild);
_MakeRowVisible(trElem);
_FireCustomDraw(trElem, srcChild, true, 'postpaint');
_FireSelectItem(trElem, srcChild,'selected');
_SetTabIndex(elemDisplayName, true, bFireFocus);
_AttachItemEvents(elemDisplayName);
bRet = true;
}
return bRet;
}
function _PaintSelectedItem(stateFocus)
{
if (-1 < _iSelCur)
{
var trElem = _tblList.rows(_iSelCur);
if (trElem)
{
var srcChild = _GetItemSrcChild(trElem);
if (srcChild)
{
var elemDisplayName = srcChild.all(_idDisplayName);
_ApplySelectionStyle(srcChild, ASF_SELECT | stateFocus);
_FireSetFocus(trElem, srcChild, stateFocus & ASF_FOCUS);
}
}
}
}
function _FireSelectItem(trElem, srcChild, szState)
{
var evt = createEventObject();
evt.srcIndex = _iSelCur;
evt.srcRow = trElem;
evt.selState = szState;
evt.srcChild = srcChild;
evt.Recordset = _GetRecordset();
onSelectItem.fire(evt);
}
function _FireCustomDraw(trElem, srcChild, bSelected, drawStage)
{
var evt = createEventObject();
evt.srcIndex = _iSelCur;
evt.srcRow = trElem;
evt.srcChild = srcChild;
evt.Recordset = _GetRecordset();
evt.drawStage = drawStage;
evt.bSelected = bSelected;
evt.bFocus = _bHasFocus;
onCustomDraw.fire(evt);
}
function _FireSetFocus(trElem, srcChild, bFocus)
{
var evt = createEventObject();
evt.srcIndex = _iSelCur;
evt.srcRow = trElem;
evt.srcChild = srcChild;
evt.bFocus = bFocus;
onSetFocus.fire(evt);
}
function _FindTemplateByID(id)
{
var i;
for (i = 0; i < _cRowsExpand; i++)
{
if (_rgTemplateRows[i].id == id)
return _rgTemplateRows[i];
}
return null;
}
function EnableTemplate(idTemplate, bEnable)
{
var rowTemplate = _FindTemplateByID(idTemplate);
if (rowTemplate)
rowTemplate._bEnable = bEnable ? true : false;
}
function Refresh()
{
_ScanSpecialElements();
_CreateHTML();
}
function focus()
{
if (_tblList && -1 != _iSelCur)
{
var trElem = _tblList.rows(_iSelCur);
var elem = _GetItemDisplayNameElem(trElem);
if (elem)
{
try
{
elem.focus();
}
catch(e)
{
}
}
}
else
{
_bHasFocus = true;
}
}
function blur()
{
if (_tblList && -1 != _iSelCur)
{
var trElem = _tblList.rows(_iSelCur);
var elem = _GetItemDisplayNameElem(trElem);
if (elem)
elem.blur();
}
else
{
_bHasFocus = false;
}
}
function _OnRowsDelete()
{
if (window.event.qualifier == _szRecordSetName)
{
if (-1 != _iSelCur)
{
var trSelCur = _tblList.rows(_iSelCur);
var recordset = _GetRecordset();
var rsClone = recordset.Clone();
if (null != rsClone)
{
var rgbkmk = window.event.bookmarks;
var cbkmk = rgbkmk.length;
var i;
for (i = 0; i < cbkmk; i++)
{
rsClone.Bookmark = rgbkmk(i);
if (rsClone.AbsolutePosition == trSelCur.recordNumber)
{
var iSelT = _iSelCur + 1;
var bDec = true;
if (_iSelCur == _tblList.rows.length - 1)
{
iSelT = _iSelCur - 1;
bDec = false;
}
_SelectItem(iSelT, true);
if (bDec)
{
_iSelCur--;
}
}
}
}
}
}
}
function _InternalResetSelection()
{
_iSelCur = -1;
_cRowsAdded = 0;
}
function ResetSelection()
{
_SelectItem(-1, true);
}
var KC_UP = 38;
var KC_DOWN = 40;
var KC_END = 35;
var KC_HOME = 36;
var KC_PGUP = 33;
var KC_PGDOWN = 34;
function _OnKeyDown()
{
var keyCode = window.event.keyCode;
switch (keyCode)
{
case KC_UP:
case KC_DOWN:
case KC_END:
case KC_HOME:
case KC_PGUP:
case KC_PGDOWN:
window.event.returnValue = false;
break;
}
}
function _OnKeyDownItem()
{
var keyCode = window.event.keyCode;
var iSelT = _iSelCur;
var bDoSomething = false;
switch (keyCode)
{
case KC_UP:
if (iSelT > 0)
iSelT--;
break;
case KC_DOWN:
if (iSelT < _tblList.rows.length - 1)
iSelT++;
break;
case KC_HOME:
iSelT = 0;
break;
case KC_END:
iSelT = _tblList.rows.length - 1;
break;
case KC_PGUP:
iSelT = _iSelCur - _nItemsPerPage;
if (iSelT < 0)
iSelT = 0;
break;
case KC_PGDOWN:
iSelT = _iSelCur + _nItemsPerPage;
if (iSelT > _tblList.rows.length - 1)
iSelT = _tblList.rows.length - 1;
break;
}
if (iSelT != _iSelCur)
{
_SelectItem(iSelT, true);
window.event.returnValue = false;
}
}
function _OnResize()
{
_CalcItemsPerPage();
}
function _OnClick()
{
var elem = window.event.srcElement;
var trTopParent = _GetTopmostElem(elem, "TR");
if (trTopParent)
{
var elemDisplayName = trTopParent.all(_idDisplayName);
var iRow = trTopParent.rowIndex;
var bFireFocus = true;
var bOldFocus = _bHasFocus;
if (elem == elemDisplayName && iRow == _iSelCur)
{
bFireFocus = false;
}
_bHasFocus = true;
if (false == _SelectItem(iRow, bFireFocus) &&
bOldFocus != _bHasFocus)
{
_PaintSelectedItem(ASF_FOCUS);
if (bFireFocus)
{
_SetTabIndex(elemDisplayName, true, true);
}
}
}
}
function _OnBlurItem()
{
var elem = window.event.srcElement;
elem._bFocus = false;
if (true == _bHasFocus && false == _bInternalFocusChange)
{
_bHasFocus = false;
_PaintSelectedItem(0);
}
_bInternalFocusChange = false;
}
function _OnFocusItem()
{
var elem = window.event.srcElement;
elem._bFocus = true;
if (false == _bHasFocus)
{
_bHasFocus = true;
_PaintSelectedItem(ASF_FOCUS);
}
_bInternalFocusChange = false;
}
function _OnError(szMsg, szUrl, iLine)
{
alert("An unexpected error occurred.\n\n" + szMsg + "\n" + szUrl + "\nLine: " + iLine);
return true;
}
function _GetTopmostElem(elem, tagFind)
{
var elemLast = null;
while (elem != element)
{
if (tagFind == elem.tagName.toUpperCase())
elemLast = elem;
elem = elem.parentElement;
}
return elemLast;
}
function _GetParentElem(elem, tagFind)
{
while (elem != element)
{
if (tagFind == elem.tagName.toUpperCase())
return elem;
elem = elem.parentElement;
}
return null;
}
</SCRIPT><PROPERTY name="dataSource" get=get_dataSource put=put_dataSource /><PROPERTY name="selectionIndex" get=get_selIndex put=put_selIndex /><PROPERTY name="defaultSelection" get=get_defaultSel put=put_defaultSel /><PROPERTY name="autoExpand" get=get_autoExpand put=put_autoExpand /><PROPERTY name="freeze" get=get_freeze put=put_freeze /><PROPERTY name="feedBack" get=get_feedBack put=put_feedBack /><PROPERTY name="templateSource" get=get_templateSource put=put_templateSource /></PUBLIC:HTC> <PUBLIC:HTC URN="shellctls"><METHOD name="SetExecButton" /><METHOD name="ShowButton" /><METHOD name="focus" /><METHOD name="blur" /><EVENT id=onSelectItem name="onSelectItem" /><EVENT id=onExecItem name="onExecItem" /><EVENT id=onComplete name="onComplete" /><ATTACH event="oncontentready" handler=_OnContentReady /><ATTACH event="ondragstart" handler=_CancelDragStart /><SCRIPT language="javascript">
var _bLoading = true;
var _iBtnPressed = -1;
var _iBtnHot = -1;
var _iBtnTabIndex = -1;
var _iBtnCapture = -1;
var _cButtons = 0;
var _rgbtn = new Array();
var _rgdivButtons = new Array();
var _styleinfo = null;
var _mpStyle = new Object();
var _bHasFocus = false;
var _bInternalFocusChange = false;
var BS_PRESSED = 0x01;
var BS_HOT = 0x02;
var c_szStyle_ButtonNormal =
' style="' +
'position:relative; ' +
'padding:2px; ' +
'border-style:solid; ' +
'border-width:1px; ' +
'border-top-color:threedshadow; ' +
'border-left-color:threedshadow; ' +
'border-right-color:threedshadow; ' +
'border-bottom-color:threedshadow; ' +
'"';
var c_szStyle_ButtonText =
' style="' +
'position:relative; ' +
'color:white; ' +
'cursor:default; ' +
'"';
var c_szStyle_Background =
' style="' +
'position:relative; ' +
'width:87px; ' +
'height:100%; ' +
'padding:2px; ' +
'background-color:threedshadow; ' +
'"';
element.attachEvent("onerror", _OnError);
_GetPropertyDefaults();
function get_button() { return _iBtnPressed; }
function put_button(iBtn)
{
if (_bLoading)
return;
_PushButton(parseInt(iBtn), 0);
}
function _OnContentReady()
{
_bLoading = false;
_ScanSpecialElements();
_CreateHTML();
}
function _OnDocumentLoad()
{
_Initialize();
}
function _GetPropertyDefaults()
{
if (element.currentButton)
_iBtnPressed = parseInt(element.currentButton);
}
function _IDName(szID, idx)
{
return szID + idx + '_' + uniqueID;
}
function _StoreButton(elem, ibtn)
{
var btn = new Object;
var szBtnIndex = ' _ibtn=' + ibtn;
var L_PlacesGraphic_Text = 'Graphic';
btn.id = elem.id;
btn._idBtn = _IDName('idBtn', ibtn);
btn._ibtn = ibtn;
btn._idBR = _IDName('idBtnBR', ibtn);
btn._bHidden = false;
if ("undefined" != typeof elem.execItem)
btn._bExecButton = true;
else
btn._bExecButton = false;
btn.innerHTML =
'<DIV id=' + btn._idBtn + c_szStyle_ButtonNormal + szBtnIndex + ' _btnState=0> ' +
' <CENTER id=' + _IDName('idCtr', ibtn) + szBtnIndex + '> ' +
' <IMG id=' + _IDName('idImg', ibtn) + ' style="position:relative" src=' + elem.img + szBtnIndex + ' title="" alt="' + L_PlacesGraphic_Text + '" >' +
' <BR>' +
' <SPAN id=' + _IDName('idSpan', ibtn) + c_szStyle_ButtonText + szBtnIndex + ' nofocusrect>' +
elem.innerHTML +
' </SPAN>' +
' </CENTER> ' +
'</DIV>';
_rgbtn[ibtn] = btn;
}
function _ScanSpecialElements()
{
var i;
var rgspan = element.all.tags("SPAN");
var cspan = rgspan.length;
for (i = 0; i < cspan; i++)
{
var span = rgspan[i];
_StoreButton(span, _cButtons++);
span.innerHTML = "";
}
}
function _CreateHTML()
{
var i;
var szButtons = '';
element.style.visibility = 'hidden';
for (i = 0; i < _cButtons; i++)
{
szButtons = szButtons + _rgbtn[i].innerHTML + '<BR id=' + _rgbtn[i]._idBR + '>';
}
element.innerHTML =
'<DIV ' + c_szStyle_Background + ' _ibtn=-1> ' +
szButtons +
'</DIV>';
var rgdivs = element.all.tags("DIV");
for (i = 0; i < _cButtons; i++)
{
var elem = rgdivs[_rgbtn[i]._idBtn];
_rgdivButtons[i] = elem;
elem.attachEvent('onmouseover', _OnMouseOver);
elem.attachEvent('onmouseout', _OnMouseOut);
elem.attachEvent('onmousedown', _OnMouseDown);
elem.attachEvent('onmouseup', _OnMouseUp);
var spanCaption = _GetCaptionElem(i);
spanCaption.attachEvent('onblur', _OnBlurDiv);
spanCaption.attachEvent('onfocus', _OnFocusDiv);
spanCaption.attachEvent('onkeydown', _OnKeyDownDiv);
elem.all(_IDName('idCtr', i)).attachEvent('ondragstart', _CancelDragStart);
}
window.attachEvent("onload", _OnDocumentLoad);
_FireComplete();
element.style.visibility = 'visible';
}
function _Initialize()
{
if (-1 != _iBtnPressed)
{
var ibtn = _iBtnPressed;
_iBtnPressed = -1;
_PushButton(ibtn, 0);
}
window.document.attachEvent("onkeydown", _OnKeyDownDocument);
}
function _BtnFromElement(elem)
{
var ibtn = -1;
if (elem && null == elem._ibtn)
{
while (elem)
{
if (elem._ibtn)
break;
elem = elem.parentElement;
}
}
if (elem)
ibtn = elem._ibtn;
return ibtn;
}
function _BtnFromID(idBtn)
{
var ibtn;
for (ibtn = 0; ibtn < _rgbtn.length; ibtn++)
{
if (idBtn == _rgbtn[ibtn].id)
return ibtn;
}
return -1;
}
function _DrawButtonFrame(elem, szState)
{
switch (szState)
{
case 'normal':
elem.style.borderTopColor = 'threedshadow';
elem.style.borderLeftColor = 'threedshadow';
elem.style.borderRightColor = 'threedshadow';
elem.style.borderBottomColor = 'threedshadow';
break;
case 'hotitem':
elem.style.borderTopColor = 'threedhighlight';
elem.style.borderLeftColor = 'threedhighlight';
elem.style.borderRightColor = 'threeddarkshadow';
elem.style.borderBottomColor = 'threeddarkshadow';
break;
case 'pushed':
elem.style.borderTopColor = 'threeddarkshadow';
elem.style.borderLeftColor = 'threeddarkshadow';
elem.style.borderRightColor = 'threedhighlight';
elem.style.borderBottomColor = 'threedhighlight';
break;
}
}
function _DrawButton(ibtn, bDown)
{
var div = _rgdivButtons[ibtn];
var bDownCur = (div._btnState & BS_PRESSED) ? true : false;
var elemImg = div.all(_IDName('idImg', div._ibtn));
var elemText = div.all(_IDName('idSpan', div._ibtn));
if (bDownCur == bDown)
return;
if (bDown)
{
_DrawButtonFrame(div, 'pushed');
elemImg.style.pixelLeft = elemImg.style.pixelLeft + 1;
elemImg.style.pixelTop = elemImg.style.pixelTop + 1;
elemText.style.pixelLeft = elemText.style.pixelLeft + 1;
elemText.style.pixelTop = elemText.style.pixelTop + 1;
div._btnState |= BS_PRESSED;
}
else
{
if (ibtn == _iBtnHot)
_DrawButtonFrame(div, 'hotitem');
else
_DrawButtonFrame(div, 'normal');
elemImg.style.pixelLeft = elemImg.style.pixelLeft - 1;
elemImg.style.pixelTop = elemImg.style.pixelTop - 1;
elemText.style.pixelLeft = elemText.style.pixelLeft - 1;
elemText.style.pixelTop = elemText.style.pixelTop - 1;
div._btnState &= ~ BS_PRESSED;
}
}
function _GetCaptionElem(ibtn)
{
var spanCaption = null;
var div = _rgdivButtons[ibtn];
if (div)
spanCaption = div.children[0].children[2];
return spanCaption;
}
function _SetTabIndex(ibtn, bSetFocus)
{
if (ibtn == _iBtnTabIndex)
return;
var elem = _GetCaptionElem(_iBtnTabIndex);
if (elem)
elem.tabIndex = -1;
elem = _GetCaptionElem(ibtn);
if (elem)
{
elem.tabIndex = 0;
if (bSetFocus)
{
_bInternalFocusChange = true;
elem.focus();
}
}
_iBtnTabIndex = ibtn;
}
var PBF_SETFOCUS = 0x01;
var PBF_MOUSE = 0x02;
function _PushButton(ibtn, dwFlags)
{
var btn = _rgbtn[ibtn];
if (btn && btn._bHidden)
{
return;
}
if (btn && btn._bExecButton)
{
_DrawButton(ibtn, false);
_FireExecItem(btn);
}
else
{
if ((dwFlags & PBF_MOUSE) && ibtn == _iBtnPressed)
return;
if (-1 != _iBtnPressed && ibtn != _iBtnPressed)
{
_DrawButton(_iBtnPressed, false);
}
_iBtnPressed = ibtn;
_SetTabIndex(ibtn, dwFlags & PBF_SETFOCUS);
if (0 <= _iBtnPressed && _iBtnPressed < _cButtons)
{
_DrawButton(_iBtnPressed, true);
_FireSelectItem(btn);
}
}
}
var SHIF_SETTABINDEX = 0x01;
var SHIF_RESETTABSTOP = 0x02;
var SHIF_MOUSE = 0x04;
function _SetHotItem(ibtn, dwFlags)
{
var div;
if (ibtn == _iBtnHot)
return;
if (-1 != _iBtnHot && _iBtnHot != ibtn)
{
div = _rgdivButtons[_iBtnHot];
if (_iBtnHot == _iBtnPressed)
_DrawButtonFrame(div, 'pushed');
else
_DrawButtonFrame(div, 'normal');
}
if (-1 != ibtn)
{
div = _rgdivButtons[ibtn];
if ( !(dwFlags & SHIF_MOUSE) || ibtn != _iBtnPressed)
_DrawButtonFrame(div, 'hotitem');
}
_iBtnHot = ibtn;
if (dwFlags & SHIF_SETTABINDEX)
{
if (dwFlags & SHIF_RESETTABSTOP)
{
_SetTabIndex(_iBtnPressed, false);
}
else
{
_SetTabIndex(ibtn, true);
}
}
}
function _FireSelectItem(btn)
{
var evt = createEventObject();
evt.srcID = btn.id;
onSelectItem.fire(evt);
}
function _FireExecItem(btn)
{
var evt = createEventObject();
evt.srcID = btn.id;
onExecItem.fire(evt);
}
function _FireComplete()
{
var evt = createEventObject();
onComplete.fire(evt);
}
var LMOUSE_BUTTON = 1
function _OnMouseDown()
{
var ibtn = _BtnFromElement(window.event.srcElement);
var div;
if (LMOUSE_BUTTON != window.event.button)
return;
_DrawButton(ibtn, true);
_iBtnCapture = ibtn;
div = _rgdivButtons[ibtn];
div.setCapture(false);
}
function _OnMouseUp()
{
var ibtn = _BtnFromElement(window.event.srcElement);
if (LMOUSE_BUTTON != window.event.button)
return;
if (-1 != _iBtnCapture)
{
var div = _rgdivButtons[_iBtnCapture];
div.releaseCapture();
if (_iBtnCapture != ibtn)
_DrawButton(_iBtnCapture, (_iBtnPressed == _iBtnCapture));
if (-1 != ibtn && ibtn == _iBtnCapture)
_PushButton(ibtn, PBF_SETFOCUS | PBF_MOUSE);
_iBtnCapture = -1;
}
}
function _OnMouseOver()
{
var ibtnTo = _BtnFromElement(window.event.toElement);
var ibtnFrom = _BtnFromElement(window.event.fromElement);
if (-1 != _iBtnCapture)
{
if (ibtnTo == _iBtnCapture && ibtnFrom != _iBtnCapture)
{
_DrawButton(_iBtnCapture, true);
}
}
else
{
_SetHotItem(ibtnTo, SHIF_MOUSE);
}
}
function _OnMouseOut()
{
var event = window.event;
var ibtnTo = _BtnFromElement(event.toElement);
var ibtnFrom = _BtnFromElement(event.fromElement);
if (ibtnTo != ibtnFrom)
{
_SetHotItem(-1, SHIF_MOUSE);
if (ibtnFrom == _iBtnCapture && _iBtnCapture != _iBtnPressed)
_DrawButton(_iBtnCapture, false);
}
}
var CYCLE_PUSHED = 1;
var CYCLE_HOT = 2;
function _CycleButton(bDown, ibtnStart, cycle)
{
var ibtn = ibtnStart;
var n = bDown ? 1 : -1;
var btn;
var cbtns = 0;
while (true)
{
if (++cbtns > _cButtons)
break;
if (bDown)
ibtn = (ibtn + 1) % _cButtons;
else
ibtn = ((ibtn - 1) + _cButtons) % _cButtons;
btn = _rgbtn[ibtn];
if (CYCLE_PUSHED == cycle)
{
if (ibtn == _iBtnPressed || btn._bExecButton || btn._bHidden)
continue;
else
break;
}
else
{
if (btn._bHidden)
continue;
else
break;
}
}
return ibtn;
}
function _CycleHotItem(bDown)
{
_SetHotItem(_CycleButton(bDown, _iBtnHot, CYCLE_HOT), SHIF_SETTABINDEX);
}
function _CyclePushedButton(bDown)
{
_PushButton(_CycleButton(bDown, _iBtnPressed, CYCLE_PUSHED), 0);
}
function SetExecButton(idBtn, bVal)
{
var ibtn = _BtnFromID(idBtn);
if (-1 != ibtn)
{
_rgbtn[ibtn]._bExecButton = bVal;
}
}
function ShowButton(idBtn, bShow)
{
var ibtn = _BtnFromID(idBtn);
if (-1 != ibtn)
{
var btn = _rgbtn[ibtn];
if (btn)
{
var idBtnUnique = btn._idBtn;
var elemBtn = element.all[idBtnUnique];
if (bShow)
{
elemBtn.style.display = 'block';
element.all[btn._idBR].style.display = 'block';
}
else
{
elemBtn.style.display = 'none';
element.all[btn._idBR].style.display = 'none';
}
btn._bHidden = !bShow;
}
}
}
function focus()
{
var div = _rgdivButtons[_iBtnTabIndex];
if (div)
div.focus();
}
function blur()
{
var div = _rgdivButtons[_iBtnTabIndex];
if (div)
div.blur();
}
var KC_LEFT = 37;
var KC_UP = 38;
var KC_RIGHT = 39;
var KC_DOWN = 40;
var KC_SPACE = 32;
var KC_RETURN = 13;
var KC_TAB = 9;
function _OnKeyDownDocument()
{
var evt = window.event;
if (KC_TAB == evt.keyCode && evt.ctrlKey)
{
var bDir = evt.shiftKey ? false : true;
_CyclePushedButton(bDir);
evt.returnValue = false;
}
}
function _OnKeyDownDiv()
{
var keyCode = window.event.keyCode;
if (KC_UP == keyCode || KC_LEFT == keyCode)
{
_CycleHotItem(false);
window.event.returnValue = false;
}
else if (KC_DOWN == keyCode || KC_RIGHT == keyCode)
{
_CycleHotItem(true);
window.event.returnValue = false;
}
else if (KC_SPACE == keyCode || KC_RETURN == keyCode)
{
_PushButton(_iBtnHot, PBF_SETFOCUS);
}
}
function _OnBlurDiv()
{
if (false == _bInternalFocusChange && true == _bHasFocus)
{
_bHasFocus = false;
_SetHotItem(-1, SHIF_SETTABINDEX | SHIF_RESETTABSTOP);
}
}
function _OnFocusDiv()
{
if (false == _bInternalFocusChange && false == _bHasFocus &&
"complete" == window.document.readyState)
{
_bHasFocus = true;
_CycleHotItem(true);
}
_bInternalFocusChange = false;
}
function _OnError(szMsg, szUrl, iLine)
{
alert("An unexpected error occurred.\n\n" + szMsg + "\n" + szUrl + "\nLine: " + iLine);
return true;
}
function _CancelDragStart()
{
window.event.returnValue = false;
}
</SCRIPT><PROPERTY name="currentButton" get=get_button put=put_button /></PUBLIC:HTC>
<arpframe resid=main id=atom(frame) sheet=styleref(frame) layout=borderlayout()>
<element id=atom(closepane) sheet=styleref(closepane) layoutpos=bottom layout=borderlayout()>
<button id=atom(close) layoutpos=right Shortcut=rcchar(76) accessible=true accRole=43 accName= rcstr(4) content=rcstr(4) />
</element>
<ARPSelector id=atom(optionlist) sheet=styleref(optionpane) layout=borderlayout() contentalign=wrapcenter>
<button id=atom(change) layoutpos=top accessible=true accRole=43 accName=rcstr(5) layout=borderlayout()>
<element layoutpos=top content=rcbmp(101)/>
<element layoutpos=bottom Shortcut=rcchar(84) content=rcstr(5) />
</button>
<button id=atom(addnew) accessible=true accRole=43 accName=rcstr(6) layoutpos=top layout=borderlayout()>
<element layoutpos=top content=rcbmp(102)/>
<element layoutpos=bottom Shortcut=rcchar(85) content=rcstr(6) />
</button>
<button id=atom(addrmwin) accessible=true accRole=43 accName=rcstr(7) layoutpos=top layout=borderlayout()>
<element layoutpos=top content=rcbmp(103)/>
<element layoutpos=bottom Shortcut=rcchar(86) content=rcstr(7)/>
</button>
</ARPSelector>
<element id=atom(contentpane) sheet=styleref(contentpane) layoutpos=client layout=borderlayout()>
<element id=atom(changepane) layoutpos=client layout=borderlayout()>
<element id=atom(changecontentheader) layout=borderlayout() layoutpos=top>
<element id=atom(label) layoutpos=left accessible=true accRole=41 accName=rcstr(8) content=rcstr(8) />
<element id=atom(sort) layout=borderlayout() layoutpos=right>
<element Shortcut=rcchar(77) layoutpos=left accessible=true accRole=41 accName=rcstr(40) content=rcstr(40) />
<combobox id=atom(sortcombo) accessible=true accRole=46 accName=rcstr(40) layoutpos=right width=rcint(90) />
</element>
</element>
<element id=atom(installedlistcontainer) layoutpos=client layout=borderlayout()>
<scrollviewer id=atom(listscroller) sheet=styleref(listscroller) layoutpos=client xscrollable=false>
<selector id=atom(installeditemlist) sheet=styleref(itemlist) layout=borderlayout()/>
</scrollviewer>
</element>
</element>
<element id=atom(addnewpane) layoutpos=none layout=borderlayout()>
<element id=atom(addfromCDPane) layout=borderlayout() layoutpos=top>
<element layoutpos=top accessible=true accRole=41 accName=rcstr(9) content=rcstr(9)></element>
<element layoutpos=top layout=borderlayout()>
<element layoutpos=left content=rcbmp(101)/>
<element layoutpos=client accessible=true accRole=41 accName=rcstr(10) contentalign=wrapleft content=rcstr(10) />
<element layoutpos=right layout=borderlayout()>
<button layoutpos=top id=atom(addfromdisk) accessible=true accRole=43 accName=rcstr(11) Shortcut=rcchar(78) content=rcstr(11) />
</element>
</element>
</element>
<element id=atom(addfromMSpane) layout=borderlayout() layoutpos=top>
<element layoutpos=top accessible=true accRole=41 accName=rcstr(12) content=rcstr(12)></element>
<element layoutpos=top layout=borderlayout()>
<element layoutpos=left content=rcbmp(104)/>
<element layoutpos=client accessible=true accRole=41 accName=rcstr(13) contentalign=wrapleft content=rcstr(13) />
<element layoutpos=right layout=borderlayout()>
<button layoutpos=top id=atom(addfrommsft) accessible=true accRole=43 accName=rcstr(14) Shortcut=rcchar(79) content=rcstr(14) />
</element>
</element>
</element>
<element id=atom(addfromNetworkpane) layout=borderlayout() layoutpos=client>
<element id=atom(addcontentheader) layout=borderlayout() layoutpos=top>
<element id=atom(label) accessible=true accRole=41 accName=rcstr(42) layoutpos=left content=rcstr(42) />
<element layout=borderlayout() layoutpos=right>
<element id=atom(categorylabel) layoutpos=left Shortcut=rcchar(80) accessible=true accRole=41 accName=rcstr(41) content=rcstr(41) />
<combobox id=atom(categorycombo) accessible=true accRole=46 accName=rcstr(41) layoutpos=right width=127 />
</element>
</element>
<element id=atom(publishedlistcontainer) layoutpos=client layout=borderlayout()>
<scrollviewer id=atom(listscroller) sheet=styleref(listscroller) layoutpos=client xscrollable=false>
<selector id=atom(publisheditemlist) sheet=styleref(itemlist) accessible=true accRole=41 accName=rcstr(57) content=rcstr(57) contentalign=wrapleft layout=borderlayout()/>
</scrollviewer>
</element>
</element>
</element>
<element id=atom(addrmwinpane) layoutpos=none layout=filllayout()>
<element id=atom(addrmwinoc) layout=borderlayout()>
<element id=atom(addwincomponent) layout=borderlayout() layoutpos=top>
<element layoutpos=top accessible=true accRole=41 accName=rcstr(69) content=rcstr(69)></element>
<element layoutpos=top layout=borderlayout()>
<element layoutpos=left content=rcbmp(101)/>
<element layoutpos=client accessible=true accRole=41 accName=rcstr(70) contentalign=wrapleft content=rcstr(70) />
<element layoutpos=right layout=borderlayout()>
<button layoutpos=top accessible=true accRole=41 accName=rcstr(71) id=atom(components) content=rcstr(71) />
</element>
</element>
</element>
<element id=atom(sevicespane) layout=borderlayout() layoutpos=client>
<element id=atom(servicecontentheader) layout=borderlayout() layoutpos=top>
<element id=atom(label) layoutpos=left accessible=true accRole=41 accName=rcstr(72) content=rcstr(72) />
</element>
<element id=atom(ocsetuplistcontainer) layoutpos=client layout=borderlayout()>
<scrollviewer id=atom(listscroller) sheet=styleref(listscroller) layoutpos=client xscrollable=false>
<selector id=atom(ocsetupitemlist) sheet=styleref(itemlist) layout=borderlayout()/>
</scrollviewer>
</element>
</element>
</element>
</element>
</element>
</arpframe>
<arpitem resid=installeditem layoutpos=top layout=borderlayout()>
<element id=atom(icon) layoutpos=left content=rcbmp(106)/>
<element layoutpos=top layout=borderlayout()>
<element Layout=RowLayout(22,1,3) id=atom(row1) layoutpos=right contentalign=topright enabled=false>
<element id=atom(sizelabel) accessible=true accRole=41 accName=rcstr(60) content=rcstr(60) />
<button id=atom(size) />
</element>
<element id=atom(title) layoutpos=left contentalign=wrapleft/>
</element>
<element id=atom(exinfo) layoutpos=none layout=borderlayout()>
<element layoutpos=top layout=borderlayout()>
<element layout=flowlayout(0) layoutpos=client>
<button id=atom(supinfo) accessible=true accRole=41 accName=rcstr(16) content=rcstr(16) />
</element>
<element Layout=RowLayout(22,1,3) id=atom(row2) layoutpos=right contentalign=wrapright>
<element id=atom(freqlabel) accessible=true accRole=41 accName=rcstr(61) content=rcstr(61) />
<button id=atom(freq) />
</element>
</element>
<element Layout=BorderLayout() layoutpos=top>
<element Layout=RowLayout(22,1,3) id=atom(row3) contentalign=wrapright layoutpos=right>
<element id=atom(lastlabel) accessible=true accRole=41 accName=rcstr(62) content=rcstr(62) />
<element id=atom(lastused) />
</element>
</element>
<element id=atom(instruct) layoutpos=client contentalign=wrapleft/>
<element id=atom(itemaction) sheet=styleref(itemaction) layoutpos=right layout=borderlayout()/>
</element>
</arpitem>
<arpitem resid=publisheditem layoutpos=top layout=borderlayout()>
<element id=atom(icon) layoutpos=left content=rcbmp(106)/>
<element layoutpos=top layout=borderlayout()>
<element id=atom(title) layoutpos=left contentalign=wrapleft/>
<element id=atom(installed) layoutpos=right contentalign=topright/>
</element>
<element id=atom(exinfo) layoutpos=none layout=borderlayout()>
<element id=atom(instruct) layoutpos=client accessible=true accRole=41 accName=rcstr(54) content=rcstr(54) contentalign=wrapleft/>
<element id=atom(itemaction) sheet=styleref(itemaction) layoutpos=right layout=borderlayout()/>
</element>
</arpitem>
<arpitem resid=ocsetupitem layoutpos=top layout=borderlayout()>
<element id=atom(icon) layoutpos=left content=rcbmp(107)/>
<element layoutpos=top layout=borderlayout()>
<element id=atom(title) layoutpos=left contentalign=wrapleft/>
</element>
<element id=atom(exinfo) layoutpos=none layout=borderlayout()>
<element id=atom(instruct) layoutpos=top accessible=true accRole=41 accName=rcstr(67) content=rcstr(67) contentalign=wrapleft/>
<element id=atom(warning) layoutpos=top accessible=true accRole=41 accName=rcstr(68) content=rcstr(68) contentalign=wrapleft/>
<element id=atom(itemaction) sheet=styleref(itemaction) layoutpos=right layout=borderlayout()/>
</element>
</arpitem>
<element resid=installeditemdoubleaction layoutpos=top layout=flowlayout(0, 0, 1, 2)>
<button id=atom(chg) accessible=true accRole=43 accName=rcstr(17) content=rcstr(17) />
<button id=atom(rm) accessible=true accRole=43 accName=rcstr(18) content=rcstr(18) />
</element>
<element resid=installeditemchangeonlyaction layoutpos=top layout=flowlayout(0, 0, 1, 2)>
<button id=atom(chg) accessible=true accRole=43 accName=rcstr(17) content=rcstr(17) />
</element>
<element resid=installeditemremoveonlyaction layoutpos=top layout=flowlayout(0, 0, 1, 2)>
<button id=atom(rm) accessible=true accRole=43 accName=rcstr(18) content=rcstr(18) />
</element>
<element resid=installeditemsingleaction layoutpos=top layout=flowlayout(0, 0, 1, 2)>
<button id=atom(chgrm) accessible=true accRole=43 accName=rcstr(19) content=rcstr(19) />
</element>
<element resid=publisheditemsingleaction layoutpos=top layout=flowlayout(0, 0, 1, 2)>
<button id=atom(add) accessible=true accRole=43 accName=rcstr(20) content=rcstr(20) />
</element>
<element resid=ocsetupitemsingleaction layoutpos=top layout=flowlayout(0, 0, 1, 2)>
<button id=atom(configure) accessible=true accRole=43 accName=rcstr(66) content=rcstr(66) />
</element>
<arphelp resid=sizehelp layoutpos=absolute layout=borderlayout() sheet=styleref(helppopup)>
<element layoutpos=top layout=borderlayout()>
<element id=atom(title) layoutpos=left accessible=true accRole=41 accName=rcstr(21) content=rcstr(21) />
</element>
<element layoutpos=top contentalign=wrapleft accessible=true accRole=41 accName=rcstr(22) content=rcstr(22)/>
<element layoutpos=bottom layout=borderlayout()>
<element id=atom(divider) layoutpos=top height=2 width=100 />
<button id=atom(close) class="winstyle" layoutpos=right accessible=true accRole=43 accName=rcstr(4) content=rcstr(4) />
</element>
</arphelp>
<arphelp resid=freqhelp layoutpos=absolute layout=borderlayout() sheet=styleref(helppopup)>
<element layoutpos=top layout=borderlayout()>
<element id=atom(title) layoutpos=left accessible=true accRole=41 accName=rcstr(23) content=rcstr(23) />
</element>
<element layoutpos=top accessible=true accRole=41 accName=rcstr(24) content=rcstr(24) />
<element layoutpos=top accessible=true accRole=41 accName=rcstr(25) content= rcstr(25) />
<element layoutpos=top contentalign=wrapleft accessible=true accRole=41 accName=rcstr(26) content=rcstr(26) />
<element layoutpos=bottom layout=borderlayout()>
<element id=atom(divider) layoutpos=top height=2 width=100 />
<button id=atom(close) class="winstyle" layoutpos=right accessible=true accRole=43 accName=rcstr(4) content=rcstr(4) />
</element>
</arphelp>
<arphelp resid=suphelp layoutpos=absolute layout=borderlayout() sheet=styleref(helppopup)>
<element layoutpos=top layout=borderlayout()>
<element id=atom(prodname) layoutpos=bottom contentalign=wrapleft />
<element layoutpos=bottom contentalign=wrapleft accessible=true accRole=41 accName=rcstr(27) content=rcstr(27) />
<element content=" " />
<element id=atom(title) layoutpos=left contentalign=wrapleft />
</element>
<element layoutpos=client layout=VerticalFlowLayout(0,0,3) padding=rect(0,10,0,10)>
<ARPSupportItem id=atom(publisher) accessible=true accRole=41 AccName=rcstr(28) />
<ARPSupportItem id=atom(version) accessible=true accRole=41 AccName=rcstr(29) />
<ARPSupportItem id=atom(contact) accessible=true accRole=41 AccName=rcstr(30) />
<ARPSupportItem id=atom(support) accessible=true accRole=41 AccName=rcstr(31) />
<ARPSupportItem id=atom(readme) accessible=true accRole=41 AccName=rcstr(32) />
<ARPSupportItem id=atom(update) accessible=true accRole=41 AccName=rcstr(33) />
<Element id=atom(ldivider) height=1 margin=rect(0,5,5,0) />
<ARPSupportItem id=atom(productID) accessible=true accRole=41 AccName=rcstr(34) />
<ARPSupportItem id=atom(regCompany) accessible=true accRole=41 AccName=rcstr(35) />
<ARPSupportItem id=atom(regOwner) accessible=true accRole=41 AccName=rcstr(36) />
<Element id=atom(ldivider) height=1 margin=rect(0,5,5,0) />
<ARPSupportItem id=atom(comments) accessible=true accRole=41 AccName=rcstr(37) />
</element>
<Element layoutpos=bottom layout=borderlayout()>
<Button id=atom(close) class="winstyle" layoutpos=right accessible=true accRole=43 accName=rcstr(4) content=rcstr(4) />
</Element>
<Element layoutpos=bottom id=atom(rdivider) height=1 margin=rect(0,5,5,0) />
<Element layoutpos=bottom id=atom(repairblock) layout=borderlayout()>
<Element layoutpos=top id=atom(rdivider) height=1 margin=rect(0,5,5,0) />
<Button id=atom(repair) class="winstyle" layoutpos=right accessible=true accRole=43 accName=rcstr(39) content=rcstr(39) />
<element id=atom(repairDesc) layoutpos=left contentalign=wrapleft accessible=true accRole=41 accName=rcstr(38) content=rcstr(38) />
</Element>
</arphelp>
<style resid=frame>
arpframe
{
accessible: true;
accRole: 9;
accName: rcstr(56);
fontsize: sysmetric(-16);
fontweight: sysmetric(-17);
fontstyle: sysmetric(-18);
fontface: sysmetricstr(6);
background: window;
foreground: windowtext;
}
</style>
<style resid=closepane>
element
{
background: buttonface;
padding: rect(10,10,10,10);
}
button
{
background: dfc(4, 0x0010);
foreground: buttontext;
padding: rect(20,6,20,6);
}
button [pressed]
{
background: dfc(4, 0x0010 | 0x0200);
padding: rect(21,7,19,5);
}
button [keyfocused]
{
contentalign: focusrect;
}
progress
{
borderthickness: rect(2,2,2,2);
bordercolor: buttonface;
borderstyle: sunken;
padding: rect(1,1,1,1);
margin: rect(0, 4, 0, 2);
foreground: rcbmp(100);
}
</style>
<style resid=optionpane>
ARPSelector
{
background: appworkspace;
foreground: buttontext;
padding: rect(3,3,3,3);
layoutpos: left;
}
element
{
background: argb(0,0,0,0);
}
button
{
bordercolor: appworkspace;
borderthickness: rect(2,2,2,2);
foreground: captiontext;
margin: rect(5,5,5,5);
padding: rect(2,2,2,2);
}
button [keyfocused]
{
borderstyle: raised;
bordercolor: threedlightshadow;
}
button [mousefocused]
{
borderstyle: raised;
bordercolor: threedlightshadow;
}
button [pressed]
{
borderstyle: sunken;
padding: rect(3,3,1,1);
bordercolor: threedlightshadow;
}
button [selected]
{
borderstyle: sunken;
padding: rect(3,3,1,1);
bordercolor: threedlightshadow;
}
</style>
<style resid=contentpane>
element [id=atom(contentpane)]
{
padding: rect(10,10,10,10);
}
element [id=atom(installedlistcontainer)]
{
borderthickness: rect(1,1,1,1);
bordercolor: buttonshadow;
padding: rect(0,0,0,0);
}
element [id=atom(publishedlistcontainer)]
{
borderthickness: rect(1,1,1,1);
bordercolor: buttonshadow;
padding: rect(0,0,0,0);
}
element [id=atom(ocsetuplistcontainer)]
{
borderthickness: rect(1,1,1,1);
bordercolor: buttonshadow;
padding: rect(0,0,0,0);
}
element [id=atom(label)]
{
padding: rect(0,5,5,5);
}
element
{
padding: rect(2,2,2,2);
}
element [id=atom(sort)]
{
padding: rect(2,2,0,2);
}
button
{
background: dfc(4, 0x0010);
foreground: buttontext;
padding: rect(8,6,8,6);
margin: rect(5,5,5,5);
}
button [pressed]
{
background: dfc(4, 0x0010 | 0x0200);
padding: rect(9,7,7,5);
}
button [keyfocused]
{
contentalign: focusrect;
}
</style>
<style resid=listscroller>
scrollbar
{
layoutpos: ninebottom;
}
scrollbar [vertical]
{
layoutpos: nineright;
}
viewer
{
layoutpos: nineclient;
}
thumb
{
background: dfc(4, 0x0010);
}
repeatbutton [id=atom(lineup)]
{
background: dfc(3, 0x0000);
width: sysmetric(2);
height: sysmetric(20);
}
repeatbutton [id=atom(lineup)][pressed]
{
background: dfc(3, 0x0000 | 0x0200);
}
repeatbutton [id=atom(linedown)]
{
background: dfc(3, 0x0001);
width: sysmetric(2);
height: sysmetric(20);
}
repeatbutton [id=atom(linedown)][pressed]
{
background: dfc(3, 0x0001 | 0x0200);
}
repeatbutton [class="Page"]
{
background: scrollbar;
}
repeatbutton [class="Page"][pressed]
{
background: buttonshadow;
}
</style>
<style resid=itemlist>
arpitem
{
padding: rect(1,1,1,3);
}
arpitem [selected]
{
background: buttonface;
foreground: buttontext;
bordercolor: buttontext;
}
arpitem [keyfocused][selected]
{
background: highlight;
foreground: highlighttext;
bordercolor: highlighttext;
}
element
{
padding: rect(1,1,1,1);
}
element [id=atom(title)][selected]
{
fontweight: extrabold;
}
button
{
padding: rect(1,1,1,1);
contentalign: wrapright;
}
button [id=atom(supinfo)]
{
contentalign: wrapleft;
}
button [selected]
{
fontstyle: underline;
cursor: hand;
}
button [id=atom(supinfo)][keyfocused]
{
contentalign: wrapleft|focusrect;
}
button [keyfocused]
{
fontstyle: none;
contentalign: wrapright|focusrect;
}
</style>
<style resid=itemaction>
button
{
background: dfc(4, 0x0010);
foreground: buttontext;
padding: rect(8,6,8,6);
margin: rect(5,5,5,5);
}
button [pressed]
{
background: dfc(4, 0x0010 | 0x0200);
padding: rect(9,7,7,5);
}
button [keyfocused]
{
contentalign: focusrect;
}
</style>
<style resid=helppopup>
arphelp
{
accessible: true;
accRole: 9;
background: infobackground;
foreground: infotext;
padding: rect(6,6,6,6);
fontsize: sysmetric(-16);
fontweight: sysmetric(-17);
fontstyle: sysmetric(-18);
fontface: sysmetricstr(6);
}
element [id=atom(divider)]
{
background: infotext;
}
element [id=atom(rdivider)]
{
background: infotext;
}
element
{
background: argb(0,0,0,0);
}
element [id=atom(title)]
{
fontsize: sysmetric(-1);
fontweight: sysmetric(-2);
fontstyle: sysmetric(-3);
fontface: sysmetricstr(1);
}
button [Enabled]
{
foreground: hotlight;
fontstyle: underline;
}
button [MouseFocused]
{
cursor: hand;
}
button [class="winstyle"]
{
background: dfc(4, 0x0010);
foreground: buttontext;
padding: rect(8,6,8,6);
margin: rect(5,5,5,5);
cursor: arrow;
fontstyle: none;
}
button [class="winstyle"][pressed]
{
background: dfc(4, 0x0010 | 0x0200);
padding: rect(9,7,7,5);
}
button [keyfocused]
{
contentalign: focusrect;
}
ARPSupportItem
{
ContentAlign: WrapLeft;
}
</style>
<style resid=frame>
arpframe
{
accessible: true;
accRole: 9;
accName: rcstr(56);
fontsize: sysmetric(-16);
fontweight: sysmetric(-17);
fontstyle: sysmetric(-18);
fontface: sysmetricstr(6);
background: window;
foreground: windowtext;
}
</style>
<style resid=closepane>
element
{
background: buttonface;
padding: rect(10,10,10,10);
}
button
{
background: dtb(handlemap(1), 1, 1);
foreground: buttontext;
padding: rect(20,6,20,6);
}
button [mousefocused]
{
background: dtb(handlemap(1), 1, 2);
}
button [pressed]
{
background: dtb(handlemap(1), 1, 3);
padding: rect(21,7,19,5);
}
button [keyfocused]
{
contentalign: focusrect;
}
progress
{
borderthickness: rect(2,2,2,2);
bordercolor: buttonface;
borderstyle: sunken;
padding: rect(1,1,1,1);
margin: rect(0, 4, 0, 2);
foreground: rcbmp(100);
}
</style>
<style resid=optionpane>
ARPSelector
{
background: dtb(handlemap(3), 0, 0);
foreground: buttontext;
padding: rect(3,3,3,3);
layoutpos: left;
}
element
{
background: argb(0,0,0,0);
}
button
{
background: dtb(handlemap(3), 1, 1);
margin: rect(5,5,5,5);
padding: rect(6,6,6,6);
}
button [keyfocused]
{
background: dtb(handlemap(3), 1, 2);
}
button [mousefocused]
{
background: dtb(handlemap(3), 1, 2);
}
button [pressed]
{
background: dtb(handlemap(3), 1, 3);
padding: rect(7,7,5,5);
}
button [selected]
{
background: dtb(handlemap(3), 1, 5);
padding: rect(7,7,5,5);
}
</style>
<style resid=contentpane>
element [id=atom(contentpane)]
{
padding: rect(10,10,10,10);
}
element [id=atom(installedlistcontainer)]
{
borderthickness: rect(1,1,1,1);
bordercolor: buttonshadow;
padding: rect(0,0,0,0);
}
element [id=atom(publishedlistcontainer)]
{
borderthickness: rect(1,1,1,1);
bordercolor: buttonshadow;
padding: rect(0,0,0,0);
}
element [id=atom(ocsetuplistcontainer)]
{
borderthickness: rect(1,1,1,1);
bordercolor: buttonshadow;
padding: rect(0,0,0,0);
}
element [id=atom(label)]
{
padding: rect(0,5,5,5);
}
element
{
padding: rect(2,2,2,2);
}
element [id=atom(sort)]
{
padding: rect(2,2,0,2);
}
button
{
background: dtb(handlemap(1), 1, 1);
foreground: buttontext;
padding: rect(8,6,8,6);
margin: rect(5,5,5,5);
}
button [mousefocused]
{
background: dtb(handlemap(1), 1, 2);
}
button [pressed]
{
background: dtb(handlemap(1), 1, 3);
padding: rect(9,7,7,5);
}
button [keyfocused]
{
contentalign: focusrect;
}
</style>
<style resid=listscroller>
scrollbar
{
layoutpos: ninebottom;
}
scrollbar [vertical]
{
layoutpos: nineright;
}
viewer
{
layoutpos: nineclient;
}
thumb
{
background: dtb(handlemap(2), 3, 1);
content: dtb(handlemap(2), 9, 1);
contentalign: middlecenter;
}
thumb [mousefocused]
{
background: dtb(handlemap(2), 3, 2);
content: dtb(handlemap(2), 9, 2);
}
thumb [captured]
{
background: dtb(handlemap(2), 3, 3);
content: dtb(handlemap(2), 9, 3);
}
repeatbutton [id=atom(lineup)]
{
background: dtb(handlemap(2), 1, 1);
width: sysmetric(2);
height: sysmetric(20);
}
repeatbutton [id=atom(lineup)][mousefocused]
{
background: dtb(handlemap(2), 1, 2);
}
repeatbutton [id=atom(lineup)][pressed]
{
background: dtb(handlemap(2), 1, 3);
}
repeatbutton [id=atom(linedown)]
{
background: dtb(handlemap(2), 1, 5);
width: sysmetric(2);
height: sysmetric(20);
}
repeatbutton [id=atom(linedown)][mousefocused]
{
background: dtb(handlemap(2), 1, 6);
}
repeatbutton [id=atom(linedown)][pressed]
{
background: dtb(handlemap(2), 1, 7);
}
repeatbutton [id=atom(pageup)]
{
background: dtb(handlemap(2), 7, 1);
}
repeatbutton [id=atom(pageup)][mousefocused]
{
background: dtb(handlemap(2), 7, 2);
}
repeatbutton [id=atom(pageup)][pressed]
{
background: dtb(handlemap(2), 7, 3);
}
repeatbutton [id=atom(pagedown)]
{
background: dtb(handlemap(2), 6, 1);
}
repeatbutton [id=atom(pagedown)][mousefocused]
{
background: dtb(handlemap(2), 6, 2);
}
repeatbutton [id=atom(pagedown)][pressed]
{
background: dtb(handlemap(2), 6, 3);
}
</style>
<style resid=itemlist>
arpitem
{
padding: rect(1,1,1,3);
}
arpitem [selected]
{
background: buttonface;
foreground: buttontext;
bordercolor: buttontext;
}
arpitem [keyfocused][selected]
{
background: highlight;
foreground: highlighttext;
bordercolor: highlighttext;
}
element
{
padding: rect(1,1,1,1);
}
element [id=atom(title)][selected]
{
fontweight: extrabold;
}
button
{
padding: rect(1,1,1,1);
contentalign: wrapright;
}
button [id=atom(supinfo)]
{
contentalign: wrapleft;
}
button [selected]
{
fontstyle: underline;
cursor: hand;
}
button [id=atom(supinfo)][keyfocused]
{
contentalign: wrapleft|focusrect;
}
button [keyfocused]
{
fontstyle: none;
contentalign: wrapright|focusrect;
}
</style>
<style resid=itemaction>
button
{
background: dtb(handlemap(1), 1, 1);
foreground: buttontext;
padding: rect(8,6,8,6);
margin: rect(5,5,5,5);
}
button [mousefocused]
{
background: dtb(handlemap(1), 1, 2);
}
button [pressed]
{
background: dtb(handlemap(1), 1, 3);
padding: rect(9,7,7,5);
}
button [keyfocused]
{
contentalign: focusrect;
}
</style>
<style resid=helppopup>
arphelp
{
accessible: true;
accRole: 9;
background: infobackground;
foreground: infotext;
padding: rect(6,6,6,6);
fontsize: sysmetric(-16);
fontweight: sysmetric(-17);
fontstyle: sysmetric(-18);
fontface: sysmetricstr(6);
}
element [id=atom(divider)]
{
background: infotext;
}
element [id=atom(rdivider)]
{
background: infotext;
}
element
{
background: argb(0,0,0,0);
}
element [id=atom(title)]
{
fontsize: sysmetric(-1);
fontweight: sysmetric(-2);
fontstyle: sysmetric(-3);
fontface: sysmetricstr(1);
}
button [Enabled]
{
foreground: hotlight;
fontstyle: underline;
}
button [MouseFocused]
{
cursor: hand;
}
button [class="winstyle"]
{
background: dtb(handlemap(1), 1, 1);
foreground: buttontext;
padding: rect(8,6,8,6);
margin: rect(5,5,5,5);
cursor: arrow;
fontstyle: none;
}
button [class="winstyle"][mousefocused]
{
background: dtb(handlemap(1), 1, 2);
}
button [class="winstyle"][pressed]
{
background: dtb(handlemap(1), 1, 3);
padding: rect(9,7,7,5);
}
button [keyfocused]
{
contentalign: focusrect;
}
ARPSupportItem
{
ContentAlign: WrapLeft;
}
</style>

Tidak ada komentar:
Posting Komentar