Topic: How to hide Treeview right click pop-up menu?

When using custom forms for treeview top and child records, I like to hide Treeview right click pop-up menu.
Followings didn't work:

form1.TreeView1.dbpopupmenu.items[0].visible := false;
...........


form1.TreeView1.dbPopupMenu.Items.Find('Add child record').visible := false;
form1.TreeView1.dbPopupMenu.Items.Find('Add top record').visible := false;
form1.TreeView1.dbPopupMenu.Items.Find('Edit record').visible := false;
form1.TreeView1.dbPopupMenu.Items.Find('Delete record').visible := false;

any help please...

Adam
God... please help me become the person my dog thinks I am.

Re: How to hide Treeview right click pop-up menu?

procedure Form1_OnShow (Sender: TObject; Action: string);
begin
    form1.TreeView1.PopupMenu := nil;
end;
Dmitry.

Re: How to hide Treeview right click pop-up menu?

Thank you very much...........

Adam
God... please help me become the person my dog thinks I am.