To support both of these together, use the CLabel control as shown in Listing 2.
为了支持同时拥有文本和图标,可以使用CLabel控件,如清单2中所示。
To avoid name collision, the custom control names starts with "c" (CLabel vs. Label).
为了避免命名冲突,定制控件的名称都是以“C”开始的(例如,比较CLabel与Label)。
Our shell consists of 3 sections, an image at the top left (which is a normal CLabel).
我们的shell由3个部分组成,图片在左上角(一个普通的CLabel)。
Then a label that contains the header text (also a CLabel), and finally a label which represents our message (a normal label).
然后一个包含标题文字的标签(也是CLabel),最后一个标签显示我们的信息(一个普通的Label)。
Then a label that contains the header text (also a CLabel), and finally a label which represents our message (a normal label).
然后一个包含标题文字的标签(也是CLabel),最后一个标签显示我们的信息(一个普通的Label)。
应用推荐