FNC TreeView : read-only but editable node text?

Hello,


I would like to allow the user to select the text in a treeview so he can copy it all or in part but prevent the text to be changed.

Is there a simple way to do this?

Hi,


To enable read-only on editor level you can use the following code:

procedure TForm1.TMSFNCTreeView1CustomizeInplaceEditor(Sender: TObject;
  ANode: TTMSFNCTreeViewVirtualNode; AColumn: Integer;
  AInplaceEditor: TControl);
begin
  if AInplaceEditor is TCustomEdit then
    (AInplaceEditor as TCustomEdit).ReadOnly := True;
end;

Works like a charm. Thank you