-   
- //--------------------------------------------------------------------------- 
- void __fastcall TForm1::ListBox1DrawItem(TWinControl *Control, int Index, 
-       TRect &Rect, TOwnerDrawState State) 
- { 
-     if( State.Contains(odSelected) ) 
-         ListBox1->Canvas->Brush->Color = clHighlight; 
-     else 
-         ListBox1->Canvas->Brush->Color = clWhite; 
-   
-   
-     ListBox1->Canvas->FillRect(Rect); 
-   
-     ListBox1->Canvas->Pen->Color = clWhite; 
-     ListBox1->Canvas->Font->Name = ListBox1->Items->Strings[Index]; 
-     ListBox1->Canvas->Font->Size = 12; 
-     ListBox1->Canvas->TextOut(Rect.Left, Rect.Top, ListBox1->Items->Strings[Index]); 
- } 
- //--------------------------------------------------------------------------- 
- void __fastcall TForm1::ComboBox1DrawItem(TWinControl *Control, int Index, 
-       TRect &Rect, TOwnerDrawState State) 
- { 
-     if( State.Contains(odSelected) ) 
-         ComboBox1->Canvas->Brush->Color = clHighlight; 
-     else 
-         ComboBox1->Canvas->Brush->Color = clWhite; 
-   
-     ComboBox1->Canvas->FillRect(Rect); 
-   
-     ComboBox1->Canvas->Font->Name = ComboBox1->Items->Strings[Index]; 
-     ComboBox1->Canvas->Font->Size = 12; 
-     ComboBox1->Canvas->TextOut(Rect.Left, Rect.Top-2, ComboBox1->Items->Strings[Index]); 
- } 
- //--------------------------------------------------------------------------- 
-   
-   
-