mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-14 11:40:13 +01:00
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
|
<?xml version="1.0"?>
|
||
|
<?xml-stylesheet href="hidetoolicon.css" type="text/css"?>
|
||
|
|
||
|
<window xmlns:html="http://www.w3.org/1999/xhtml"
|
||
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||
|
orient="vertical">
|
||
|
|
||
|
<script>
|
||
|
function cmdHideButtonOne(){
|
||
|
window.document.getElementById("ShowButton").setAttribute("buttonmode", "hideOne");
|
||
|
}
|
||
|
|
||
|
function cmdHideButtonTwo() {
|
||
|
window.document.getElementById("ShowButton").setAttribute("buttonmode", "hideTwo");
|
||
|
}
|
||
|
|
||
|
function cmdHideAll() {
|
||
|
window.document.getElementById("ShowButton").setAttribute("buttonmode", "hideAll");
|
||
|
}
|
||
|
|
||
|
function cmdShowAll() {
|
||
|
window.document.getElementById("ShowButton").setAttribute("buttonmode", "showAll");
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<broadcaster id="ShowButton" buttonmode="showAll" />
|
||
|
<observes element="ShowButton" attribute="buttonmode" />
|
||
|
<toolbox>
|
||
|
<toolbar>
|
||
|
<html:input type="BUTTON" value="Button 1" id="ButtonOne"/>
|
||
|
<html:input type="BUTTON" value="Button 2" id="ButtonTwo"/>
|
||
|
<spacer flex="1"/>
|
||
|
</toolbar>
|
||
|
</toolbox>
|
||
|
|
||
|
<hbox flex="1">
|
||
|
<html:input flex="1" type="BUTTON" value="Hide Only Button 1" onclick="cmdHideButtonOne()"/>
|
||
|
<html:input flex="1" type="BUTTON" value="Hide Only Button 2" onclick="cmdHideButtonTwo()"/>
|
||
|
<html:input flex="1" type="BUTTON" value="Hide Both" onclick="cmdHideAll()"/>
|
||
|
<html:input flex="1" type="BUTTON" value="Show Both" onclick="cmdShowAll()"/>
|
||
|
</hbox>
|
||
|
</window>
|