诸 诸葛不才 Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-05 #1 双击或停留久一点后节点就会处于编辑状态,怎样防止啊,并且ListView 如何通过F2来完成更名啊,编辑完后发生什么事件将它写入数据库呢?
G guy02 Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-05 #2 Treeview1.ReadOnly := True;
T terry_lzs Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-07 #7 1、将readonly设置为true 2、在onedited事件中编写代码 procedure TForm1.TreeView1Edited(Sender: TObject; Node: TTreeNode; var S: String); begin query1.append; query1.fields[0].asstring:=s; query1.post; end;
1、将readonly设置为true 2、在onedited事件中编写代码 procedure TForm1.TreeView1Edited(Sender: TObject; Node: TTreeNode; var S: String); begin query1.append; query1.fields[0].asstring:=s; query1.post; end;