H hejiesi Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-14 #1 当Listview拥有焦点时按下键盘的某一个按键时Listview就会 自动寻找以这个按键的字符开头的Item,怎样禁止这个功能?
L liguang Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-14 #3 procedure TForm1.ListView1KeyPress(Sender: TObject; var Key: Char); begin Key:=Char(0); end;
X xinyt Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-14 #4 procedure TForm1.ListView1KeyPress(Sender: TObject; var Key: Char); begin Key:=#0; end;
H hejiesi Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-16 #6 to:liguang to:xinyt 你们的方法可以屏蔽那个功能,但把Listview的Edit功能也屏蔽掉了, 有没有更好的方法?
P pxie Unregistered / Unconfirmed GUEST, unregistred user! 2000-09-16 #7 procedure TForm1.ListView1KeyPress(Sender: TObject; var Key: Char); begin if not ListView1.IsEditing then Key:=#0; end;
procedure TForm1.ListView1KeyPress(Sender: TObject; var Key: Char); begin if not ListView1.IsEditing then Key:=#0; end;