source: salt-server/trunk/fuentes/py/vbconstants.py @ 473

Last change on this file since 473 was 473, checked in by daduve, 3 years ago

Adding files

  • Property svn:executable set to *
File size: 8.2 KB
Line 
1# -*- coding: latin-1 -*-
2
3"""VB Constants"""
4
5# Key Codes
6vbKeyLButton = 0x1 # Left mouse button
7vbKeyRButton = 0x2 # Right mouse button
8vbKeyCancel = 0x3 # CANCEL key
9vbKeyMButton = 0x4 # Middle mouse button
10vbKeyBack = 0x8 # BACKSPACE key
11vbKeyTab = 0x9 # TAB key
12vbKeyClear = 0xC # CLEAR key
13vbKeyReturn = 0xD # ENTER key
14vbKeyShift = 0x10 # SHIFT key
15vbKeyControl = 0x11 # CTRL key
16vbKeyMenu = 0x12 # MENU key
17vbKeyPause = 0x13 # PAUSE key
18vbKeyCapital = 0x14 # CAPS LOCK key
19vbKeyEscape = 0x1B # ESC key
20vbKeySpace = 0x20 # SPACEBAR key
21vbKeyPageUp = 0x21 # PAGE UP key
22vbKeyPageDown = 0x22 # PAGE DOWN key
23vbKeyEnd = 0x23 # END key
24vbKeyHome = 0x24 # HOME key
25vbKeyLeft = 0x25 # LEFT ARROW key
26vbKeyUp = 0x26 # UP ARROW key
27vbKeyRight = 0x27 # RIGHT ARROW key
28vbKeyDown = 0x28 # DOWN ARROW key
29vbKeySelect = 0x29 # SELECT key
30vbKeyPrint = 0x2A # PRINT SCREEN key
31vbKeyExecute = 0x2B # EXECUTE key
32vbKeySnapshot = 0x2C # SNAPSHOT key
33vbKeyInsert = 0x2D # INSERT key
34vbKeyDelete = 0x2E # DELETE key
35vbKeyHelp = 0x2F # HELP key
36vbKeyNumlock = 0x90 # NUM LOCK key
37
38
39# Form Codes
40vbModeless = 0 # UserForm is modeless.
41vbModal = 1 # UserForm is modal (default).
42
43
44# Colour Codes
45vbBlack = 0x0 # Black
46vbRed = 0xFF # Red
47vbGreen = 0xFF00 # Green
48vbYellow = 0xFFFF # Yellow
49vbBlue = 0xFF0000 # Blue
50vbMagenta = 0xFF00FF # Magenta
51vbCyan = 0xFFFF00 # Cyan
52vbWhite = 0xFFFFFF # White
53
54
55# Dir etc Codes
56vbNormal = 0 # Normal (default for Dir and SetAttr)
57vbReadOnly = 1 # Read-only
58vbHidden = 2 # Hidden
59vbSystem = 4 # System file
60vbVolume = 8 # Volume label
61vbDirectory = 16 # Directory or folder
62vbArchive = 32 # File has changed since last backup
63
64
65# File Attribute Codes
66Normal = 0 # Normal file. No attributes are set.
67ReadOnly = 1 # Read-only file. Attribute is read/write.
68Hidden = 2 # Hidden file. Attribute is read/write.
69System = 4 # System file. Attribute is read/write.
70Volume = 8 # Disk drive volume label. Attribute is read-only.
71Directory = 16 # Folder or directory. Attribute is read-only.
72Archive = 32 # File has changed since last backup. Attribute is read/write.
73Alias = 64 # Link or shortcut. Attribute is read-only.
74Compressed = 128 # Compressed file. Attribute is read-only.
75
76
77# Miscellaneous Codes
78vbCrLf = "\n" # Carriage returnlinefeed combination
79vbCr = chr(13) # Carriage return character
80vbLf = chr(10) # Linefeed character
81vbNewLine = "\n" # Platform-specific new line character; whichever is appropriate for current platform
82vbNullChar = chr(0) # Character having value 0
83vbNullString = chr(0) # String having value 0 Not the same as a zero-length string (""); used for calling external procedures
84vbObjectError = -2147221504 # User-defined error numbers should be greater than this value. For example: Err.Raise Number = vbObjectError + 1000
85vbTab = chr(9) # Tab character
86vbBack = chr(8) # Backspace character
87vbFormFeed = chr(12) # Not useful in Microsoft Windows
88vbVerticalTab = chr(11) # Not useful in Microsoft Windows
89
90
91# MsgBox Codes
92vbOKOnly = 0 # OK button only (default)
93vbOKCancel = 1 # OK and Cancel buttons
94vbAbortRetryIgnore = 2 # Abort, Retry, and Ignore buttons
95vbYesNoCancel = 3 # Yes, No, and Cancel buttons
96vbYesNo = 4 # Yes and No buttons
97vbRetryCancel = 5 # Retry and Cancel buttons
98vbCritical = 16 # Critical message
99vbQuestion = 32 # Warning query
100vbExclamation = 48 # Warning message
101vbInformation = 64 # Information message
102vbDefaultButton1 = 0 # First button is default (default)
103vbDefaultButton2 = 256 # Second button is default
104vbDefaultButton3 = 512 # Third button is default
105vbDefaultButton4 = 768 # Fourth button is default
106vbApplicationModal = 0 # Application modal message box (default)
107vbSystemModal = 4096 # System modal message box
108vbMsgBoxHelpButton = 16384 # Adds Help button to the message box
109VbMsgBoxSetForeground = 65536 # Specifies the message box window as the foreground window
110vbMsgBoxRight = 524288 # Text is right aligned
111vbMsgBoxRtlReading = 1048576 # Specifies text should appear as right-to-left reading on Hebrew and Arabic systems
112vbOK = 1 # OK button pressed
113vbCancel = 2 # Cancel button pressed
114vbAbort = 3 # Abort button pressed
115vbRetry = 4 # Retry button pressed
116vbIgnore = 5 # Ignore button pressed
117vbYes = 6 # Yes button pressed
118vbNo = 7 # No button pressed
119
120
121# Shell Codes
122vbHide = 0 # Window is hidden and focus is passed to the hidden window.
123vbNormalFocus = 1 # Window has focus and is restored to its original size and position.
124vbMinimizedFocus = 2 # Window is displayed as an icon with focus.
125vbMaximizedFocus = 3 # Window is maximized with focus.
126vbNormalNoFocus = 4 # Window is restored to its most recent size and position. The currently active window remains active.
127vbMinimizedNoFocus = 6 # Window is displayed as an icon. The currently active window remains active.
128
129
130# Special Folder Codes
131WindowsFolder = 0 # The Windows folder contains files installed by the Windows operating system.
132SystemFolder = 1 # The System folder contains libraries, fonts, and device drivers.
133TemporaryFolder = 2 # The Temp folder is used to store temporary files. Its path is found in the TMP environment variable.
134
135
136# StrConv Codes
137vbUpperCase = 1 # Converts the string to uppercase characters.
138vbLowerCase = 2 # Converts the string to lowercase characters.
139vbProperCase = 3 # Converts the first letter of every word in string to uppercase.
140vbWide = 4 # Converts narrow (single-byte) characters in string to wide (double-byte) characters. Applies to Far East locales.
141vbNarrow = 8 # Converts wide (double-byte) characters in string to narrow (single-byte) characters. Applies to Far East locales.
142vbKatakana = 16 # Converts Hiragana characters in string to Katakana characters. Applies to Japan only.
143vbHiragana = 32 # Converts Katakana characters in string to Hiragana characters. Applies to Japan only.
144vbUnicode = 64 # Converts the string to Unicode using the default code page of the system.
145vbFromUnicode = 128 # Converts the string from Unicode to the default code page of the system.
146
147
148# System Colour Codes
149vbScrollBars = 0x80000000 # Scroll bar color
150vbDesktop = 0x80000001 # Desktop color
151vbActiveTitleBar = 0x80000002 # Color of the title bar for the active window
152vbInactiveTitleBar = 0x80000003 # Color of the title bar for the inactive window
153vbMenuBar = 0x80000004 # Menu background color
154vbWindowBackground = 0x80000005 # Window background color
155vbWindowFrame = 0x80000006 # Window frame color
156vbMenuText = 0x80000007 # Color of text on menus
157vbWindowText = 0x80000008 # Color of text in windows
158vbTitleBarText = 0x80000009 # Color of text in caption, size box, and scroll arrow
159vbActiveBorder = 0x8000000A # Border color of active window
160vbInactiveBorder = 0x8000000B # Border color of inactive window
161vbApplicationWorkspace = 0x8000000C # Background color of multiple-document interface (MDI) applications
162vbHighlight = 0x8000000D # Background color of items selected in a control
163vbHighlightText = 0x8000000E # Text color of items selected in a control
164vbButtonFace = 0x8000000F # Color of shading on the face of command buttons
165vbButtonShadow = 0x80000010 # Color of shading on the edge of command buttons
166vbGrayText = 0x80000011 # Grayed (disabled) text
167vbButtonText = 0x80000012 # Text color on push buttons
168vbInactiveCaptionText = 0x80000013 # Color of text in an inactive caption
169vb3DHighlight = 0x80000014 # Highlight color for 3-D display elements
170vb3DDKShadow = 0x80000015 # Darkest shadow color for 3-D display elements
171vb3DLight = 0x80000016 # Second lightest 3-D color after vb3DHighlight
172vbInfoText = 0x80000017 # Color of text in ToolTips
173vbInfoBackground = 0x80000018 # Background color of ToolTips
174
175
176# Var Type Codes
177vbEmpty = 0 # Uninitialized (default)
178vbNull = 1 # Contains no valid data
179vbInteger = 2 # Integer
180vbLong = 3 # Long integer
181vbSingle = 4 # Single-precision floating-point number
182vbDouble = 5 # Double-precision floating-point number
183vbCurrency = 6 # Currency
184vbDate = 7 # Date
185vbString = 8 # String
186vbObject = 9 # Object
187vbError = 10 # Error
188vbBoolean = 11 # Boolean
189vbVariant = 12 # Variant (used only for arrays of variants)
190vbDataObject = 13 # Data access object
191vbDecimal = 14 # Decimal
192vbByte = 17 # Byte
193vbUserDefinedType = 36 # Variants that contain user-defined types
194vbArray = 8192 # Array
195
196
Note: See TracBrowser for help on using the repository browser.