delphi2010下代码如下:
TXRegionRect = packed record
X: Integer;
Y: Integer;
Width: Integer;
Height: Integer;
public
constructor TXRegionRect(AX,AY,AWidth,AHeight: Integer);
end;constructor TXRegionRect.TXRegionRect(AX,AY,AWidth,AHeight: Integer);
begin
X := AX;
Y := AY;
Width := AWidth;
Height := AHeight;
end;
要想在delphi7用应该怎么改?
TXRegionRect = packed record
X: Integer;
Y: Integer;
Width: Integer;
Height: Integer;
public
constructor TXRegionRect(AX,AY,AWidth,AHeight: Integer);
end;constructor TXRegionRect.TXRegionRect(AX,AY,AWidth,AHeight: Integer);
begin
X := AX;
Y := AY;
Width := AWidth;
Height := AHeight;
end;
要想在delphi7用应该怎么改?
解决方案 »
- 使用printers组件设计打印程序,请问怎么判断打印机是否联机?
- 点击MDI子窗体的一个按钮,显示一个窗体,这个窗体相对这个子窗体是ShowModal的,但同时还可以在MDI窗体里面打开其它子窗体,如何做出这
- 老问题:TQuery:插入一条记录提交后其他有记录会隐藏不见
- 如何在我的project中include一个libmysql.dll文件进去?急
- 谁用过SUIPack这个控件
- 谁能帮帮我啊?关于ActiveX Form 发布使用的问题!!!
- 为了不然有更多的人犯我这个错误,希望高手解答一下
- 求助!!!困惑???
- 小弟刚刚步入此行,有问题要求救!!!!
- 有关于返回上层调用的问题?
- Tpopupmenu为每个菜单项加上图标,鼠标移上时有蓝色焦点条,如果让蓝色条不在图标区显示?
- idhttp提交出现http/1.1 405 method not allowed(xe,indy10)
TXRegionRect = packed record
X: Integer;
Y: Integer;
Width: Integer;
Height: Integer;
end;funciton CreateTXRegionRect(AX,AY,AWidth,AHeight: Integer):TXRegionRect;function CreateTXRegionRect(AX, AY, AWidth, AHeight: Integer): TXRegionRect;
begin
Result.X := AX;
Result.Y := AY;
Result.Width := AWidth;
Result.Height := AHeight;
end;// 调用
var
r:TXRegionRect;
begin
r := CreateTXRegionRect(111, 222, 333, 444);
end;