Hi Ann! -----Original Message----- From: delphi-en@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ann Tan
Hi all, I want to know is there a way to add disable items into the combo box? For eg: I need to show some grey out items in the combo box drop down list, some items in black colour (which is enable text). The reason of showing grey out text is to stop the users select those items from the list. Can anyone please help me with that? Much more appreciated it. >>>>>>>>>>>>>> I'm not sure the combo box (which is a Windows control) has that feature. I would recommend that instead you filter the items that go into the combo box before you show it to the user. Here is what I would do: I would use the OnClick Event of the combo box to load the list of items you want the user to pick from. procedure TForm1.ComboBox1Click(Sender: TObject); begin Combobox1.items.Clear; Combobox1.items.Add('Choice1'); //Put your logic here on what to enter. .... end; If this does not get you what you need, then the OnEnter event might work better. Hope this helps! Tom Nesler Live long!... Code Well!... and Prosper!... V