关闭设计模式时,单击按钮控件。
最常见的做法是使用按钮控件。
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.
这个区域按钮ocx不是一个矩形的按钮控件。
单击按钮控件后,将会显示一个消息,如图12所示。
When the button control is clicked, a message displays as shown in figure 12.
在指定边界内使用一个可选焦点矩形绘制指定状态的按钮控件。
Draws a button control in the specified state and bounds, and with an optional focus rectangle.
命令按钮需要有命令的名称并且可以在一张页面上建立多个按钮控件。
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.
在本过程中,您在设计时在自定义按钮控件上显示文本,而不在运行时显示文本。
In this procedure you display text on a custom button control at design time, but not at run time.
在指定边界内使用指定文本、文本格式、图像和一个可选焦点矩形绘制指定状态的按钮控件。
Draws a button control in the specified state and bounds; with the specified text, text formatting, and image; and with an optional focus rectangle.
现在只需要对按钮控件进行定位或者修改尺寸(按照您的意愿),然后关闭设计模式以测试控件。
All that is left to do now is to position or size the button control as you want and then turn off design mode to test the control.
模拟用户在文本框和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.
这些按钮并不是标准控件。
这些按钮并不是标准控件。
应用推荐