Hello
I need to create dropdown window for my custom combobox.
How can I create Form (or Top control) that accept mousedown event but don't get focus.
In Delphi I used
procedure TPopupInactiveFormEh.WMMouseActivate(var Message: TWMMouseActivate);
begin
Message.Result := MA_NOACTIVATE;
end;
for forms
or
procedure TPopupListboxEh.CreateParams(var Params: TCreateParams);
Params.WndParent := GetDesktopWindow;
function TPopupListboxEh.CanFocus: Boolean;
begin
Result := False;
end;
for child controls
No WM_MOUSEACTIVATE work. Doesn't work at all in Lazarus.
No GetDesktopWindow in Linux GTK. Crossplatform solution needed.