naw, try this. i'll assume your combobox name is ComboBox1
the three shapes i have are as follows:
Square
Circle
RoundedSquare
i set my ComboBox Style property to csDropDownList, and i have 3 items in the box (in order):
Square
Circle
Rounded Square
here is the code that i have in the OnChange event:
//----------------------------------------------------------
void __fastcall TForm1::ComboBox1Change(TObject *Sender)
{
switch(ComboBox1->ItemIndex)
/*grabs the designated numbers for each item*/
{
case 0:
Square->Visible = true;
Circle->Visible = false;
RoundedSquare->Visible = false;
break;
case 1:
Square->Visible = false;
Circle->Visible = true;
RoundedSquare->Visible = false;
break;
case 2:
Square->Visible = false;
Circle->Visible = false;
RoundedSquare->Visible = true;
break;
}
}
//----------------------------------------------------------
that will make it so that every time the user clicks on an item, the code for that item will be carried out Cyprus