在第2部分中,您创建了视图部件及其对象(如按钮、文本框和表示视图)。
In part 2, you created the view parts and its objects (such as button, text box, and table view).
这一技术同样应用到了控件上(如按钮),尽管实际上有一个三状态选择框看起来更有用些。
The same also applies to controls (such as Buttons), although practically the ability to have a three-state checkbox is likely to be more directly useful.
但是在那些状态会改变的组件中(例如按钮),可以为每种状态定义完全不同的外观。
But in a component whose state will change — a button, for example — you can define a completely different look for every state.
应用推荐