Recent

Author Topic: [SOLVED]ComboBoxEx text propertie  (Read 1801 times)

MVD

  • New Member
  • *
  • Posts: 23
[SOLVED]ComboBoxEx text propertie
« on: September 28, 2017, 02:26:16 pm »
Hi,

I am working in windows 10.
how can I access the text from a CombBoxEx;
When I select an item and with a change event I can select the text from the combobox but I need the text from the selected item TcomboExItem.
« Last Edit: October 01, 2017, 11:37:29 am by MVD »

balazsszekely

  • Guest
Re: ComboBoxEx text propertie
« Reply #1 on: September 28, 2017, 02:34:37 pm »
I hope I understood you correctly. Create an OnChange event for the ComboBoxEx, then:
Code: Pascal  [Select][+][-]
  1. procedure TForm1.ComboBoxEx1Change(Sender: TObject);
  2. begin
  3.   ShowMessage(ComboBoxEx1.ItemsEx.Items[ComboBoxEx1.ItemIndex].Caption);
  4. end;

MVD

  • New Member
  • *
  • Posts: 23
Re: ComboBoxEx text propertie
« Reply #2 on: September 29, 2017, 11:45:14 pm »
Thanks a lot, it is working like a charm! :D

 

TinyPortal © 2005-2018