Tecnologie |
Dettaglio dell'articolo:
venerdì 29 agosto 2008
Firefox 3 è in grado di eseguire applicazioni basate su XULRunner. + /myapp | +-+ /chrome | | | +-+ /content | | | | | +- main.xul | | | +- chrome.manifest | +-+ /defaults | | | +-+ /preferences | | | +- prefs.js | +- application.ini Step 2: Creare un file application.ini [App] Vendor=Tecnes Name=Test Application Version=1.0 BuildID=20080108 Copyright=Copyright (c) 2006 Raffaello Bindi ID=xulapp@tecnes.com [Gecko] MinVersion=1.8 MaxVersion=1.9.0.*Step 3: Creare un chrome manifest content myapp file:content/Step 4: Impostare le preferences
pref("toolkit.defaultChromeURI", "chrome://myapp/content/main.xul");
Step 5: Creare un file XUL<?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="main" title="My Application" width="300" height="300" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <caption label="Hello World"/> </window>Step 6: Eseguire l'applicazione firefox -app application.ini Commenti:
Scrivi un commento:
|
|
||||||||||||||