TTMSFNCListBox hittest

When I uncheck the hittest property of the listbox, I till can click and select items. I believe the listbox should not react to any mouseclick anymore without hittest enabled, just like other controls do. I need to prevent user from selecting items, because I use the listbox only for status display.

Hi,


We'll investigate exactly why this is not working. The listbox internally uses a treeview. You can workaround it for now by using the following code:



type
  TTMSFNCListBoxOpen = class(TTMSFNCListBox)


procedure TForm1.FormCreate(Sender: TObject);
begin
  TTMSFNCListBoxOpen(TMSFNCListBox1).TreeView.HitTest := False;
end;


Great, that works. Thanks a lot!