EhLib.Com
https://forum.ehlib.com/en/

Suggestion of two or more columns in the TDBComboBoxEh
https://forum.ehlib.com/en/viewtopic.php?f=5&t=1149
Page 1 of 1

Author:  Luciano_F [ 16 Apr 2022, 00:59 ]
Post subject:  Suggestion of two or more columns in the TDBComboBoxEh

Your components are great and I played all my TEdit, tmemo, tmaskedit and tcombobox controls
by your Ehlib controls

But I really miss two or
more columns in TDBComboBoxEh

You could consider implementing this functionality in a future release.

Author:  EhLibSupport [ 16 Apr 2022, 11:08 ]
Post subject:  Re: Suggestion of two or more columns in the TDBComboBoxEh

Hello

TDBLookupComboboxEh can have multiple columns in the drop down list.

Author:  Luciano_F [ 16 Apr 2022, 13:40 ]
Post subject:  Re: Suggestion of two or more columns in the TDBComboBoxEh

I don't know how to use "TDBLookupComboboxEh"
I don't want database link

Could you send me a DFM example of how to do this because I tried and couldn't I didn't find the "Items" property

Look :
Code:
object DBLookupComboboxEh1: TDBLookupComboboxEh
  Left = 88
  Top = 104
  Width = 193
  Height = 21
  DynProps = <>
  DataField = ''
  DropDownBox.Columns = <
    item
      Title.Caption = 'Codigo'
    end
    item
      Title.Caption = 'Nome'
    end>
  EditButtons = <>
  TabOrder = 0
  Visible = True
end


Author:  EhLibSupport [ 19 Apr 2022, 09:42 ]
Post subject:  Re: Suggestion of two or more columns in the TDBComboBoxEh

Hello

Here is the Demo project.

Attachments:
2022-04-19-DBLookupComboboxEh-Demo.zip [5.36 KiB]
Downloaded 66 times
sshot-243.png
sshot-243.png [ 15.49 KiB | Viewed 786 times ]

Author:  Luciano_F [ 19 Apr 2022, 10:30 ]
Post subject:  Re: Suggestion of two or more columns in the TDBComboBoxEh

I am very grateful for this example I will use it in two situations.

But I see that this way I must have a "TMemTableEh"
or a "TClientDataset" as I have several combobox that I need to have two columns would have this job of having an associated Dataset.

I still analyze that if the colleague creates this functionality of two columns in a "TDBComboBoxEh" it would be more interesting due to the possibility of working without depending on a Tdataset.

Even because Combobox with several columns is something that doesn't exist easily in Delphi, and it would be a differential for your library for new users like your Clients.
Recently I bought LMDTools just because I wanted a Hint with HTML support and I found it in LMDTools and bought it myself for this differential.

Grateful.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/