Mark Derricutt asked:
> Hiya, I'm writing a combobox type component and was wondering
> how I make my
> listbox/dropdown float over my forms. I'm guessing I use
> CreateWindow or
> something, but not quite sure what I'm supposed to do, any one have any
> example type code for this sorta stuff?
We use this code in CreateParams:
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"