sparky1970
Programmer
Hi all,
I'm trying to establish how I can use a SetItemIndex method so that I can force an Index Item to show in a ComboBox when it is first shown. I know that I can simply use a ComboBox->Text = ""; instruction to load text into the ComboBox, but I'd rather use an instruction which loads it with an Item from it's Item list. I need to override the protected SetItemIndex method which is derived from TCustomListControl. I have no idea how to implement the code to do this, can somebody help me?
Thankyou
Ivan
I'm trying to establish how I can use a SetItemIndex method so that I can force an Index Item to show in a ComboBox when it is first shown. I know that I can simply use a ComboBox->Text = ""; instruction to load text into the ComboBox, but I'd rather use an instruction which loads it with an Item from it's Item list. I need to override the protected SetItemIndex method which is derived from TCustomListControl. I have no idea how to implement the code to do this, can somebody help me?
Thankyou
Ivan