Gambas文档
主题
代码片段
名词解释
如何操作
应用程序仓库
废弃的组件
开发环境文档
开发者文档
'gb.qt' 的实现细节
Button
ComboBox
Label & TextLabel
ListBox
TextBox
Window & Form
Gambas编程接口
Gambas附加组件
如何用 C/C++ 开发组件
如何用Gambas开发组件
教程
文档
最新修改
组件
维基手册
维基搜索
维基许可协议
编译和安装
语言概览
语言索引
说明
错误消息
ar
ca
cs
de
en
eo
es
fa
fr
hu
id
it
ja
ko
mk
nl
pl
pt
pt_BR
ru
sq
tr
vi
zh
zh_TW
Label & TextLabel
TextLabel
understands a subset of HTML, not
Label
.
Label
interprets a '&' as a shortcut indicator. I think the GTK+ equivalent is '_'.
By default,
Label
is vertically centered and horizontally left aligned (or right aligned for rtl languages).
By default,
TextLabel
is top left aligned (or top right for rtl languages).
TextLabel
inserts automatically a line break at words boundary.
Label
does not.
If
Label
.AutoResize is set, the
Label
width & height automatically fit its contents. But if the
Label
is vertically centered, then only the width is adjusted, not the height. Not very coherent, but practical. To be more coherent, only the height should be adjusted if the
Label
is horizontally centered.
If
TextLabel
.AutoResize is set, the height is adjusted according to the width, so that all text is displayed.
Be careful with the border size with the previous requirements!