Startseite › Foren › Deutsches LiveCode-Forum › Nur ein Eintrag trotz put … after field "…" › Antwort auf: Nur ein Eintrag trotz put … after field "…"
Hi Thorsten,
Wo sind die Typen eigentlich im Inspector zu finden ?
gar nicht!
Es gibt nämlich in LC nur EINEN feldtyp, sowie EINEN Buttontyp etc., nur durch das Setzen von verschiedenen Properties wird ein „Schuh“ draus. LC macht uns das mit der TOOLS Palette einfach, indem es dort diese entsprechenden Properties bereits vor der Erstellung setzt, so daß wir einen bestimmten TYP von Control auf der Karte gezaubert bekommen.
Beispiel:
...
create field "ein feld"
...
Erstellt ein pups-normales bearbeitbares Feld, wo wir Text eingeben können.
...
create field "ein feld"
set the locktext of fld "ein feld" to TRUE
set the listbehaviour of fld "ein feld" to TRUE
set the multipleHilites of fld "ein feld" to TRUE
...
Und zack wird daraus ein Listenfeld mit Mehrfachauswahl.
LC macht das, indem es die richtigen Properties schon vorher für „the templatefield“ bzw. „the templatebutton“ etc. setzt. Ungefähr so:
...
set the locktext of the templatefield to TRUE
set the listbehaviour of the templatefield to TRUE
set the multipleHilites of the templatefield TRUE
create field "ein feld"
reset the templatefield
...
Analog für Buttons und Scrollbars.
Schau mal in Dein Paypal ?
Merci, ich hatte mich schon im vorigen Post bedankt, wirklich sehr nett von Dir!