Solved

controlling listbox portion of combo box

Posted on 1997-06-17
1
180 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

825 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