For faster navigation, this Iframe is preloading the Wikiwand page for 按钮 (用户界面).

按钮 (用户界面)

此条目没有列出任何参考或来源。 (2022年9月15日)维基百科所有的内容都应该可供查证。请协助补充可靠来源改善这篇条目。无法查证的内容可能会因为异议提出而被移除。
维基百科中一个常见的按钮例子,用于查找条目(它由一个文本控件,两个按钮组成)

按钮命令按钮,英语:Command Button),是程序或网页常用的一个控件。在程序中,按钮是最常用的用于触发事件的控件,也可以开始,中断,结束一个进程。

按钮接受最常用的事件为单击事件(Click),按钮的状态为两种,即:原状态和按下状态。当滑鼠单击按钮时,按钮处于按下状态。

程式设计

Visual Basic

VB中,命令按钮控件属于标准控件,CommandButton类,前缀Cmd。

  • 属性:Caption、Enabled、Visible
  • 方法:Move
  • 事件:Click

VB.net中,命令按钮也属于标准控件,名字Button

Win API

API中,命令按钮控件属于ThunderCommandButton。

  • SendMessage函数


{{bottomLinkPreText}} {{bottomLinkText}}
按钮 (用户界面)
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?