ListBox: Unterschied zwischen den Versionen

Aus AquaSoft Wiki
Zur Navigation springenZur Suche springen
(Die Seite wurde neu angelegt: „''ListBox'' ist eine möglicher Wert, den das '''Type'''-Element des GUI-Strings erhalten kann. Es wird eine Listenansicht erzeigt, …“)
 
Zeile 7: Zeile 7:
 
= Beispiel =
 
= Beispiel =
 
<code>
 
<code>
{
+
  {
  "Key" : "ListBox1",
+
    "Key" : "ListBox1",
  "Type" : "ListBox",
+
    "Type" : "ListBox",
  "Caption" : "MyListBox",
+
    "Caption" : "MyListBox",
  "Options" :
+
    "Options" :
    {
+
      {
      Items : ["Eintrag1", "Eintrag2"],
+
        Items : ["Eintrag1", "Eintrag2"],
      Default : 1
+
        Default : 1
    }
+
      }
}
+
  }
 
</code>
 
</code>

Version vom 13. August 2012, 13:28 Uhr

ListBox ist eine möglicher Wert, den das Type-Element des GUI-Strings erhalten kann. Es wird eine Listenansicht erzeigt, die zeilenweise Werte des Typs String enthält.

Optionen

  • "Items": vordefinierte Listeneinträge, Datentyp: Array von Strings
  • "Default": vorausgewählter Listeneintrag, Datentyp: Integer (nullbasiert)

Beispiel

 {
   "Key" : "ListBox1",
   "Type" : "ListBox",
   "Caption" : "MyListBox",
   "Options" :
     {
       Items : ["Eintrag1", "Eintrag2"],
       Default : 1
     }
 }