GNOME拥有一组新的用于文本控件的特性。
让我们更详细的说一下控件的实现。
图3显示添加了新控件的扇形图。
Figure 3 shows the pie chart with the new controls added to it.
这个调用使您能够设置控件的大小。
That call gives you a chance to set the size of your control.
图3所示树控件的源代码见清单4。
The source code for the tree controls shown in Figure 3 appears in Listing 4.
创建单一列——多控件的数据表格。
列表2:获取控件的所有属性。
列表5:获得控件的所有方法。
您还可以改变控件的背景颜色。
检索被验证的这个控件的值。
设置属性是一个改变控件的简便方法。
单击包含输入控件的表格的最后一行。
Click on the last row of the table which contains the input controls.
所有使用老控件的测试都将中断。
All of the tests that use the old controls will now be broken.
WRAP —— 从控件的右边换行。
事件处理程序是此控件的一个强大特性。
但是如果你想改变自定义控件的属性?
But what if you want to change the property of a custom control?
更新网格控件的属性值,如表格4所示。
Update the attribute values for the grid control as indicated in Table 4.
本文中开发的控件的主要设计目标如下。
The primary design goals of the controls developed in this article are.
图5就是ListView控件的例子。
首先,它使获取控件的属性变得容易得多。
First, it makes getting the properties of the controls much easier.
BORDER——在控件的周围显示边界。
这只是网格列表控件的整个实现的一部分。
This is part of the whole implementation for the grid list control.
有一个对话框类,它可以容纳控件的集合。
There's a Dialog class that can hold a collection of controls.
控件的数据绑定与create页面一样。
The data bindings for the controls are the same as on the create page.
设置了控件的标题或文本属性(如果有)的值。
Sets the value of the control's Caption or Text property (if any).
这是通过快捷菜单控件的自定义设计器来实现的。
That is the effect of a custom designer for the ContextMenu control.
通过这种方式用户可以清楚的看到控件的输出效果。
In this way, the user has a clearer idea of the control output.
通用的数据访问,简化及加快数据驱动控件的开发。
Universal data access for simple and fast data-driven widget development.
通用的数据访问,简化及加快数据驱动控件的开发。
Universal data access for simple and fast data-driven widget development.
应用推荐