问题标签 [delphi-xe4]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
3139 浏览

delphi - Delphi - 提取setter方法的属性名称

在以下类型中:

我想通过 RTTI 知道“MyProperty”属性的 setter 方法的名称。我尝试了以下方法:

虽然指针不是零,但我只有一条空消息。有人给我一些提示吗?

PS:我使用的是 Delphi XE4,我知道我应该使用扩展 RTTI 而不是经典,但无论如何,我不能在这两个功能中做我想要的......所以,任何帮助将不胜感激。感谢您的回复。


最终版,问题已解决:

这是基于(我朋友的帮助和......)RTTI单元(TRTTIInstanceProperty类的DoSetValue方法)的代码:

这仅适用于虚拟二传手,对于静态消息是空的。感谢大家!

0 投票
1 回答
915 浏览

delphi - Indy10 Readln 和 ByteEncoding

我想AContext.Connection.IOHandler.ReadLn在 IdTcpServer 上的 Indy10 中使用,但我不知道如何使用 ByteEncoding 参数。客户端是否必须发送 WideString 或 AnsiString?

0 投票
1 回答
2233 浏览

delphi - SetFocus 与 Firemonkey,在从样书动态创建的 TEdit 上

我有一个带有隐藏 TEdit 组件的自定义样式 TListBoxItem。当我在列表框中选择一个项目时,我将 TEdit 设置为可见:

但我有一个问题,我如何设置 TEdit 的焦点?通常,我这样做:

有什么想法,我如何将重点放在 TEdit 上?

0 投票
0 回答
774 浏览

delphi - Delphi Windows 8 Live Tile 应用程序:无法部署磁贴

Delphi Live Tile for Windows 8:要创建一个 Live Tile 应用程序,您必须在 Metropolis 表单上放置一个 Live Tile 组件,输入您创建的证书的名称和该证书的发布者。然后,您必须更新应用清单并部署磁贴。每次我这样做时,它都会告诉我"no certificates were found that met all the given criteria"它无法部署磁贴。

现在,我完成了为 Delphi Metropolis Live Tile 应用程序准备环境的步骤,包括创建自签名证书、获得临时 Microsoft 开发人员许可证以及 Enbarcadero 的“设置开发 Live Tiles 的环境”中概述的其余步骤用于 Metropolis 用户界面。” 所以我不知道错误消息"no certificates were found that met all the given criteria"可能意味着什么。显然,在某些方面我一定做错了,但因为我可以查看我的证书并验证 Embarcadero 提出的其他要求,所以我不知道在哪里寻找答案。

0 投票
1 回答
2654 浏览

delphi - Indy10 - TIdContext to TIdTcpServer

I make different instances of TIdTcpServer and assign a pointer to the Data property that I need later on if a Client Connects/Disconnects/Executes.

Is it possible to get the "Parent" TIdTcpServer from a TIdContext?

If so, how can I do that?

Example:

0 投票
1 回答
1899 浏览

delphi - 如何阻止调试器进入给定单元的delphi

我的问题是,当我尝试在我的 delphi 调试器中单步使用 F7 时,它会进入 System.SysUtils 等系统单元……我不关心这些单元,我只想单步执行我自己的代码。我怎样才能关闭这个功能。我正在使用 Delphi XE4 Architect

0 投票
3 回答
5554 浏览

delphi - Delphi 和 iOS 文件大小

我在 Delphi XE4 for iOS 中创建了一个小应用程序。我有7个表格。一切都很好。

但我对文件大小有点震惊!它在模拟器上为 44MB。我为 android 制作的同一个应用程序几乎是 2MB。它有一个 320kb 的 jpg 格式的背景图像,我还没有在 iPhone 设备上测试它!

如果您在 XCode 上使用表单上的 ListBox、文本、按钮创建,那么正常大小的应用程序是什么?

有没有办法通过更改 Delphi 中的任何设置来减小文件大小?

0 投票
1 回答
1028 浏览

delphi - 添加指向 TIdTCPServer 和 TIdCustomTCPServer 的数据指针

我想向 中添加一个数据指针,TIdTCPServer并且我也想在TIdCustomTCPServer. 我不擅长覆盖等,所以这就是我到目前为止所拥有的:

我怎样才能让数据指针回到任何 OnConnect/OnDisconnect/etc ?

0 投票
1 回答
1572 浏览

delphi - E2017 Pointer type required using move function in Delphi 7 way

I'm trying to port a project from Delphi 7 to the new Delphi XE4 and I'm facing a problem with the move function :

The compiler throw an : [dcc32 Error] E2017 Pointer type required , error when arrive at the move statement ...

Why ? In Delphi 7 it compile without any problem, why Delphi XE4 doesn't compile ?

The declaration section is as follows :

0 投票
4 回答
2248 浏览

delphi - 在delphi中初始化对象

如您所知,在 c# 中初始化对象非常方便快捷

是否可以像这样在 Delphi 中初始化对象?