delphi

以下是为您整理出来关于【delphi】合集内容,如果觉得还不错,请帮忙转发推荐。

【delphi】技术教程文章

Delphi Interfaces【代码】

http://www.delphibasics.co.uk/Article.asp?Name=Interface The reason for interfaces Classes that extend another class can be called sub-classes. For example, you might extend a bicycle class to have mountain bike, and child bike sub-classes. They inherit a lot of the common functions of the general bicycle class, but add unique features, such as stabilizer wheel options for the child bike. You can...

Delphi 设计模式:《HeadFirst设计模式》Delphi7代码---策略模式之MiniDuckSimulator[转]【图】

1 2{《HeadFirst设计模式》之策略模式 } 3{ 本单元中的类为策略类 } 4{ 编译工具: Delphi7.0 } 5{ E-Mail : guzh-0417@163.com } 6 7unit uStrategy; 8 9interface1011type12 {飞行接口,及其实现类 }1314 IFlyBehavior = Interface(IInterface)15 procedure Fly;16 end;1718 TFlyWithWings = class(TInterfacedObject, IFlyBehavior)19 public20 procedure Fly;21 end;2223 TFlyNoWay = class...

Delphi TOpenDialog设置多个过滤条件

网上阅读opendialog1.filter设置多个过滤条件,这方面资料,表述不准确。本人学习体会如下:1、filter以"|" 作为1组过滤。 "|"左侧为 opendialog1显示的过滤提示字符,"|"左侧为过滤条件,如:‘文档文件|*.doc‘;2、过滤条件2个以上,可以通过“;”字符追加,如:‘文档文件|*.doc;*.docx;*.txt;*.xls’;3、如果2组过滤以上,通过 "|"字符追加,如:‘文档文件|*.doc;*.docx;*.txt;*.xls;*.xlsx|Word文件‘;下面是4组的示例:o...

hprose rpc使用实例(同时有Java和Delphi客户端的例子)

php server [php] view plain copy <?php require_once(‘src/Hprose.php‘); function hello($name) { echo "Hello $name!"; return "Hello $name!"; } function e() { throw new Exception("I am Exception"); } function ee() { require("andot"); } function asyncHello($name, $callback) { sleep(3); $callback("from serve...

delphi 13 打印相关

打印页面设置打印预览文档属性 //------------------------------------------------------------------------------procedure WB_Print();begin Form1.WebBrowser1.ExecWB(OLECMDID_PRINT,1);end;//------------------------------------------------------------------------------//------------------------------------------------------------------------------procedure WB_PrintPreview();begin Form1.WebBrowser1.Ex...

Delphi绘图相关对象(TCanvas对象的方法)

TCanvas对象的方法 方法说明ArcArc(x1,y1,x2,y2,x3,y3,x4,y4 : Integer);Arc方法在椭圆上画一段弧,椭圆由(x1,y1)、(x2,y2) 两点所确定的椭圆决定。弧的起点是椭圆圆周和椭圆中心与(x3,y3)连线的交点。弧矩形终点是椭圆圆周和椭圆中心与(x4,y4)连线的交点以逆时针方向画弧ChordChord(x1,y1,x2,yx,x3,y3,x4,y4 : Integer);Chord方法连接椭圆上两点,椭圆由(x1,y1)、(x2,y3) 两点所确定的矩形决定,(x3,y3)是始点,(x4,y4)是终点Brus...

zw版【转发·台湾nvp系列Delphi例程】HALCON color_fuses1【图】

zw版【转发·台湾nvp系列Delphi例程】HALCON color_fuses1 procedure TForm1.Button1Click(Sender: TObject);var w, h : OleVariant; hv_Fuse, hv_i : Integer;begin Op.ReadImage(ho_Image, Tuple.TupleAdd(‘color/color_fuses_0‘, hv_Count)); Op.GetImageSize(ho_Image, w, h); Op.SetPart(hv_WH, 0, 0, h - 1, w - 1); Op.DispObj(ho_Image, hv_WH); Op.SetTposition(hv_WH, 12, 512); Op.WriteString(hv_WH, Tupl...

IsChild API与Delphi里的Parent不是一回事(Windows窗口自己不能是自己的子窗口,但Delphi不一定)【代码】

新建一个Form,上面放一个Button1,一个Panel1,然后在Panel1上再放一个Button2,测试结果:procedure TForm1.Button1Click(Sender: TObject); beginif IsChild(handle, handle) then ShowMessage(‘yes‘) else ShowMessage(‘no‘); // 显示No, 因为Form自己不是自己的Childif IsChild(handle, button1.handle) then ShowMessage(‘yes‘) // 显示Yeselse ShowMessage(‘no‘);if IsChild(handle, panel1.handle) then ShowMessa...

zw版【转发·台湾nvp系列Delphi例程】HALCON SetLineStyle2【图】

zw版【转发·台湾nvp系列Delphi例程】HALCON SetLineStyle2 procedure TForm1.Button1Click(Sender: TObject);var img : HImageX; rg : HRegionX; w, h : OleVariant; val : OleVariant;begin img := CoHImageX.Create; img.ReadImage(‘rings_and_nuts‘); w := img.GetImageSize(h); HWindowXCtrl1.HalconWindow.SetPart(0, 0, h - 1, w - 1); img.DispObj(HWindowXCtrl1.HalconWindow); val := VarArrayOf([3, 1]); r...

Delphi XE7 Update1修正列表

Delphi XE7 Update1修正列表官方下载地址:http://altd.embarcadero.com/download/radstudio/xe7/delphicbuilder_xe7_upd1_win.isobug修正列表:http://edn.embarcadero.com/article/44156更新内容:http://docwiki.embarcadero.com/RADStudio/XE7/en/Release_Notes_for_XE7_Update_1Keygen也来了!http://pan.baidu.com/s/1eQqyQZo原文:http://www.cnblogs.com/LittleTiger/p/4374143.html

DELPHI - 相关标签