显然,在这个例子中,按钮可以拥有默认状态、鼠标悬停(mouse - over)状态和被按下(pressed)状态。
Obviously, in this example, buttons can have a default state, a mouse-over state, and a pressed state.
为了实现这种效果,要创建两组图形;一组用于正常状态,一组用于当鼠标移动到按钮上时的活动状态。
To achieve this effect, two sets of graphics can be created; one for the normal state and one for the active state when the mouse is over the button.
例如,如果您想在鼠标位于按钮之上以及按钮被按下的时候改变按钮上的字体,那么可以使用状态值MOUSE_OVERandPRESSED。
For example, if you want to change fonts on a button when the mouse is over it and the button is pressed, you use a state value of MOUSE_OVER and pressed.
图1.WebModule按钮在鼠标移动到它上面时处于活动状态并且图形已经改变。
Figure 1. The Web Module button is active with the mouse over it and the graphic has been changed.
状态可以表示任何类型的设计时信息,如当前选择内容中的对象或者单击鼠标按钮时的行为。
State can represent any kind of design-time information, such as objects in the current selection or the behavior when the mouse button is clicked.
获取第一个鼠标扩展按钮的当前状态。
焦点:焦点状态时显示鼠标光标按钮越过了。
Focus: the focus state is displayed when the mouse cursor passes over the button.
钮控件,状态改变意味着当鼠标按键在控件之上按下时,按钮进入或保持按下的状态。
For a pushbutton control, a state change means that while the mouse button is down and directly over the control, the button will enter and remain in the pushed state.
用户单击并且保持鼠标左键于按下状态时,按钮是加亮的。
A button is highlighted when the user clicks and holds the left mouse button. The highlighting is removed when the user releases the mouse button.
用户单击并且保持鼠标左键于按下状态时,按钮是加亮的。
A button is highlighted when the user clicks and holds the left mouse button. The highlighting is removed when the user releases the mouse button.
应用推荐