接着我们将看看如何修改标准窗口小部件所使用的图标。
Then we'll review how the ICONS used by the standard widgets can be modified.
遇到这种情况时,可以将定制控件封装到其自己的窗口小部件类中,根据需要继承其他标准窗口小部件,然后将invoke调用封装到该类的方法中。
When you face such a situation, wrap the custom control in its own widget class, inheriting other standard widgets when appropriate, and then wrap the invoke call in a method of this class.
注意,Tk::NoteBook以及CPAN上贡献的其他窗口小部件并不是标准 Tk 贡献的一部分,所以需要显式地指定。
Note that Tk::NoteBook, as well as the other contributed widgets on CPAN, are not part of the standard Tk distribution, and therefore need to be specified explicitly.
在图2中,Basic 1类是来自本文的类,而其他所有类都是标准的SWT窗口小部件。
In Figure 2, the Basic1 class is the class from this article; all the other classes are standard SWT widgets.
这个例子包括两个ProgressBar窗口小部件,它们连结到一个标准的Scale。
This example contains two ProgressBar widgets, coupled to a standard Scale.
这个例子包括两个ProgressBar窗口小部件,它们连结到一个标准的Scale。
This example contains two ProgressBar widgets, coupled to a standard Scale.
应用推荐