From: talon@Dial.Cic.Net (John N. Miller)
Subject: Re: [delphi] Combo Box Box
Date: Wed, 14 Jun 1995 21:48:08 -0400

Found the solution again... it's as follows, don't know why it's not
included in the Help information as a RunTime property.. Hmmm....

procedure TForm1.FormCreate(Sender: TObject);
begin
   ComboBox1.DroppedDown := True;
end;

and of course False closes it if it's open.

-------------------------------------------------------------------------------

From: delarosa@ix.netcom.com (Luis de la Rosa )
Subject: Re: [delphi] How to make a TComboBox drop
Date: Wed, 14 Jun 1995 14:57:53 -0700

This is the ever popular (or at least it was back when I was using Visual Basic)
question:  How do you get a combo box to drop down?

The answer is:  There is a windows API call to do it.  Let me dig into my Visual 
Basic Power Toolkit and get it...

Ok, here it is:
It is in the user.dll (not that you need to know that)
You use:
function SendMessage(Handle of the ComboBox, 1039, 1, 0);

So, if I had a TComboBox that was named LouieCombo, I would use the following 
code:

Procedure DropCombo(LouieCombo : TComboBox);
var
    ReturnValue : Longint;
begin
    ReturnValue := SendMessage(LouieCombo.Handle, 1039, 1, 0);
end;

Note: A better way would be to make the "magic" numbers (aka the ones I just 
pulled from out of the book) into constants so that they would be more readable.
But this is a quick and dirty solution.

Let me know how it goes!

-- 
======================
Luis de la Rosa
delarosa@ix.netcom.com
======================

-------------------------------------------------------------------------------

From: Scott=Anderson%Auth%BRE-ChkSvcs@banyan.fyionline.com
Subject: re: [delphi] Combo Box Box
Date: Wed, 14 Jun 95 18:42:58 EDT

Use the Windows API. 

SendMessage(combobox1.handle,CB_SHOWDROPDOWN,Integer(True),0);
will drop the listbox part of the combobox,

SendMessage(combobox1.handle,CB_SHOWDROPDOWN,Integer(False),0);
will hide the listbox part of the combobox.

scott
