Hi@all
Ich habe folgendes Problem:
Ich habe drei Combos (A,B und C). In A sind drei Items (0A,1A,2A). Klicke ich auf eins der drei Items wird Combo (B) sichtbar. Wähle ich in der Combo(B) ein Item aus erscheint eine zweite Form.
Wenn ich jedoch mich umentscheide und ein Item aus der Combo (C) auswähle, soll der TExt in Combo (B) leer sein. Und das ist mein Problem.
PS: Ich habe einen Code zum Ändern der Farbe zum markieren in eines Combo-Items. Glaube dass es irgendwie damit zusammenhängt.
Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
| begin with (Control as TComboBox) do begin if (odSelected in State) then Canvas.Brush.Color := clRed else Canvas.Brush.Color := clGradientActiveCaption; Canvas.FillRect(Rect); DrawText(Canvas.Handle, PChar(Items[Index]), -1, Rect, DT_SINGLELINE or DT_LEFT or DT_VCENTER);
end; |
Hoffe einer von euch da draußen kann mir helfen
thx4all
MFG
BlackP