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.
级联式下拉控件的工作方式如下。
实现示例控件的技术考虑事项。
Technical considerations for implementing the example controls.
级联式下拉控件的事件处理程序。
列表2:获取控件的所有属性。
列表5:获得控件的所有方法。
检索被验证的这个控件的值。
设置属性是一个改变控件的简便方法。
单击包含输入控件的表格的最后一行。
Click on the last row of the table which contains the input controls.
WRAP —— 从控件的右边换行。
查询实体、关联和与控件的数据绑定。
Query entities, association, and data binding with controls.
表单控件的格式和呈现由CSS控制。
Formatting and rendering of the individual controls on the form is handled with CSS.
地图导航控件的完整模板集。
事件处理程序是此控件的一个强大特性。
图4对这些关键控件的位置进行了批注。
Figure 4 is annotated with the locations of these key controls.
完成指定编辑控件的重写。
更新网格控件的属性值,如表格4所示。
Update the attribute values for the grid control as indicated in Table 4.
图5就是ListView控件的例子。
首先,它使获取控件的属性变得容易得多。
First, it makes getting the properties of the controls much easier.
这些类将成为以后创建的用户控件的代码。
These classes will become the code behind the user controls that you will create later.
BORDER——在控件的周围显示边界。
清单5.toggle控件的html。
有时候,控件的方法可以准确的满足您的需要。
我们现在完成了对SWTGUI控件的游历。
清单21展示了级联式下拉控件的两个值提供者。
Listing 21 shows the two value providers for the cascading drop-down controls.
这是通过快捷菜单控件的自定义设计器来实现的。
That is the effect of a custom designer for the ContextMenu control.
这是通过快捷菜单控件的自定义设计器来实现的。
That is the effect of a custom designer for the ContextMenu control.
应用推荐