A TComboBox component is an edit box with a scrollable drop-down list attached to it. Users can select an item from the list or type directly into the edit box. TComboBox is a part of VCL library.
Questions tagged [tcombobox]
48 questions
1
vote
1 answer
Trying to populate a combobox with parent-child dropdown list
I am creating a combobox that populate the parent and child list.
I have already 2 separate combobox for parent and child. What I want to see is to have these in one combobox having the child list under its parent list. Of course the child is…

Mel
- 101
- 1
- 9
1
vote
1 answer
Delphi TComboBox disable highlight (focused)
After open form item in TCombobox is highlighted (Blue backgrond on text).
Is it possible disable that.
Tnx all!

Pointer
- 2,123
- 3
- 32
- 59
1
vote
0 answers
Borland C++ TComboBox
if have a problem with my Borland C++ 6 and a form.
In my project I have a list of members of a group that are inserted into a TComboBox. So far so good. Now I want to access the objects inside when I change the entry in this TComboBox. Now here's…

Shijury
- 39
- 3
1
vote
1 answer
C++Builder - cannot cast from 'AnsiString' to 'TObject'
I have a problem with converting a string variable to TObject.
I have a query that returns two columns to me. In the first column I have varchar values that I translate into strings, and in the second column I have int values.
I want to fill a…

forritarik
- 35
- 4
1
vote
1 answer
Type ahead TComboBox csDropDownList; Delphi 10
When forcing the user to select from the dropdownlist,
I set the combobox' style to csDropDownlist.
However, all typing hereafter is one character only.
That means, the user cannot narrow the search in the combo by typing multiple characters. Not…
user2964812
1
vote
2 answers
LookupSource must be connected to TTable component
I'm attempting to use a TDBLookupCombo, but am getting an error "EInvalidOperation with message 'LookupSource must be connected to TTable component'.
I have the TDBLookupCombo.LookupSource connected to a TDataSource. The TDataSource.Dataset is…

user1970794
- 253
- 3
- 16
1
vote
1 answer
C++ Builder derived TComboBox to have Items by default
A VCL component newbie here, so pardon me if this is a stupid question...
I'm trying to make a TComboBox component with default items in it upon dropped onto the form, i.e. a TMonthComboBox that will have the list of months in its Items list, when…

Kw Choy
- 129
- 1
- 1
- 10
1
vote
1 answer
Delphi, how to close TComboBox when mouse leaves?
I'm trying to implement the following functionality:
when mouse comes over the combobox, it opens automatically.
when mouse leaves the combobox area (not only the combo, but dropdown list too), it closes automatically.
First point was quite…

ifmihai
- 79
- 2
- 6
1
vote
1 answer
Why doesn't my combo box's OnChange event fire when its parent is a TStringGrid?
Possible Duplicate:
Why don’t child controls of a TStringGrid work properly?
I have a TStringGrid of variable length, and one column has a TComboBox to alter the data inside. I have made its parent the TStringGrid so that if it is scrolled down I…

Kieran Wilson
- 118
- 9
1
vote
3 answers
In a TComboBox, how can I have the dropdown display X, but the text property gets Y when X is picked?
I need the user to pick a date format (dd/mm/yyyy or dd mmmm yyyy etc...) but displaying these options is just confusing. What I want to be able to do is have the TComboBox items filled with "14/09/2012", "14 September 2012", "Friday 14 September…

Alister
- 6,527
- 4
- 46
- 70
1
vote
1 answer
how to change the dropdown list of TComboBox?
I have a TComboBox and I want to change its dropdown list and replace it with my own control which is (TYazTreeList)
What is the easiest way?
I want to inherit a new control from TComboBox (lets call it TYazComboBox)
Thank you.

user1512094
- 611
- 2
- 10
- 23
0
votes
1 answer
TComboBox dropdown list should be hidden when the parent content is scrolled
Take a TComboBox and put it on a TScrollBox. In the OnMouseWheel event of the TScrollBox, the position of the vertical scroll bar is adjusted as follows:
void __fastcall TForm1::ScrollBox1MouseWheel(TObject *Sender, TShiftState Shift, int…

Kerem
- 429
- 5
- 20
0
votes
0 answers
Delphi DbLookupComboBox with CheckListBox
I want to create a new component in Delphi inherited from TDBLookupComboBox.
My only question is, how can I replace the control which is shown when the ComboBox is dropped down and show a TCheckListBox instead? Is this a Win-Api combined with a…

Sam
- 139
- 1
- 12
0
votes
1 answer
How can I determine the index of the top item displayed in the drop-down list of a TComboBox?
How can I find the index of the top item in the drop-down list of a TComboBox?
I know that a TListBox has a TopIndex property, but I can't find anything similar to this for a TComboBox.
I'm using C++Builder in RAD Studio 10.4 Update 2.

Nigel Stevens
- 147
- 1
- 1
- 9
0
votes
1 answer
How to ignore the mouse wheel scrolling for TComboBox controls?
I've found numerous things in this regard, but they're either for third-party controls, different specific situations, or for a completely different language. What I need should be fairly simple.
I have a TDBGrid with a TComboBox placed over a…

Jerry Dodge
- 26,858
- 31
- 155
- 327