RichTextLib, COM interface constants for VB.Net / VBScript

RichTextLib - interface constants

     This page contains simple VBA include for the RichTextLib COM library.

library parameters

File NameWINDOWS\system32\RICHTX32.OCX
Guid{3B7C8863-D78F-101B-B9B5-04021C009402}
Enums14

OLEDragConstants

enum, 2 members.
  'Constants for the OLEDragMode property (but not the DragMode or OLEDropMode properties).
Public Enum OLEDragConstants

  'OLE drag/drop will be initialized only under programmatic control.
  rtfOLEDragManual = 0  '&H0

  'OLE drag/drop will be initialized when the user drags 'out' of the control, or under programmatic control.
  rtfOLEDragAutomatic = 1  '&H1
End Enum

OLEDropConstants

enum, 3 members.
  'Constants for the OLEDropMode property (but not the DragMode or OLEDragMode properties).
Public Enum OLEDropConstants

  'Accepts no OLE drag/drop operations.
  rtfOLEDropNone = 0  '&H0

  'Accepts an OLE drag/drop under programmatic control only.
  rtfOLEDropManual = 1  '&H1

  'Accepts an OLE drag/drop without programmatic control.
  rtfOLEDropAutomatic = 2  '&H2
End Enum

DragOverConstants

enum, 3 members.
  'State transition constants for the DragOver and OLEDragOver events.
Public Enum DragOverConstants

  'Source control dragged into target.
  rtfEnter = 0  '&H0

  'Source control dragged out of target.
  rtfLeave = 1  '&H1

  'Source control dragged from one position in target to another.
  rtfOver = 2  '&H2
End Enum

ClipBoardConstants

enum, 8 members.
  'Clipboard format constants.
Public Enum ClipBoardConstants

  'Text (.TXT file).
  rtfCFText = 1  '&H1

  'Bitmap (.BMP file).
  rtfCFBitmap = 2  '&H2

  'Metafile (.WMF file).
  rtfCFMetafile = 3  '&H3

  'Device-independent bitmap.
  rtfCFDIB = 8  '&H8

  'Color palette.
  rtfCFPalette = 9  '&H9

  'Enhanced metafile (.EMF file).
  rtfCFEMetafile = 14  '&HE

  'Filename list (Microsoft Windows Explorer)
  rtfCFFiles = 15  '&HF

  'Rich Text Format (.RTF file).
  rtfCFRTF = -16639  '&HFFFFBF01
End Enum

OLEDropEffectConstants

enum, 4 members.
  'Drop effect constants for OLE drag and drop events.
Public Enum OLEDropEffectConstants

  'No OLE drag/drop operation has taken place/would take place.
  rtfOLEDropEffectNone = 0  '&H0

  'A mask to indicate that a copy has taken place/would take place.
  rtfOLEDropEffectCopy = 1  '&H1

  'A mask to indicate that a move has take place/would take place.
  rtfOLEDropEffectMove = 2  '&H2

  'A mask to indicate that the drop target window has scrolled/would scroll.
  rtfOLEDropEffectScroll = -2147483648  '&H80000000
End Enum

AppearanceConstants

enum, 2 members.
  'Appearance constants.
Public Enum AppearanceConstants

  'Flat
  rtfFlat = 0  '&H0

  '3D
  rtfThreeD = 1  '&H1
End Enum

BorderStyleConstants

enum, 2 members.
  'BorderStyle constants.
Public Enum BorderStyleConstants

  'No border
  rtfNoBorder = 0  '&H0

  'Fixed Single
  rtfFixedSingle = 1  '&H1
End Enum

FindConstants

enum, 3 members.
  'Find constants.
Public Enum FindConstants

  'WholeWord
  rtfWholeWord = 2  '&H2

  'MatchCase
  rtfMatchCase = 4  '&H4

  'Don't Highlight selection
  rtfNoHighlight = 8  '&H8
End Enum

LoadSaveConstants

enum, 2 members.
  'LoadSave constants.
Public Enum LoadSaveConstants

  'RTF
  rtfRTF = 0  '&H0

  'WholeWord
  rtfText = 1  '&H1
End Enum

MousePointerConstants

enum, 17 members.
  'MousePointer constants.
