最常见的做法是使用按钮控件。
The most common way to do this is via the button control. There are several styles of buttons.
弹出按钮容器和按钮控件
演示如何创建一个简单的继承按钮控件。
在网页上充当按钮控件的类中实现此接口。
Implement this interface in classes that act like button controls on Web pages.
在指定边界内使用一个可选焦点矩形绘制指定状态的按钮控件。
Draws a button control in the specified state and bounds, and with an optional focus rectangle.
获取或设置按钮控件回发到服务器时所导致验证的控件组的名称。
Gets or sets the name for the group of controls for which the button control causes validation when it posts back to the server.
命令按钮需要有命令的名称并且可以在一张页面上建立多个按钮控件。
A command button has a command name and allows you to create multiple button controls on a page.
在指定的边界内、指定的图形表面上,绘制处于指定状态的按钮控件。
Draws a button control in the specified state, on the specified graphics surface, and within the specified bounds.
在指定边界内、指定的图形表面上,绘制处于指定状态的单选按钮控件。
Draws a radio button control in the specified state, on the specified graphics surface, and within the specified bounds.
在指定边界内使用指定文本和一个可选焦点矩形绘制指定状态的按钮控件。
Draws a button control in the specified state and bounds, with the specified text, and with an optional focus rectangle.
注意,现在当鼠标置于按钮控件上方时,将会显示添加到Help文本中的文字。
Notice now that when the mouse is over the button control, the text you added to the Help text is displayed.
在指定边界内使用指定文本、图像和一个可选焦点矩形绘制指定状态的按钮控件。
Draws a button control in the specified state and bounds, with the specified text and image, and with an optional focus rectangle.
在指定边界内使用指定文本、文本格式、图像和一个可选焦点矩形绘制指定状态的按钮控件。
Draws a button control in the specified state and bounds; with the specified text, text formatting, and image; and with an optional focus rectangle.
模拟用户在文本框和Combobox控件中键入颜色的操作之后,自动化会模拟点击按钮控件。
After simulating the actions of a user entering colors for the textbox and combobox controls, the automation simulates clicking of the button control.
请注意,测试自动化是通过直接调用按钮控件的相关方法模拟按钮单击的,而不是通过触发事件模拟。
Notice that the test automation simulates a button click by directly invoking the button control's associated method rather than by firing an event.
例如,常见的设计器错误是绘制矩形或某些其他静态元素来表示按钮,而不是向按钮控件应用样式。
For example, a common designer mistake is to draw a rectangle or some other static element to represent a button, instead of applying a style to a button control.
您已经掌握了基础技能,因此,让我们看看一个实际示例,结合一个push 按钮控件和一个更为复杂的宏。
You have mastered the basics, so let's look at a practical example that combines a push button control with a more complex macro.
您必须键入一些输入,单击按钮控件,直观验证结果消息,并将结果记录到Excel电子表格或其他数据存储中。
You'd have to enter some inputs, click the button control, visually verify the result message, and record the result into an Excel spreadsheet or other data store.
要修改按钮控件中的名字和鼠标置于其上方时显示的帮助提示,右键单击按钮控件,然后选择Control。
To change the name on the button control and the help tip displayed when the mouse is over it, right-click the button control and select control.
象下面要讲到的,在ASP.NET 2.0里,可以将数据提交到另一个页面,但是这个特性是通过一些按钮控件的新增功能得以实现的。
As you'll see later, in ASP.NET 2.0, Posting data to a different page is possible, but the implementation of the feature passes through some new capabilities of button controls.
按钮上的文字通常直接呈现在长方形的按钮控件上,有时五彩缤纷的可点击元素会将产品和购物车相联系起来,并有延伸品牌的功效。
These little, rectangular, sometimes colorful clickables connect the product to the shopping cart and are an extension of your branding.
我上面概述的这些类型的内容定制场景不仅对按钮控件有效,同样地对其他继承自ContentControl基类的其他控件也工作。
These types of content customization scenarios I outlined above work not just for Button controls, but likewise for all other controls that derive from the ContentControl base class.
XDIME也支持菜单列表、复选框和单选按钮等控件。
XDIME also supports controls like menu lists, checkboxes, and radio buttons.
这一技术同样应用到了控件上(如按钮),尽管实际上有一个三状态选择框看起来更有用些。
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.
SWT具有您期望从现代库中获得的所有控件,譬如输入域、列表和按钮。
SWT has all the controls you would expect from a modern library, such as entry fields, lists, and buttons.
除用户选择区之外,还有一个包含控件按钮和预览窗格的部分。
In addition to the user selection area, there is a section containing the control buttons and a preview pane.
最可靠的获取坐标的方法是使用控件自身的方法决定每个按钮的大小。
A much more reliable way to get the coordinates is to use the methods of the control itself to determine the size of each button.
您可以使用该对话框来观察如何使用find方法在对话框中定位按钮,以及为每个控件获得一个TestObject。
You can use this dialog to see how to use find to locate the buttons in the dialog and to get a TestObject for each control.
您可以使用该对话框来观察如何使用find方法在对话框中定位按钮,以及为每个控件获得一个TestObject。
You can use this dialog to see how to use find to locate the buttons in the dialog and to get a TestObject for each control.
应用推荐