Questions tagged [tcombobox]

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.

48 questions
0
votes
1 answer

How can I show hints for droppeddown TComboBox items in Delphi 10.3.3?

I have to show hints for the dropped down TComboBox items. For this, I could use the OnMouseMove event to handle the hovering message. It takes the mouse X,Y client coordinates as parameters. If I could determine which is the first item to draw…
SOLID Developper
  • 672
  • 4
  • 12
0
votes
0 answers

Livebindings master-detail relationship between 2 comboboxes to work vice-versa selection

I am trying to use the livebindings feature between 2 tcomboboxes having master-detail relationship. Both tcomboboxes are connected to respective datasets. Say, I have a customer name table and the jobs table. Both tables are populated to respective…
Juke
  • 135
  • 2
  • 9
0
votes
0 answers

When setting TComboBox.DroppedDown to true, how can I prevent the mouse cursor from disappearing?

In Delphi 2007 I'm attempting for force a TComboBox to drop down, however when I do, the mouse cursor disappears while the control is editing and the the mouse is over the form. I've come upon this idea after reading this SO answer on implementing…
c0pp3rt0p
  • 141
  • 1
  • 8
0
votes
2 answers

Tkinter Combobox only shows up the last item

I am trying to implement a Combobox in python app using Tkinter. The main purpose is to show the COM devices connected to the computer (tested with Arduino and micro:bit). Some laptop will show lots of COM port too. I have used also a list box for…
0
votes
2 answers

How to store values from an SQL query into a ComboBox component?

I have a problem with the TComboBox component in Borland C++Builder 6. In the ComboBox, I want to insert the result of an SQL query, eg: ID value --------- 1 one 2 two 3 three I want to display the values of the value column to the user,…
forritarik
  • 35
  • 4
0
votes
0 answers

How to sort Delphi TComboBox Items as Dates instead of String

I am populating a list of items into a TComboBox item list. But the items are not saved as Dates in the Database I am getting them from. Delphi sorts the items as a string. How could I sort these items as dates instead please? The list will never…
0
votes
0 answers

Delphi firemonkey TCombobox extreme slow opening

Windows 10, Delphi 10.2 Tokyo, Firemonkey framework. I drop a TCombobox on the form, populate it with 20000 items (takes 5 seconds), then when I click the arrow of the combobox for the dropdown to appear, it takes 15 seconds to do so. The VCL…
user7415109
0
votes
2 answers

Disabling mouse wheel and keyboard events in TComboBox

When I use TComboBox, user can select an item by clicking the control and selecting and item with mouse, or they can hover cursor over the control and use scroll wheel, or they can use keyboard when the control is selected. How can I disable mouse…
VLL
  • 9,634
  • 1
  • 29
  • 54
0
votes
0 answers

TComboBox list won't drop down when using firemonkey styles in Delphi 10.1 Berlin

I'm having a problem with the FMX TComboBox component in Delphi 10.1 Berlin (and I've seen it in earlier XE versions as well). The problem is this. I create a new multi-platform project, drop a TComboBox on an empty form, add a few items to…
0
votes
1 answer

Count how many times a ComboBox item was selected in C++ Builder

I need your help to resolve my problem. I have a ComboBox with 2 items: StackExchange, and StackOverflow. I want to know how to count of how many times StackOverflow item was selected and put the results in a messagebox. Thanks and Regards.
July Elizabeth
  • 105
  • 1
  • 11
0
votes
0 answers

Delphi TComboBox Cancel Selection

I've got delphi TComboBox control on my form. It has element button on each line which is when clicked shows a new form with information on the item. What I need to do is when clicked on the button it shouldn't change previously selected item. Now I…
Evgeniy
  • 1
  • 1
0
votes
1 answer

Delphi Seattle TCombobox Dropdowncount not working when using ownerdraw style

I have an owner-drawn TComboBox in Delphi Seattle which ignores any settings to the DropDownCount property. The height of the individual items is 59 pixels and the width is 311 pixels. I have 5 entries in the Items stringlist. Setting a value below…
0
votes
0 answers

Delphi Firemonkey XE8 TComboBox is unfolding and closing after a seconds

I build all TComboBox fields programmatically, all is working fine, with one exception. In one panel all TComboBox-fields are immediately closed after clicking on it. They are only unfolded for seconds.... What could be a reason for that? I can't…
Jens.F
  • 41
  • 1
  • 6
0
votes
1 answer

TComboBox with Image in Firemonkey

I have added a TImage to the style of TListBoxItem. If I add to a TListBox, it works. If I add to a TComboBox, it doesn't works. I can't even change the height if the item in a TComboBox. Here my sample code: procedure TMainForm.FormCreate(Sender:…
conanmichi
  • 53
  • 1
  • 8
0
votes
1 answer

Delphi inspect external TLabels inside a TGroupBox via EnumWindows, Enumchildwindows or Spy++

I am developing an application in Delphi XE2 which inspects, through the functions EnumWindows and EnumChildWindows a window of a running application also written in Delphi. This is the main code (adapted from an example:…
AndreaBoc
  • 3,077
  • 2
  • 17
  • 22