Forum: GUI-Design mit VCL / FireMonkey / Common Controls
by DeddyH,
23. Feb 2008
Was ich gepostet habe, war die Ereignisbehandlung von ComboBox1. Es sollte nicht allzu schwierig sein, das auch auf ComboBox2 zu übertragen, oder? :stupid:
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
by DeddyH,
23. Feb 2008
begin
case ComboBox1.ItemIndex of
0 : Label1.Caption := '1';
1 : begin
Label1.Visible := ComboBox2.ItemIndex = 1;
//man könnte hier auch noch vorher auf visible abfragen
Label1.Caption := '2';
end;
2 : Label1.Caption := '3';
end;
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
by DeddyH,
23. Feb 2008
Label1.Visible := (ComboBox1.ItemIndex = 1) and (ComboBox2.ItemIndex = 1);
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
by DeddyH,
23. Feb 2008
Wie, auf 1 stehen? ItemIndex oder Text?
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
by DeddyH,
23. Feb 2008
Der ItemIndex ist 0-basiert, d.h. der erste Eintrag hat den Index 0.