📄 constant.txt
字号:
Global Const DATA_INCONSISTENT = &H10
Global Const DATA_CONSISTENT = &H20
Global Const DATA_SQLPASSTHROUGH = &H40
'Validate event Action arguments
Global Const DATA_ACTIONCANCEL = 0
Global Const DATA_ACTIONMOVEFIRST = 1
Global Const DATA_ACTIONMOVEPREVIOUS = 2
Global Const DATA_ACTIONMOVENEXT = 3
Global Const DATA_ACTIONMOVELAST = 4
Global Const DATA_ACTIONADDNEW = 5
Global Const DATA_ACTIONUPDATE = 6
Global Const DATA_ACTIONDELETE = 7
Global Const DATA_ACTIONFIND = 8
Global Const DATA_ACTIONBOOKMARK = 9
Global Const DATA_ACTIONCLOSE = 10
Global Const DATA_ACTIONUNLOAD = 11
'OLE Client Control
'Actions
Global Const OLE_CREATE_EMBED = 0
Global Const OLE_CREATE_NEW = 0 'from ole1 control
Global Const OLE_CREATE_LINK = 1
Global Const OLE_CREATE_FROM_FILE = 1 'from ole1 control
Global Const OLE_COPY = 4
Global Const OLE_PASTE = 5
Global Const OLE_UPDATE = 6
Global Const OLE_ACTIVATE = 7
Global Const OLE_CLOSE = 9
Global Const OLE_DELETE = 10
Global Const OLE_SAVE_TO_FILE = 11
Global Const OLE_READ_FROM_FILE = 12
Global Const OLE_INSERT_OBJ_DLG = 14
Global Const OLE_PASTE_SPECIAL_DLG = 15
Global Const OLE_FETCH_VERBS = 17
Global Const OLE_SAVE_TO_OLE1FILE = 18
'OLEType
Global Const OLE_LINKED = 0
Global Const OLE_EMBEDDED = 1
Global Const OLE_NONE = 3
'OLETypeAllowed
Global Const OLE_EITHER = 2
'UpdateOptions
Global Const OLE_AUTOMATIC = 0
Global Const OLE_FROZEN = 1
Global Const OLE_MANUAL = 2
'AutoActivate modes
'Note that OLE_ACTIVATE_GETFOCUS only applies to objects that
'support "inside-out" activation. See related Verb notes below.
Global Const OLE_ACTIVATE_MANUAL = 0
Global Const OLE_ACTIVATE_GETFOCUS = 1
Global Const OLE_ACTIVATE_DOUBLECLICK = 2
'SizeModes
Global Const OLE_SIZE_CLIP = 0
Global Const OLE_SIZE_STRETCH = 1
Global Const OLE_SIZE_AUTOSIZE = 2
'DisplayTypes
Global Const OLE_DISPLAY_CONTENT = 0
Global Const OLE_DISPLAY_ICON = 1
'Update Event Constants
Global Const OLE_CHANGED = 0
Global Const OLE_SAVED = 1
Global Const OLE_CLOSED = 2
Global Const OLE_RENAMED = 3
'Special Verb Values
Global Const VERB_PRIMARY = 0
Global Const VERB_SHOW = -1
Global Const VERB_OPEN = -2
Global Const VERB_HIDE = -3
Global Const VERB_INPLACEUIACTIVATE = -4
Global Const VERB_INPLACEACTIVATE = -5
'The last two verbs are for objects that support "inside-out" activation,
'meaning they can be edited in-place, and that they support being left
'in-place-active even when the input focus moves to another control or form.
'These objects actually have 2 levels of being active. "InPlace Active"
'means that the object is ready for the user to click inside it and start
'working with it. "In-Place UI-Active" means that, in addition, if the object
'has any other UI associated with it, such as floating palette windows,
'that those windows are visible and ready for use. Any number of objects
'can be "In-Place Active" at a time, although only one can be
'"InPlace UI-Active".
'You can cause an object to move to either one of states programmatically by
'setting the Verb property to the appropriate verb and setting
'Action=OLE_ACTIVATE.
'Also, if you set AutoActivate = OLE_ACTIVATE_GETFOCUS, the server will
'automatically be put into "InPlace UI-Active" state when the user clicks
'on or tabs into the control.
'VerbFlag Bit Masks
Global Const VERBFLAG_GRAYED = &H1
Global Const VERBFLAG_DISABLED = &H2
Global Const VERBFLAG_CHECKED = &H8
Global Const VERBFLAG_SEPARATOR = &H800
'MiscFlag Bits - Or these together as desired for special behaviors
'MEMSTORAGE causes the control to use memory to store the object while
' it is loaded. This is faster than the default (disk-tempfile),
' but can consume a lot of memory for objects whose data takes
' up a lot of space, such as the bitmap for a paint program.
Global Const OLE_MISCFLAG_MEMSTORAGE = &H1
'DISABLEINPLACE overrides the control's default behavior of allowing
' in-place activation for objects that support it. If you
' are having problems activating an object inplace, you can
' force it to always activate in a separate window by setting this
' bit
Global Const OLE_MISCFLAG_DISABLEINPLACE = &H2
'Common Dialog Control
'Action Property
Global Const DLG_FILE_OPEN = 1
Global Const DLG_FILE_SAVE = 2
Global Const DLG_COLOR = 3
Global Const DLG_FONT = 4
Global Const DLG_PRINT = 5
Global Const DLG_HELP = 6
'File Open/Save Dialog Flags
Global Const OFN_READONLY = &H1&
Global Const OFN_OVERWRITEPROMPT = &H2&
Global Const OFN_HIDEREADONLY = &H4&
Global Const OFN_NOCHANGEDIR = &H8&
Global Const OFN_SHOWHELP = &H10&
Global Const OFN_NOVALIDATE = &H100&
Global Const OFN_ALLOWMULTISELECT = &H200&
Global Const OFN_EXTENSIONDIFFERENT = &H400&
Global Const OFN_PATHMUSTEXIST = &H800&
Global Const OFN_FILEMUSTEXIST = &H1000&
Global Const OFN_CREATEPROMPT = &H2000&
Global Const OFN_SHAREAWARE = &H4000&
Global Const OFN_NOREADONLYRETURN = &H8000&
'Color Dialog Flags
Global Const CC_RGBINIT = &H1&
Global Const CC_FULLOPEN = &H2&
Global Const CC_PREVENTFULLOPEN = &H4&
Global Const CC_SHOWHELP = &H8&
'Fonts Dialog Flags
Global Const CF_SCREENFONTS = &H1&
Global Const CF_PRINTERFONTS = &H2&
Global Const CF_BOTH = &H3&
Global Const CF_SHOWHELP = &H4&
Global Const CF_INITTOLOGFONTSTRUCT = &H40&
Global Const CF_USESTYLE = &H80&
Global Const CF_EFFECTS = &H100&
Global Const CF_APPLY = &H200&
Global Const CF_ANSIONLY = &H400&
Global Const CF_NOVECTORFONTS = &H800&
Global Const CF_NOSIMULATIONS = &H1000&
Global Const CF_LIMITSIZE = &H2000&
Global Const CF_FIXEDPITCHONLY = &H4000&
Global Const CF_WYSIWYG = &H8000& 'must also have CF_SCREENFONTS & CF_PRINTERFONTS
Global Const CF_FORCEFONTEXIST = &H10000
Global Const CF_SCALABLEONLY = &H20000
Global Const CF_TTONLY = &H40000
Global Const CF_NOFACESEL = &H80000
Global Const CF_NOSTYLESEL = &H100000
Global Const CF_NOSIZESEL = &H200000
'Printer Dialog Flags
Global Const PD_ALLPAGES = &H0&
Global Const PD_SELECTION = &H1&
Global Const PD_PAGENUMS = &H2&
Global Const PD_NOSELECTION = &H4&
Global Const PD_NOPAGENUMS = &H8&
Global Const PD_COLLATE = &H10&
Global Const PD_PRINTTOFILE = &H20&
Global Const PD_PRINTSETUP = &H40&
Global Const PD_NOWARNING = &H80&
Global Const PD_RETURNDC = &H100&
Global Const PD_RETURNIC = &H200&
Global Const PD_RETURNDEFAULT = &H400&
Global Const PD_SHOWHELP = &H800&
Global Const PD_USEDEVMODECOPIES = &H40000
Global Const PD_DISABLEPRINTTOFILE = &H80000
Global Const PD_HIDEPRINTTOFILE = &H100000
'Help Constants
Global Const HELP_CONTEXT = &H1 'Display topic in ulTopic
Global Const HELP_QUIT = &H2 'Terminate help
Global Const HELP_INDEX = &H3 'Display index
Global Const HELP_CONTENTS = &H3
Global Const HELP_HELPONHELP = &H4 'Display help on using help
Global Const HELP_SETINDEX = &H5 'Set the current Index for multi index help
Global Const HELP_SETCONTENTS = &H5
Global Const HELP_CONTEXTPOPUP = &H8
Global Const HELP_FORCEFILE = &H9
Global Const HELP_KEY = &H101 'Display topic for keyword in offabData
Global Const HELP_COMMAND = &H102
Global Const HELP_PARTIALKEY = &H105 'call the search engine in winhelp
'Error Constants
Global Const CDERR_DIALOGFAILURE = -32768
Global Const CDERR_GENERALCODES = &H7FFF
Global Const CDERR_STRUCTSIZE = &H7FFE
Global Const CDERR_INITIALIZATION = &H7FFD
Global Const CDERR_NOTEMPLATE = &H7FFC
Global Const CDERR_NOHINSTANCE = &H7FFB
Global Const CDERR_LOADSTRFAILURE = &H7FFA
Global Const CDERR_FINDRESFAILURE = &H7FF9
Global Const CDERR_LOADRESFAILURE = &H7FF8
Global Const CDERR_LOCKRESFAILURE = &H7FF7
Global Const CDERR_MEMALLOCFAILURE = &H7FF6
Global Const CDERR_MEMLOCKFAILURE = &H7FF5
Global Const CDERR_NOHOOK = &H7FF4
'Added for CMDIALOG.VBX
Global Const CDERR_CANCEL = &H7FF3
Global Const CDERR_NODLL = &H7FF2
Global Const CDERR_ERRPROC = &H7FF1
Global Const CDERR_ALLOC = &H7FF0
Global Const CDERR_HELP = &H7FEF
Global Const PDERR_PRINTERCODES = &H6FFF
Global Const PDERR_SETUPFAILURE = &H6FFE
Global Const PDERR_PARSEFAILURE = &H6FFD
Global Const PDERR_RETDEFFAILURE = &H6FFC
Global Const PDERR_LOADDRVFAILURE = &H6FFB
Global Const PDERR_GETDEVMODEFAIL = &H6FFA
Global Const PDERR_INITFAILURE = &H6FF9
Global Const PDERR_NODEVICES = &H6FF8
Global Const PDERR_NODEFAULTPRN = &H6FF7
Global Const PDERR_DNDMMISMATCH = &H6FF6
Global Const PDERR_CREATEICFAILURE = &H6FF5
Global Const PDERR_PRINTERNOTFOUND = &H6FF4
Global Const CFERR_CHOOSEFONTCODES = &H5FFF
Global Const CFERR_NOFONTS = &H5FFE
Global Const FNERR_FILENAMECODES = &H4FFF
Global Const FNERR_SUBCLASSFAILURE = &H4FFE
Global Const FNERR_INVALIDFILENAME = &H4FFD
Global Const FNERR_BUFFERTOOSMALL = &H4FFC
Global Const FRERR_FINDREPLACECODES = &H3FFF
Global Const CCERR_CHOOSECOLORCODES = &H2FFF
'---------------------------------------------------------
' Table of Contents for Visual Basic Professional
'
' 1. 3-D Controls
' (Frame/Panel/Option/Check/Command/Group Push)
' 2. Animated Button
' 3. Gauge Control
' 4. Graph Control Section
' 5. Key Status Control
' 6. Spin Button
' 7. MCI Control (Multimedia)
' 8. Masked Edit Control
' 9. Comm Control
' 10. Outline Control
'---------------------------------------------------------
'-------------------------------------------------------------------
'3D Controls
'-------------------------------------------------------------------
'Alignment (Check Box)
Global Const SSCB_TEXT_RIGHT = 0 '0 - Text to the right
Global Const SSCB_TEXT_LEFT = 1 '1 - Text to the left
'Alignment (Option Button)
Global Const SSOB_TEXT_RIGHT = 0 '0 - Text to the right
Global Const SSOB_TEXT_LEFT = 1 '1 - Text to the left
'Alignment (Frame)
Global Const SSFR_LEFT_JUSTIFY = 0 '0 - Left justify text
Global Const SSFR_RIGHT_JUSTIFY = 1 '1 - Right justify text
Global Const SSFR_CENTER = 2 '2 - Center text
'Alignment (Panel)
Global Const SSPN_LEFT_TOP = 0 '0 - Text to left and top
Global Const SSPN_LEFT_MIDDLE = 1 '1 - Text to left and middle
Global Const SSPN_LEFT_BOTTOM = 2 '2 - Text to left and bottom
Global Const SSPN_RIGHT_TOP = 3 '3 - Text to right and top
Global Const SSPN_RIGHT_MIDDLE = 4 '4 - Text to right and middle
Global Const SSPN_RIGHT_BOTTOM = 5 '5 - Text to right and bottom
Global Const SSPN_CENTER_TOP = 6 '6 - Text to center and top
Global Const SSPN_CENTER_MIDDLE = 7 '7 - Text to center and middle
Global Const SSPN_CENTER_BOTTOM = 8 '8 - Text to center and bottom
'Autosize (Command Button)
Global Const SS_AUTOSIZE_NONE = 0 '0 - No Autosizing
Global Const SSPB_AUTOSIZE_PICTOBUT = 1 '0 - Autosize Picture to Button
Global Const SSPB_AUTOSIZE_BUTTOPIC = 2 '0 - Autosize Button to Picture
'Autosize (Ribbon Button)
'Global Const SS_AUTOSIZE_NONE = 0 '0 - No Autosizing
Global Const SSRI_AUTOSIZE_PICTOBUT = 1 '0 - Autosize Picture to Button
Global Const SSRI_AUTOSIZE_BUTTOPIC = 2 '0 - Autosize Button to Picture
'Autosize (Panel)
'Global Const SS_AUTOSIZE_NONE = 0 '0 - No Autosizing
Global Const SSPN_AUTOSIZE_WIDTH = 1 '1 - Autosize Panel width to Caption
Global Const SSPN_AUTOSIZE_HEIGHT = 2 '2 - Autosize Panel height to Caption
Global Const SSPN_AUTOSIZE_CHILD = 3 '3 - Autosize Child to Panel
'BevelInner (Panel)
Global Const SS_BEVELINNER_NONE = 0 '0 - No Inner Bevel
Global Const SS_BEVELINNER_INSET = 1 '1 - Inset Inner Bevel
Global Const SS_BEVELINNER_RAISED = 2 '2 - Raised Inner Bevel
'BevelOuter (Panel)
Global Const SS_BEVELOUTER_NONE = 0 '0 - No Outer Bevel
Global Const SS_BEVELOUTER_INSET = 1 '1 - Inset Outer Bevel
Global Const SS_BEVELOUTER_RAISED = 2 '2 - Raised Outer Bevel
'FloodType (Panel)
Global Const SS_FLOODTYPE_NONE = 0 '0 - No flood
Global Const SS_FLOODTYPE_L_TO_R = 1 '1 - Left to light
Global Const SS_FLOODTYPE_R_TO_L = 2 '2 - Right to left
Global Const SS_FLOODTYPE_T_TO_B = 3 '3 - Top to bottom
Global Const SS_FLOODTYPE_B_TO_T = 4 '4 - Bottom to top
Global Const SS_FLOODTYPE_CIRCLE = 5 '5 - Widening circle
'Font3D (Panel, Command Button, Option Button, Check Box, Frame)
Global Const SS_FONT3D_NONE = 0 '0 - No 3-D text
Global Const SS_FONT3D_RAISED_LIGHT = 1 '1 - Raised with light shading
Global Const SS_FONT3D_RAISED_HEAVY = 2 '2 - Raised with heavy shading
Global Const SS_FONT3D_INSET_LIGHT = 3 '3 - Inset with light shading
Global Const SS_FONT3D_INSET_HEAVY = 4 '4 - Inset with heavy shading
'PictureDnChange (Ribbon Button)
Global Const SS_PICDN_NOCHANGE = 0 '0 - Use 'Up'bitmap with no change
Global Const SS_PICDN_DITHER = 1 '1 - Dither 'Up'bitmap
Global Const SS_PICDN_INVERT = 2 '2 - Invert 'Up'bitmap
'ShadowColor (Panel, Frame)
Global Const SS_SHADOW_DARKGREY = 0 '0 - Dark grey shadow
Global Const SS_SHADOW_BLACK = 1 '1 - Black shadow
'ShadowStyle (Frame)
Global Const SS_SHADOW_INSET = 0 '0 - Shadow inset
Global Const SS_SHADOW_RAISED = 1 '1 - Shadow raised
'---------------------------------------
'Animated Button
'---------------------------------------
'Cycle property
Global Const ANI_ANIMATED = 0
Global Const ANI_MULTISTATE = 1
Global Const ANI_TWO_STATE = 2
'Click Filter property
Global Const ANI_ANYWHERE = 0
Global Const ANI_IMAGE_AND_TEXT = 1
Global Const ANI_IMAGE = 2
Global Const ANI_TEXT = 3
'PicDrawMode Property
Global Const ANI_XPOS_YPOS = 0
Global Const ANI_AUTOSIZE = 1
Global Const ANI_STRETCH = 2
'SpecialOp Property
Global Const ANI_CLICK = 1
'TextPosition Property
Global Const ANI_CENTER = 0
Global Const ANI_LEFT = 1
Global Const ANI_RIGHT = 2
Global Const ANI_BOTTON = 3
Global Const ANI_TOP = 4
'---------------------------------------
'GAUGE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -