有没有方法从FMX中的复选框本身移除填充?

huangapple go评论55阅读模式
英文:

Is there a way to remove padding from the checkbox itself in FMX?

问题

我试图实现的目标是让所有组件都对齐到左边(红线),但你可以看到复选框和单选按钮有一些奇怪的填充,即使填充本身设置为0。

有没有方法从FMX中的复选框本身移除填充?

有人能帮助我解决这个问题吗?

英文:

What im trying to achive is that all components are aligned to the left ( red line )
But as you can see checkboxes and radiobuttons has some strange padding even tho padding itself is set to 0.

有没有方法从FMX中的复选框本身移除填充?

Can anyone help me with this one?

答案1

得分: 3

我猜你正在使用FMX框架。这可以通过在设计时间右键单击复选框,然后单击“编辑默认样式”,再单击小框并将“Align”属性设置为左侧来实现。对于单选按钮也是一样。最后关闭样式设计器选项卡并单击“是”以保存更改。

英文:

Seeing your tags I'm assuming you are using the FMX framework. This can be achieved by right clicking the Checkbox in design time > Click Edit Default Style > Click on the little box and set the "Align" property to left. The same applies to the radio button. Lastly close the Style Designer tab and click Yes to save the changes.

huangapple
  • 本文由 发表于 2023年2月6日 19:32:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/75360767.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定