Solved

controlling listbox portion of combo box

Posted on 1997-06-17
1
172 Views
Last Modified: 2010-04-04
Anyone know of any way to affect the listbox portion of a combo box?  Specifically, the width (to make it wider than edit portion) and owner draw (to do columns).
0
Comment
Question by:meech
1 Comment
 
LVL 5

Accepted Solution

by:
ronit051397 earned 100 total points
Comment Utility
In general, if you want to do 'extra' actions on a combobox you
can send messages, using messages begin with CB_...
To make the drop down width equel to 300, write this:

procedure TForm1.ComboBox1DropDown(Sender: TObject);
begin
sendmessage(combobox1.handle, CB_SETDROPPEDWIDTH ,300,0);
end;

As for setting columns. I don't have an answer for that.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now