Mark Derricutt asked:
> I finally have my combo box type component working properly, its dropping
> down and up and doing everything sweet, apart from one problem, once I've
> selected an item in the embedded control, I can't click and give focus to
> any other control on my form, unless I press tab.
>
> Does anyone (Max?) have any suggestions as to what I could be
> missing?
Yes, I do think I know what's going on, and shoud be easy to fix. It appears
that windows focus is being grabbed by the popup windows, and what you
really want is to the focus to remain on the form and not be transfered to
popup. So to do this and still have the mouse clicks arriving on the popup
window you need to have the popup window processing the WM_MOUSEACTIVATE
message somewhat like this:
procedure TDropDownPanel.WMMouseActivate(var Message: TWMMouseActivate);
begin
Message.Result := MA_NOACTIVATE
end;
Have a look at the appropiate Windows documentation on the implications of
this to see what you are doing with this message.
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"