If you add the menu as a child of the label itself, then the menu might not show up at all because the label will measure the text that it holds and create a dimension that fits the text only.
如果您将菜单添加为标签的子元素,那么菜单根本就不会显示,因为标签将仅度量它所包含的文本,然后创建一个符合文本的大小。
Listing 1 shows how to create a simple text label.
清单1展示了如何创建一个简单的文本标签。
In the next row, enter the field label Topic, and then create a text field called Chat_Topic.
在下面一行中输入字段标题Topic,然后创建一个文本字段Chat _ Topic。
This code shows how to create scrolling text and other special effects using label controls.
这个代码显示了如何使用标签控件来创建滚动文本和其它的特别效果。
You can create any size label with text, shapes and images.
你可以制作任何尺寸的带有文本,图形和图像的标签。
Most commonly, a static text item is used to create an informative label in a panel.
大多数情况下,静态文字项目是用来在面板中建立资讯标签。
Most commonly, a static text item is used to create an informative label in a panel.
大多数情况下,静态文字项目是用来在面板中建立资讯标签。
应用推荐