Delphi TButtonEdit 按钮出现在一个项目中但在另一个项目中消失

发布于 2024-09-26 16:04:03 字数 388 浏览 1 评论 0原文

我有一个简单的表单,用于列出连接的数据库中所有表的名称,并允许用户查看和编辑表中的数据。该表单包括一个带有左右按钮的 TButtonEdit 控件,用于设置和删除用户输入的过滤表达式。

我已将此表格包含在两个相关项目中。它的形式相同,在同一公共目录中使用相同的源。在这两种应用程序中,表单都可以正常工作,只是在一个应用程序中按钮可见且起作用,而在另一种应用程序中按钮不存在。似乎根本没有创建(而不是在没有图像的情况下创建),因为当我将光标放入 TButtonEdit 的编辑部分时,它位于控件的左边框上。

在存在此问题的同一个应用程序中,另一个窗体上的另一个 TButtonEdit 也出现,但没有该按钮(在这种情况下,仅指定了右侧按钮)。

有谁知道可能导致一个应用程序出现 TButtonEdit 问题的线索吗?

I have a simple form that I use to list the names of all tables in the connected database and allow users to see and edit the data in the tables. This form includes a TButtonEdit control with left and right buttons to set and remove a filter expression typed in by the user.

I have included this form in two related projects. It's the same form, using the same source in the same common directory. In both applications the form works okay except that in one application the buttons are visible and functioning and in the other they are not present. The don't seem to be created at all (rather than being created with no image) since, when I put the cursor into the Edit part of the TButtonEdit it is up against the left border of the control.

In the same application that has this problem, another TButtonEdit on another form also appears without the button (in this case, only a right hand button is specified).

Does anyone have a clue what might be causing one application to have this problem with TButtonEdit?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

墨小沫ゞ 2024-10-03 16:04:03

“存储”在 TImageList 中的按钮图标很可能仅包含在其中一个项目的 *.res 文件中。确保这些图像包含在两个项目中。

但是,我无法重现该问题。对于我来说,在两个项目中使用 TButtonedEdit 共享表单效果很好。

Most likely the button icons, that are "stored" in a TImageList, are only included in the *.res file of one of the projects. Make sure that these images are included in both projects.

However, I am unable to reproduce the problem. It works well for me to share a form with a TButtonedEdit across two projects.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文