tmssoftware.com
TMS Support Center
FNC TreeView : read-only but editable node text?
FNC
TMS FNC UI Pack
Stephane_Grobety
(Stephane Grobety)
December 14, 2018, 12:42pm
1
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?
Pieter
(Pieter)
December 17, 2018, 8:52am
2
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;
Stephane_Grobety
(Stephane Grobety)
December 18, 2018, 2:33pm
3
Works like a charm. Thank you
Related topics
Topic
Replies
Views
Activity
FNCDataGrid ReadOnly-Mode
TMS FNC UI Pack
fnc-ui-pack
2
31
October 28, 2024
Iterate items in AdvTreeView
TMS VCL UI Pack
4
361
June 11, 2019
FNC TreeView - Disable node highlighting for selected node
TMS FNC UI Pack
1
170
June 25, 2021
FNCGrid Column ReadOnly
TMS FNC UI Pack
1
199
December 20, 2021
Editing a TAdvTreeViewNode
TMS VCL UI Pack
2
418
March 30, 2020
© tmssoftware.com