初始化显示和shell后,可以添加任意数目的现有对象,如菜单栏、表、按钮、网格等。
After you have the display and shell initialized, you can add any number of existing objects such as menu bars, tables, buttons, grids, and so on.
该组件通过可配置组合框为用户提供一个按钮,和Checker一样,它支持数目不等的动作和属性。
This component presents a button to the user with a configurable combo box and, like the Checker, supports a variable number of actions and properties.
要演示这部分代码,让我们从一个观察按钮点击和记录点击数目的类开始。
To demonstrate this code, let's start with a class for observing button clicks that simply counts the number of clicks.
应用推荐