Thema: Delphi Starttext bei Combobox

Einzelnen Beitrag anzeigen

Benutzerbild von Stevie
Stevie

Registriert seit: 12. Aug 2003
Ort: Soest
4.009 Beiträge
 
Delphi 10.1 Berlin Enterprise
 
#2

Re: Starttext bei Combobox

  Alt 10. Mär 2005, 13:48
Ich nehme mal an, du hast Style auf csDropDownList...

Delphi-Quellcode:
procedure TForm1.ComboBox1DropDown(Sender: TObject);
begin
  with (Sender as TComboBox) do
    if Items[0] = 'Bitte wählenthen
      Items.Delete(0);
end;
Stefan
“Simplicity, carried to the extreme, becomes elegance.” Jon Franklin

Delphi Sorcery - DSharp - Spring4D - TestInsight
  Mit Zitat antworten Zitat