英文:
Is there a way to remove padding from the checkbox itself in FMX?
问题
我试图实现的目标是让所有组件都对齐到左边(红线),但你可以看到复选框和单选按钮有一些奇怪的填充,即使填充本身设置为0。
有人能帮助我解决这个问题吗?
英文:
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.
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论