Public Enum MousePointerConstants

  'Default
  rtfDefault = 0  '&H0

  'Arrow mouse pointer.
  rtfArrow = 1  '&H1

  'Cross mouse pointer.
  rtfCross = 2  '&H2

  'I-Beam mouse pointer.
  rtfIBeam = 3  '&H3

  'Icon mouse pointer.
  rtfIcon = 4  '&H4

  'Size mouse pointer.
  rtfSize = 5  '&H5

  'Size NE SW mouse pointer.
  rtfSizeNESW = 6  '&H6

  'Size N S mouse pointer.
  rtfSizeNS = 7  '&H7

  'Size NW SE mouse pointer.
  rtfSizeNWSE = 8  '&H8

  'Size W E mouse pointer.
  rtfSizeEW = 9  '&H9

  'Up arrow mouse pointer.
  rtfUpArrow = 10  '&HA

  'Hourglass mouse pointer.
  rtfHourglass = 11  '&HB

  'No drop mouse pointer.
  rtfNoDrop = 12  '&HC

  'Arrow and Hourglass mouse pointer
  rtfArrowHourglass = 13  '&HD

  'Arrow and Question mark mouse pointer
  rtfArrowQuestion = 14  '&HE

  'Size all mouse pointer
  rtfSizeAll = 15  '&HF

  'Custom mouse pointer icon specified by the MouseIcon property
  rtfCustom = 99  '&H63
End Enum

ScrollBarsConstants

enum, 4 members.
  'ScrollBars constants.
Public Enum ScrollBarsConstants

  'None
  rtfNone = 0  '&H0

  'Horizontal
  rtfHorizontal = 1  '&H1

  'Vertical
  rtfVertical = 2  '&H2

  'Both
  rtfBoth = 3  '&H3
End Enum

SelAlignmentConstants

enum, 3 members.
  'SelAlignment constants.
Public Enum SelAlignmentConstants

  'Left
  rtfLeft = 0  '&H0

  'Right
  rtfRight = 1  '&H1

  'Center
  rtfCenter = 2  '&H2
End Enum

DisplayTypeConstants

enum, 2 members.
  'OLEObject DisplayType constants
Public Enum DisplayTypeConstants

  'The object's data is displayed in the control.
  rtfDisplayContent = 0  '&H0

  'The object's icon is displayed in the control.
  rtfDisplayIcon = 1  '&H1
End Enum

ErrorConstants

enum, 28 members.
  'Error Constants
Public Enum ErrorConstants

  'Out of memory
  rtfOutOfMemory = 7  '&H7

  'Invalid property value
  rtfInvalidPropertyValue = 380  '&H17C

  'Invalid property array index
  rtfInvalidPropertyArrayIndex = 381  '&H17D

  'Property is read-only
  rtfSetNotSupported = 383  '&H17F

  'Property cannot be set
  rtfSetNotPermitted = 387  '&H183

  'Property is write-only
  rtfGetNotSupported = 394  '&H18A

  'Invalid procedure call
  rtfInvalidProcedureCall = 5  '&H5

  'Invalid object use
  rtfInvalidObjectUse = 425  '&H1A9

  'Specified format doesn't match format of data
  rtfWrongClipboardFormat = 461  '&H1CD

  'DataObject formats list may not be cleared or expanded outside of the OLEStartDrag event
  rtfDataObjectLocked = 672  '&H2A0

  'Expected at least one argument
  rtfExpectedAnArgument = 673  '&H2A1

  'Illegal recursive invocation of OLE drag and drop
  rtfRecursiveOleDrag = 674  '&H2A2

  'Non-intrinsic OLE drag and drop formats used with SetData require Byte array data.  GetData may return more bytes than were given to SetData.
  rtfFormatNotByteArray = 675  '&H2A3

  'Requested data was not supplied to the DataObject during the OLESetData event.
  rtfDataNotSetInFormat = 676  '&H2A4

  'The specified Path/file name cannot be accessed or is invalid
  rtfPathFileAccessError = 75  '&H4B

  'Invalid file format
  rtfInvalidFileFormat = 321  '&H141

  'Invalid character position
  rtfInvalidCharPosition = 32000  '&H7D00

  'Invalid HDC
  rtfInvalidHdc = 32001  '&H7D01

  'Unable to load specified file
  rtfCannotLoadFile = 32002  '&H7D02

  'The operation cannot be preformed on protected text
  rtfProtected = 32011  '&H7D0B

  'Invalid or missing key name
  rtfInvalidKeyName = 32005  '&H7D05

  'Invalid or missing OLE class name
  rtfInvalidClassName = 32006  '&H7D06

  'Key does not exist
  rtfKeyNotFound = 32007  '&H7D07

  'Required source document or class name is missing
  rtfOLESourceRequired = 32008  '&H7D08

  'Key is not unique in collection
  rtfNonUniqueKey = 32009  '&H7D09

  'Invalid object
  rtfInvalidObject = 32010  '&H7D0A

  'Unable to create object
  rtfOleCreate = 32012  '&H7D0C

  'Unable to start server application
  rtfOleServer = 32013  '&H7D0D
End Enum
WUtils.com