ich stehe ein wenig auf dem Schlauch und hoffe, mir kann jemand auf die Sprünge helfen.
In der Hierarchie habe ich 4 Textfelder (A - D).
Das Format für Textfeld A ist neben den Standardeinstellungen auch per Script gesteuert. Es funktioniert genau so, wie ich es haben möchte.
Code: Alles auswählen
Formular1.#subform[0].A::enter - (JavaScript, client)
// Setzt die Standardeinstellungen, wenn Feld gefüllt wird / ist (Enter-Event)
this.font.posture = "normal";
this.font.weight = "normal";
this.font.fill.color.value = "0,0,0";
}
// Setzt die Standardeinstellungen, wenn Feld gefüllt wird / ist (Enter-Event)
this.font.posture = "normal";
this.font.weight = "normal";
this.font.fill.color.value = "0,0,0";
}
Formular1.#subform[0].A::exit - (JavaScript, client)
// Wenn Feld ist NULL, dann sollen beim Verlassen folgende Einstellungen gelten (Exit-Event)
if (this.rawValue === null)
{
this.font.posture = "italic";
this.font.weight = "normal";
this.font.fill.color.value = "128,128,128";
}
else
{
this.font.posture = "normal";
this.font.weight = "normal";
this.font.fill.color.value = "0,0,0";
}
Code: Alles auswählen
Formular1.#variables[0].font - (JavaScript, client)
function textfeld_std(){
// Setzt die Standardeinstellungen, wenn Feld gefüllt wird / ist (Enter-Event)
this.font.posture = "normal";
this.font.weight = "normal";
this.font.fill.color.value = "0,0,0";
}
function textfeld_leer(){
// Wenn Feld ist NULL, dann sollen beim Verlassen folgende Einstellungen gelten (Exit-Event)
if (this.rawValue === null)
{
this.font.posture = "italic";
this.font.weight = "normal";
this.font.fill.color.value = "128,128,128";
}
else
{
this.font.posture = "normal";
this.font.weight = "normal";
this.font.fill.color.value = "0,0,0";
}
Vielen Dank für Unterstützung.
vg
Thomas