<?xml version="1.0"?>
<!DOCTYPE dialog PUBLIC "-//MOZILLA//DTD XUL V1.0//EN" "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>

<dialog id="dialog-name"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        persist="screenX screenY"
        title="Gestion des listes"
				buttons="cancel"
        buttonlabelcancel="Fermer"
        ondialogaccept="return false"
        onload="Init(); //setTimeout('sizeToContent()', 200);"
>
<!--
	onkeydown="
					if (event.ctrlKey)
					{
						if (event.keyCode==38)
						{
							$('libelle').value++;
						}
						else
						if (event.keyCode==39)
						{
						}
					}
				"

-->

<script type="application/x-javascript" src="js/global.js" />
<script type="application/x-javascript" src="js/dlg_listes.js" />

<commandset>
	<command id="cmd_submit" oncommand="Encodage()" />	
</commandset>

<keyset>
	<key keycode="VK_RETURN" command="cmd_submit" />
</keyset>

<hbox>
  <vbox align="center">
    
    <separator />
    
    <description style="font-size:25px;" id="titre" value=" " />
    
    <separator height="30" />
    
    <vbox align="left">
			<label value="Libellé" control="libelle" />
			<textbox size="35" id="libelle" maxlength="50" />
		</vbox>
    
    <separator />
    
  	<hbox>
      <button accesskey="r" label="Reset" oncommand="Reset()" />
      <button accesskey="s" label="Supprimer" oncommand="Delete()" />
      <button accesskey="o" label="Ajouter" id="btnSubmit" default="true" command="cmd_submit" />
		</hbox>

    <separator />
    
    <description id="message" style="color:#FF0000;" />
    
  </vbox>
    
  <vbox align="right">  
    <listbox id="liste" onselect="listebox_onselect(this);">

    <listhead>
      <listheader label="Libellés" />
    </listhead>
		<listcols>
      <listcol flex="1" />
    </listcols>
    </listbox>
    <description id="Tliste" />
  </vbox>
</hbox>

</dialog>