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!