Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将字形属性添加到我的自定义组件?
Vcl.Buttons 已声明类TButtonGlyph但我不能使用它(Delphi 在使用列表中没有看到它与 Vcl.Buttons 一起使用)。
TButtonGlyph
TButtonGlyph是 VCL 使用的内部帮助器类。这不是你需要的。我怀疑您需要做的就是声明一个已发布的 type 属性TPicture。VCL 将自动提供设计时编辑器,并将图像流式传输到 .dfm 文件。您可以使用任何TGraphic后代,包括TPNGImage.
TPicture
TGraphic
TPNGImage