include "libdom.sol" extern class window static int screenX static int screenY class opener static window document /class /class /extern xml about xul window id="about-window" align="center" pack="center", title="About Scriptol Xul Dev", width="400", height="300", xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", xmlns:html="http://www.w3.org/1999/xhtml", xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" script ~~ window.screenX = window.opener.screenX + window.opener.document.width/2 - 100; window.screenY = window.opener.screenY + window.opener.document.height/2 - 100; ~~ /script hbox align="center" orient="vertical" vbox height="70" /vbox vbox align="center" pack="center" stack description value="Xul Dev" style="margin-top:1px; padding-left: 1px; padding-top: 1px; font-size: 25pt"/ description value="Xul Dev" style="margin-top:1px; color: blue; font-size: 25pt;"/ /stack stack html:b description value = "(c) 2005-2006 Denis G. Sureau / Xul.fr" style="margin-top:24px; color:black font-size: 14pt;" / /html:b html:b description value = "http://www.xul.fr" style="margin-top:48px; color:black font-size: 14pt;" / /html:b html:b description value = "http://xuldev.sf.net" style="margin-top:64px; color:black font-size: 14pt;" / /html:b /stack /vbox vbox height="20" /vbox vbox height="100" button label="Close" oncommand="window.close()" / /vbox /hbox /window /xml dom aboutSol aboutSol.build() aboutSol.save("chrome/content/xuldev/about.xul") print "about.xul created..."