TTMSFNCListBox

Hi,

There is always a border when using this control and I can't seem to get rid of it.

Thanks,

Ken

Dear Ken,


We are investigating on how to implement it properly in our component, but until this improvement is available, please use the following workaround:



type
  TTMSFNCListBoxOpen = class(TTMSFNCListBox);


procedure TForm52.FormCreate(Sender: TObject);
begin
  TMSFNCListBox1.Stroke.Color := TMSFNCListBox1.Fill.Color;
  TTMSFNCListBoxOpen(TMSFNCListBox1).TreeView.GroupsAppearance.TopStroke.Color := TMSFNCListBox1.Fill.Color;
  TTMSFNCListBoxOpen(TMSFNCListBox1).TreeView.GroupsAppearance.BottomStroke.Color := TMSFNCListBox1.Fill.Color;
end;

Hi Pieter,

That works perfectly thanks.

Regards,

Ken

One further thing. Is it possible not to have the dotted box round the selected item?

Yes, with 



TTMSFNCListBoxOpen(TMSFNCListBox1).TreeView.NodesAppearance.ShowFocus := False;

Thanks. Any reason this isn't a property?

It has been added to the treeview, but not exposed in the listbox. We have exposed it now and the next version will have this available under ItemsAppearance

Thanks Pieter. Great support as usual!

Thanks !

One more. Hope you don't mind me using the same post. Would it be possible for a TWebPanel to have the Fill properties?

Hi,


If you want to use Fill/Stroke, then please use the TTMSFNCPanel. TWebPanel can be styled using CSS, which is pure HTML. TTMSFNCPanel relies on the HTML Canvas, and supports fill/stroke capabilities.

Ok, thanks.