TDBLookupComboBox wider?

I have a small TDBLookupComboBox but the list i need to display is a lot wider. Its Article Number and Article name together, but only the article-number will stay in the field.  The witdh of the list looks to be limited to the width of the visual component. Is there ant way around this, or perhaps some third party component that can handle this?
Paer ToernellAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sinisa VukSoftware architectCommented:
You must set DropDownWidth property.
type
  TMyDBLookupComboBox = class(TDBLookupComboBox); 

procedure TForm1.FormCreate(Sender: TObject);
begin
  DBLookupComboBox1.DropDownWidth := TMyDBLookupComboBox(DBLookupComboBox1).Canvas.TextWidth(StringOfChar('A', 10+20));
end;

Open in new window


...where 10 is char length of first field and 20 is second field length .... (in my example)

There is great article for autosize TComboBox list width.... but is not good in your case

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.