Standard Windows Identifiers In wxWidgets

wxWidgets supplies the standard identifiers listed in Table 3-1. Use the standard identifiers wherever possible: some systems can use the information to provide standard graphics (such as the OK and Cancel buttons on GTK+) or default behavior (such as responding to the Escape key by emulating a wxID_CANCEL event). On Mac OS X, wxID_ABOUT, wxID_PREFERENCES and wxID_EXIT menu items are interpreted specially and transferred to the application menu. Some wxWidgets components, such as wxTextCtrl, know how to handle menu items or buttons with identifiers such as wxID_COPY, wxID_PASTE, wxID_UNDO.

Table 3-1. Standard Window Identifiers

Identifier Name

Description

wxID_ANY

This may be passed to a window constructor as an identifier, and wxWidgets will generate an appropriate identifier

wxID_LOWEST

The lowest standard identifier value (4999)

wxID_HIGHEST

The highest standard identifier value (5999)

wxID_OPEN

File open

wxID_CLOSE

Window close

wxID_NEW

New window, file or document

wxID_SAVE

File save

wxID_SAVEAS

File save as (prompts for a save dialog)

wxID_REVERT

Revert (revert to file on disk)

wxID_EXIT

Exit application

wxID_UNDO

Undo the last operation

wxID_REDO

Redo the last undo

wxID_HELP

General help (for example, for dialog Help buttons)

wxID_PRINT

Print

wxID_PRINT_SETUP

Print setup dialog

wxID_PREVIEW

Print preview

wxID_ABOUT

Show a dialog describing the application

wxID_HELP_CONTENTS

Show the help contents

wxID_HELP_COMMANDS

Show the application commands

wxID_HELP_PROCEDURES

Show the application procedures

wxID_HELP_CONTEXT

Unused

wxID_CUT

Cut

wxID_COPY

Copy

wxID_PASTE

Paste

wxID_CLEAR

Clear

wxID_FIND

Find

wxID_DUPLICATE

Duplicate

wxID_SELECTALL

Select all

wxID_DELETE

Delete (cut without copying)

wxID_REPLACE

Replace

wxID_REPLACE_ALL

Replace all

wxID_PROPERTIES

Show properties for the selection

wxID_VIEW_DETAILS

View details in a list control

wxID_VIEW_LARGEICONS

View as large icons in a list control

wxID_VIEW_SMALLICONS

View as small icons in a list control

wxID_VIEW_LIST

View as a list in a list control

wxID_VIEW_SORTDATE

Sort by date

wxID_VIEW_SORTNAME

Sort by name

wxID_VIEW_SORTSIZE

Sort by size

wxID_VIEW_SORTTYPE

Sort by type

wxID_FILE1 to wxID_FILE9

View recent file

wxID_OK

Confirms dialog selections

wxID_CANCEL

Vetoes dialog selections

wxID_APPLY

Applies selections to data

wxID_YES

Identifier for a Yes button

wxID_NO

Identifier for a No button

wxID_STATIC

Identifier for static text or bitmap control

wxID_FORWARD

Navigate forward

wxID_BACKWARD

Navigate backward

wxID_DEFAULT

Restore default settings

wxID_MORE

View more settings

wxID_SETUP

View a setup dialog

wxID_RESET

Reset settings

wxID_CONTEXT_HELP

Show context-sensitive help

wxID_YESTOALL

Reply yes to all prompts

wxID_NOTOALL

Reply no to all prompts

wxID_ABORT

Abort the current operation

wxID_RETRY

Retry the operation

wxID_IGNORE

Ignore an error condition

wxID_UP

Navigate up

wxID_DOWN

Navigate down

wxID_HOME

Navigate home

wxID_REFRESH

Refresh

wxID_STOP

Stop the current operation

wxID_INDEX

Show an index

wxID_BOLD

Highlight in bold

wxID_ITALIC

Highlight in italic

wxID_JUSTIFY_CENTER

Center

wxID_JUSTIFY_FILL

Format

wxID_JUSTIFY_RIGHT

Right align

wxID_JUSTIFY_LEFT

Left align

wxID_UNDERLINE

Underline

wxID_INDENT

Indent

wxID_UNINDENT

Unindent

wxID_ZOOM_100

Zoom to 100%

wxID_ZOOM_FIT

Fit to page

wxID_ZOOM_IN

Zoom in

wxID_ZOOM_OUT

Zoom out

wxID_UNDELETE

Undelete

wxID_REVERT_TO_SAVED

Revert to saved state

 

You can use wxID_HIGHEST to determine the number above which it is safe to define your own identifiers, or you can use identifiers below wxID_LOWEST.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: "标识符的存在"指的是在计算机程序中为了唯一标识某个变量、函数、类、对象等等而定义的名称。标识符可以是一个单词、一个字母、一个数字或者是一段字符组合。在程序中,标识符的存在是非常重要和必要的,每个标识符都有它的作用和意义,方便程序员进行程序设计和开发。 ### 回答2: 标识符是一种特殊的符号,用于将特定的实体与其他实体区分开来。在计算机科学中,标识符是用于识别变量、常量、函数、类、对象和其他编程元素的名称或标签。标识符在整个编程过程中起着至关重要的作用,并且是编程语言中不可或缺的组成部分。 标识符的存在使得程序员可以轻松地创建和组织程序,并且可以避免命名冲突。这些标识符还使得程序员能够轻松地理解和维护他们所编写的代码。因此,标识符是创建可读性强,易于维护和适应性强的代码的关键。 在编程中,每个标识符都有其独特的属性和属性。例如,所有标识符都必须符合特定的命名规则,以确保它们被正确地识别和使用。此外,标识符还必须具有唯一性,以避免产生命名冲突和混淆。 总之,标识符是编程语言中的一个重要组成部分,其中包含变量、对象、函数和常量的名称或标记。存在标识符使程序员能够轻松组织和维护他们的代码,并且可以避免命名冲突和混淆。标识符对于创建可读性强,易于维护和适应性强的代码是至关重要的。 ### 回答3: 标识符的存在是现代社会中极其重要的。标识符可以是人、事物、组织或进程的特定名称或符号,用于对其进行唯一的区分。标识符对于人们进行各种社会交易和交流都非常重要。 例如,在商业活动中,标识符用于区分企业和其产品,以便消费者能够轻松地找到他们想要的商品或服务。在金融领域,标识符可以帮助人们跟踪账务信息和资产流动,确保交易的准确性和透明度。在医疗保健领域中,标识符可以帮助医生和其他医疗专业人员快速找到患者的病历和其他相关信息,以便更好地了解病情和提供更好的治疗。 此外,标识符也在政府和公民服务中扮演着至关重要的角色。例如,身份证号码和社会保险号码都是用于唯一地识别和区分个人的标识符。政府机构和服务提供商可以使用这些标识符来进行个人身份验证和记录管理。 总之,标识符的存在对现代社会中的各种交易、交流、服务和管理都是必不可少的。在数字化时代,标识符也是网络和信息技术领域中的关键要素,用于确保数据的准确性、安全性和隐私性。因此,对标识符的正确使用和管理至关重要,以避免潜在的错误和滥用。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值