More seriously, if you absolutely have to do this, you can intercept the
choice in the combo's OnChange event. This is called whenever the
combo's ItemIndex changes. You can then restore ItemIndex to its
previous value.

 

But you might want to think about this. Will this behavior be
intelligible to your users?

 

Thanks.

 

-Phil

 

________________________________

From: el stamatakos [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 17, 2008 4:52 PM
To: [email protected]
Subject: [lazarus] TComboBox blocking selection

 

Hi,
 How do I block the selection of an item in TComboBox? That is I do not
want to allow the user to be able to select and item. Thanks
 
Lefti

Reply via email to