TOorderedListEditDlg 有官方接口吗?
作为专家,我想重新使用 Delphi 显示的对话框来编辑项目的库路径并用于类似目的:
我发现了使用它的技巧(在页面上查找 TOrderedListEditDlg)。我认为撰写链接文章的人知道他在做什么,我对一篇不那么老套的文章没有太多希望解决方案,但谁知道... 那么:您知道 TOrderedListEditDlg 的官方接口(很可能是 OTA)吗?
PS:我知道重新创建整个对话框可能很简单,但我喜欢一致性和 DRY 原则。
In an expert, I'd like to re-use the dialog that Delphi displays to edit a project's library path and for similar purposes:
I found a hack for using it (look for TOrderedListEditDlg on the page). As I think the guy who wrote the linked article knows what he does I don't have too much hope for a less hacky solution, but who knows... So: Do you know an official interface (most probably OTA) to TOrderedListEditDlg?
PS: I'm aware that it's probably trivial to recreate the whole dialog but I like consistency and the DRY principle.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你是对的,我找不到官方的方法,这是我使用这个 hack 的唯一原因。
顺便说一句,请查看提到的
INTAEnvironmentOptionsServices
和INTAAddInOptions
接口 此处。您可以将您的配置合并到 Delphi 的环境选项树视图中。但TOrderedListDlg
似乎还没有正式曝光。You're right, I couldn't find an official way, that's the only reason I used this hack.
BTW, check out the
INTAEnvironmentOptionsServices
andINTAAddInOptions
interfaces mentioned here. You can incorporate your configuration in Delphi's Environment Options treeview. ButTOrderedListDlg
still doesn't seem to be exposed officially.