So as well as creating my TMyComboThing, I create a subclass of the comp I 
wanna drop down (in my case a TListView) and override CreateParams, and 
create that.

Then to pop it up, I just .visible := true/false it?

Sounds fairly simple...  Assuming I've got it right..


--On Monday, February 12, 2001 4:32 PM +1300 Max Nilson <[EMAIL PROTECTED]> 
wrote:

> procedure TDropDownPanel.CreateParams(var Params: TCreateParams);
> begin
>   inherited CreateParams(Params);
>   with Params do
>     Style := (Style or CS_SAVEBITS or WS_POPUP) and
>       (not (WS_VISIBLE or WS_CHILD))
> end;
>
> This creates an initially invisible panel that is configured to do the
> popup thing later on. The SAVEBITS is to speed things up when you close
> the panel back up again.
>
> Cheers, Max.
>
>
> -------------------------------------------------------------------------
> -- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"



-- 
There are exceptions, I'm sure, but the Windows 2000 on-line community
seems to have, in general, the moral and spiritual qualities of your
average porn site. (c) Bryan Pfaffenberger, Linux Journal, Jan 2001.
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to