Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1155 connectés 

  FORUM HardWare.fr
  Programmation
  XML/XSL

  Compiler un ensemble de fichiers (XML + images)

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Compiler un ensemble de fichiers (XML + images)

n°1522235
edhelas
'Pendant' nous… le déluge ?
Posté le 01-03-2007 à 14:18:37  profilanswer
 

Voila je suis débutant dans la programmation.
J'ai dernièrement téléchargé Yahoo Widget et je me suis ancé dans la programmation,  
Commençant par un petit widget simple (une simple barre de recherche) je me suis vite rendus compte que je ne manipulait que du langauge XML couplé à 3 images.
 
Le fichier XMl qui porte l'extension .kon contient ceci :
 

Citation :

<?xml version="1.0" encoding="macintosh"?>
<widget version="1.0" minimumVersion="2.0">
<debug>off</debug>
<!--
  Google Search
  Written by: edhelas
 
  Any modifications will be lost if the generation script is run again.
-->
 
 <window title="Torrentz Search">
  <name>mainWindow</name>
  <width>339</width>
  <height>54</height>
  <visible>1</visible>
  <shadow>0</shadow>
 </window>
 
 <image src="Resources/front.png">
  <name>front</name>
  <hOffset>0</hOffset>
  <vOffset>0</vOffset>
  <width>339</width>
  <height>54</height>
  <opacity>100%</opacity>
 </image>
 
 <preference name="clearOnEnter">
  <hidden>false</hidden>
  <type>checkbox</type>
  <title>Clear on Enter</title>
  <defaultValue>false</defaultValue>
 </preference>
 <preference name= "Language">
  <type>popup</type>
  <description>Choose your Language</description>
  <defaultValue>1</defaultValue>
  <option>English</option>
  <optionValue>1</optionValue>
  <option>French</option>
  <optionValue>2</optionValue>
  <option>German</option>
  <optionValue>3</optionValue>
  <option>Spanish</option>
  <optionValue>4</optionValue>
   
 
 </preference>
 
 
 
 <textArea>
  <name>SearchString</name>
  <vOffset>16</vOffset>
  <hOffset>128</hOffset>
  <lines>1</lines>
  <font>Lucida Grande</font>
  <size>12</size>
  <width>180</width>
  <data></data>
  <color>#222222</color>
  <bgColor>#ffffff</bgColor>
  <bgOpacity>0</bgOpacity>
  <onKeyDown>
   if (system.event.keyString == 'Return')  
 {
 
    if (preferences.Language.value == 1)
  {
    openURL("http://www.torrentz.com/search?hl=en&ie=UTF-8&q=" + escape(SearchString.data) + "&btnG=Google+Search" )
    if (preferences.clearOnEnter.value == 1) { SearchString.data = '';}
 
  }  if (preferences.Language.value == 2)
  {
    openURL("http://www.torrentz.com/search?hl=fr&ie=UTF-8&q=" + escape(SearchString.data) + "&btnG=Google+Search" )
    if (preferences.clearOnEnter.value == 1) { SearchString.data = '';}
 
  }  if (preferences.Language.value == 3)
  {
    openURL("http://www.torrentz.com/search?hl=de&ie=UTF-8&q=" + escape(SearchString.data) + "&btnG=Google+Search" )
    if (preferences.clearOnEnter.value == 1) { SearchString.data = '';}
 
  }  if (preferences.Language.value == 4)
  {
    openURL("http://www.torrentz.com/search?hl=es&ie=UTF-8&q=" + escape(SearchString.data) + "&btnG=Google+Search" )
    if (preferences.clearOnEnter.value == 1) { SearchString.data = '';}
 
  }      
 }
   
 </onKeyDown>
   <onGainFocus>
    front.src="Resources/focused.png";
   </onGainFocus>
   <onLoseFocus>
    front.src="Resources/front.png";
   </onLoseFocus>
  </textarea>
 
<image src="Resources/x.png">
            <name>x</name>
            <width>14</width>
            <height>14</height>
            <hOffset>304</hOffset>
            <vOffset>16</vOffset>
            <opacity>255</opacity>
            <onMousedown>x.opacity=100;</onMousedown>
            <onMouseUp>SearchString.data=""; x.opacity=255;</onMouseUp>
        </image>
</widget>


 
J'ai en plus dans le dossier ressource 3 images respectivements nommés:  
focused.png
front.png
x.png
 
Je souhaiterai savoir si je pourrait, à partir de ces 4 fichier, créer un executif qui se lancerais sans l'aide du logiciel Yaghoo Widget.
 
Merci d'avance


Message édité par edhelas le 01-03-2007 à 14:19:39

---------------
╯°□°)╯︵ ┻━┻
mood
Publicité
Posté le 01-03-2007 à 14:18:37  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  XML/XSL

  Compiler un ensemble de fichiers (XML + images)

 

Sujets relatifs
Demande d'approbation de votre part pour une structure XML...Stockage de date dans un fichier XML
[PHP] parcours de fichiers dans un dossierslibrairies de traitement d'images
confirmer la suppression de fichiers en chaînePassage de XHTML en XML : Imbriquer section
Impossible de compiler des shaders en cg! [RESOLU][C] Compiler sous Windows des sources linux avec makefile
erreur de parsing XML 
Plus de sujets relatifs à : Compiler un ensemble de fichiers (XML + images)


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)