delphi - 当标题更改时,如何避免 TSpeedButton 中的图像位置发生变化?

标签 delphi delphi-7

我需要将所有按钮图标排列在同一对齐方式上。但是随着标题长度的变化,按钮图像位置也会发生变化...请建议我避免这种情况的方法。我正在使用TSpeedButton

TSpeedButton with different captions

最佳答案

您可以通过编辑 TSpeedButtonMargin 属性来实现这一点。这样,所有字形都将与 Layout 对齐,并按 Margin 值偏移。

关于delphi - 当标题更改时,如何避免 TSpeedButton 中的图像位置发生变化?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7766491/

相关文章:

delphi - 与其他语言相比,Delphi 是否更有可能重用临时变量?

string - 我可以访问从 Delphi CreateProcess 命令返回的字符串吗?

delphi - 使用 for 循环将字符串转换为字符数组 string[0] 始终为 null

Delphi 7、FastMM 和 DUnit GUITesting 因错误内存泄漏而导致测试失败

delphi - Delphi 中的字体平滑

delphi - E2001 需要序号类型

delphi - 如何在 Delphi 7 中使用 SQL Server Service Broker/SQL 通知?

arrays - 类的函数返回一个在类之后声明的数组

delphi - 使用 Simple MAPI TEmail 组件记录时出现死锁

windows - delphi - 计算目录大小API?