?
Solved

controlling listbox portion of combo box

Posted on 1997-06-17
1
Medium Priority
?
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
ronit051397 earned 400 total points
ID: 1337158
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

770 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