GtkLabel 对齐和填充 [英] GtkLabel alignment and padding

查看:55
本文介绍了GtkLabel 对齐和填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Glade 中有 GtkLabel,X 对齐设置为 0,X pad 设置为 5,扩展设置为 No.

I have GtkLabel in Glade with X align set to 0, X pad set to 5, Expand set to No.

标签与旋转按钮和另一个标签一起位于水平框下方.

Label is located under horizontal box together with spin button and another label.

问题是 X pad 应用于左右两侧.

The problem is that X pad is applied to both, left and right side.

我希望它仅应用于右侧.

I want it to be applied only to right side.

我做错了什么?

推荐答案

Xpad 适用于左右.

格莱德 3.10

如果您只想在右侧留出边距,请更改 Common 选项卡中可用的 Margin on the right:

If you just want to have a margin on the right, then change Margin on the right available in the Common tab:

格莱德 3.8

右键单击 GtkLabel 小部件并选择 Add Parent->Alignment.单击 GtkAlignment 小部件并将 RightPadding 设置为所需的值.

Right click on the GtkLabel widget and select Add Parent->Alignment. Click in the GtkAlignment widget and set RightPadding to the desired value.

这篇关于GtkLabel 对齐和填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