代码
procedure TResTree.TreeView2MouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var
p:TPOINT;
Axis_X,Axis_Y:Integer;
VL_Node:TTreeNode;
begin
if Button=mbRight then ~~~这句话出现错误
begin
VL_Node:=TreeView2.GetNodeAt(X,Y);
if (VL_Node<>nil) and (VL_Node.Selected) then
begin
GetCursorPos(p);
Axis_X := p.X;
Axis_Y := p.Y;
PopupMenu1.Popup(Axis_X,Axis_Y);
end;
end;
end;
procedure TResTree.TreeView2MouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var
p:TPOINT;
Axis_X,Axis_Y:Integer;
VL_Node:TTreeNode;
begin
if Button=mbRight then ~~~这句话出现错误
begin
VL_Node:=TreeView2.GetNodeAt(X,Y);
if (VL_Node<>nil) and (VL_Node.Selected) then
begin
GetCursorPos(p);
Axis_X := p.X;
Axis_Y := p.Y;
PopupMenu1.Popup(Axis_X,Axis_Y);
end;
end;
end;
解决方案 »
- form窗体之间可以互相调用吗?
- 急!!!怎么把外部文件集成到程序里!!!分不够再加!
- 如果想从后往前查符合条件的记录怎么做呢?
- ★★★留個QQ,相互學習,共同进步!★★★
- 关于杀死服务进程的问题~~高手~~会的~~请进[100分]~~~~!!!!
- 谁能告诉我GIPS是什么?
- 求delphi7.0的crack文件:[email protected] 急!
- close的问题?
- 怎么让Qrband!QrRSubDetail这些组件出现边框呢?
- 无法定位程序输入点?_LockSpain@CReaderWriterLock3@@AAEX_N@Z于动态链接库MSDART.DLL上?????????WHY?
- 关于delphi制作软件后的一些路径问题
- 在其它开发平台下调用 Delphi 编写的DLL问题
原先Delphi自动生成的是这样的
interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ActiveX, AxCtrls, ActiveFormProj1_TLB, StdVcl, ExtCtrls, StdCtrls;
改成这样就行了!interfaceuses
ActiveFormProj1_TLB, Windows, Messages, SysUtils, Classes, Graphics, Controls,
Forms, Dialogs, ActiveX, AxCtrls, StdVcl, ExtCtrls, StdCtrls;