<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Discuz! BBS - Delphi</title>
    <link>https://www.unicoder.cn/forum.php?mod=forumdisplay&amp;fid=91</link>
    <description>Latest 20 threads of Delphi</description>
    <copyright>Copyright(C) Discuz! BBS</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sat, 16 May 2026 06:42:00 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.unicoder.cn/static/image/common/logo_88_31.gif</url>
      <title>Discuz! BBS</title>
      <link>https://www.unicoder.cn/</link>
    </image>
    <item>
      <title>delphi 分割字符串获取一个数组</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=323</link>
      <description><![CDATA[]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Wed, 01 Jan 2025 03:39:15 +0000</pubDate>
    </item>
    <item>
      <title>Delphi 字符串中是否包含子字符串</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=322</link>
      <description><![CDATA[]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Tue, 31 Dec 2024 22:28:30 +0000</pubDate>
    </item>
    <item>
      <title>delphi 在自定义unit中建立类实例</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=319</link>
      <description><![CDATA[然后，在另一个窗体中你可以创建这个单元的实例：]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Sat, 28 Dec 2024 08:20:39 +0000</pubDate>
    </item>
    <item>
      <title>Delphi 通过编码添加控件</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=317</link>
      <description><![CDATA[在这个例子中，AddButton 方法创建了一个按钮控件，并设置了其属性，注意要设置其父窗口，包括其在窗体上的位置和大小，显示的文本，以及点击事件的处理程序。点击事件的处理程序 ButtonClickHandler 简单地显示一个弹窗。

要添加控件，只需在适当的时机调用 AddButt ...]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Fri, 27 Dec 2024 04:13:40 +0000</pubDate>
    </item>
    <item>
      <title>delphi 读取ini文件</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=316</link>
      <description><![CDATA[使用TIniFile类可以读取ini文件。首先，需要在使用前使用uses语句引入IniFiles单元。然后，可以创建一个TIniFile对象并指定ini文件的路径。接下来，可以使用ReadString、ReadInteger等方法读取ini文件中的键值对，如下所示

另一种读取ini文件的方法是使用GetPrivatePro ...]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Thu, 26 Dec 2024 12:00:15 +0000</pubDate>
    </item>
    <item>
      <title>Delphi 显示两个窗口</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=312</link>
      <description><![CDATA[在Delphi中，显示两个窗口可以通过创建两个不同的窗体类实例来完成。以下是一个简单的例子：

在这个例子中，Form1 是主窗体，Form2 是第二个要显示的窗体。你需要确保 Form1 和 Form2 是你的窗体设计单元的名称。调用 ShowTwoForms 方法会创建并显示 Form2。使用 try.. ...]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Thu, 26 Dec 2024 04:31:38 +0000</pubDate>
    </item>
    <item>
      <title>Delphi 类方法的定义和调用</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=311</link>
      <description><![CDATA[要调用类方法,你可以直接使用类名.


给class var 赋初值：
在这个例子中，TMyClass 有一个class var 变量 ClassVar，它持有一个 TObject 类型的引用。在 Create 方法中，如果 ClassVar 是 nil，则分配一个 TStringList 对象给它。在 Destroy 方法中，在释放 TMyClass  ...]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Wed, 25 Dec 2024 11:14:05 +0000</pubDate>
    </item>
    <item>
      <title>初始化自定义类</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=310</link>
      <description><![CDATA[]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Wed, 25 Dec 2024 01:45:03 +0000</pubDate>
    </item>
    <item>
      <title>Delphi Random</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=309</link>
      <description><![CDATA[Random函数签名:
function Random([Range: Integer]): Integer;
不带参数调用时，生成一个在0到[MaxInt)范围内的随机整数。
提供一个Range参数时，生成一个在0到Range-1范围内的随机整数‌。

Randomize:  用于初始化随机数生成器。如果不使用Randomize，每次生成的随机 ...]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Tue, 24 Dec 2024 02:10:39 +0000</pubDate>
    </item>
    <item>
      <title>GDI+ 反锯齿</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=307</link>
      <description><![CDATA[尝试使用path和fillpath反锯齿：



在Delphi 2007中使用GDI+，你需要首先确保你的系统上安装了GDI+的组件或库。Delphi 2007并不直接支持GDI+，因此你可能需要使用第三方库，如GDIPOBJ。

以上是一个简单的例子，展示如何在Delphi 2007中使用GDI+来创建一个带有透明背景 ...]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Mon, 23 Dec 2024 02:27:25 +0000</pubDate>
    </item>
    <item>
      <title>利用正切求角度</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=305</link>
      <description><![CDATA[delphi的三角函数角度单位是弧度，我想从一个角度先得到正切（单位圆正切值），再来反正切，再从得到的弧度换算成角度。
360度的弧度是  2*Pi*R/R = 2 * Pi
1度的弧度是  2 * Pi / 360 = Pi / 180
代码：
首先计算了一个角度Angle的正切值TanValue，然后使用ArcTan来计 ...]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Tue, 17 Dec 2024 03:37:51 +0000</pubDate>
    </item>
    <item>
      <title>timer</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=304</link>
      <description><![CDATA[]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Sun, 15 Dec 2024 16:08:44 +0000</pubDate>
    </item>
    <item>
      <title>&lt;草稿&gt;Delphi 多进程与多线程</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=303</link>
      <description><![CDATA[如下：在Delphi中，多线程可以使用TThread类来实现，而多进程则可以通过创建多个应用程序实例或使用CreateProcess函数来实现。以下是一个简单的Delphi多线程示例代码：在这个例子中，我们定义了一个TMyThread类，它继承自TThread。在Execute方法中，我们写入了线程要执 ...]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Sun, 15 Dec 2024 03:22:40 +0000</pubDate>
    </item>
    <item>
      <title>Delphi 使用socket和其他实体通信：</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=302</link>
      <description><![CDATA[用任意语言编一个TCP的socket，然后Delphi与之通信：


暂时就是这么编的，帧的前部是后部的长度，用一个长整型记录，之后两个部分都转成字节，然后相连接，发送。
收取的也是字节，转成字串输出。数据的转换请看前面一个帖子。
用到TIdTCPClient， Delphi2007 编译通过 ...]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Thu, 12 Dec 2024 20:50:19 +0000</pubDate>
    </item>
    <item>
      <title>Delphi shape 画一个任意多边形</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=301</link>
      <description><![CDATA[使用TGPGraphics， 在窗体上绘制5边形：

在这个例子中，我们首先创建了一个TGPGraphics对象来处理绘图，然后创建了一个TGPPen对象来指定线条的颜色和宽度。接着，我们创建了一个TGPGraphicsPath对象，并使用AddPolygon方法添加了一个五边形。最后，我们使用DrawPath方 ...]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Thu, 12 Dec 2024 20:31:43 +0000</pubDate>
    </item>
    <item>
      <title>Delphi 建立一个到处可用的绘图组件</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=300</link>
      <description><![CDATA[建立一个自定义控件，该控件在paint事件中绘制一个图形：]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Thu, 12 Dec 2024 20:20:28 +0000</pubDate>
    </item>
    <item>
      <title>delphi 连接两个Idbytes为一个IdBytes</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=298</link>
      <description><![CDATA[]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Fri, 06 Dec 2024 15:40:17 +0000</pubDate>
    </item>
    <item>
      <title>Delphi 将整数转为4字节, 将字串和字节互转</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=297</link>
      <description><![CDATA[一&gt; 将一个长整型，转换成字节：
因为长整型有4个字节，所以转出来的字串也有相同的长度。

二&gt; 将字符串转换成字节：


三&gt;  将字节转换成字符串：
以上在Delphi2007中测试通过。]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Fri, 06 Dec 2024 15:35:24 +0000</pubDate>
    </item>
    <item>
      <title>Delphi IdTCPClient 发送二进制数据</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=295</link>
      <description><![CDATA[]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Fri, 06 Dec 2024 13:31:27 +0000</pubDate>
    </item>
    <item>
      <title>Delphi 将整型编码为utf-8</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=294</link>
      <description><![CDATA[草稿，抄自BaiduAI，需要Delphi2009以上。]]></description>
      <category>Delphi</category>
      <author>admin</author>
      <pubDate>Fri, 06 Dec 2024 13:11:52 +0000</pubDate>
    </item>
  </channel>
</rss>