home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / bin / msole2.bas < prev    next >
Encoding:
BASIC Source File  |  1995-07-11  |  4.9 KB  |  135 lines

  1. 'Constants and error IDs for OLE 2.0 Client Control
  2. 'Created 1/19/93 - BOBM
  3. 'Updated 3/16/93 - BOBM
  4.  
  5. 'Actions
  6. Global Const OLE_CREATE_EMBED = 0
  7. Global Const OLE_CREATE_NEW = 0          'from ole1 control
  8. Global Const OLE_CREATE_LINK = 1
  9. Global Const OLE_CREATE_FROM_FILE = 1     'from ole1 control
  10. Global Const OLE_COPY = 4
  11. Global Const OLE_PASTE = 5
  12. Global Const OLE_UPDATE = 6
  13. Global Const OLE_ACTIVATE = 7
  14. Global Const OLE_CLOSE = 9
  15. Global Const OLE_DELETE = 10
  16. Global Const OLE_SAVE_TO_FILE = 11
  17. Global Const OLE_READ_FROM_FILE = 12
  18. Global Const OLE_INSERT_OBJ_DLG = 14
  19. Global Const OLE_PASTE_SPECIAL_DLG = 15
  20. Global Const OLE_FETCH_VERBS = 17
  21. Global Const OLE_SAVE_TO_OLE1FILE = 18
  22.  
  23. 'OLEType
  24. Global Const OLE_LINKED = 0
  25. Global Const OLE_EMBEDDED = 1
  26. Global Const OLE_NONE = 3
  27.  
  28. 'OLETypeAllowed
  29. Global Const OLE_EITHER = 2
  30.  
  31. 'UpdateOptions
  32. Global Const OLE_AUTOMATIC = 0
  33. Global Const OLE_FROZEN = 1
  34. Global Const OLE_MANUAL = 2
  35.  
  36. 'AutoActivate modes
  37. 'Note that OLE_ACTIVATE_GETFOCUS only applies to objects that
  38. 'support "inside-out" activatino.  See related Verb notes below.
  39. Global Const OLE_ACTIVATE_MANUAL = 0
  40. Global Const OLE_ACTIVATE_GETFOCUS = 1
  41. Global Const OLE_ACTIVATE_DOUBLECLICK = 2
  42.  
  43. 'SizeModes
  44. Global Const OLE_SIZE_CLIP = 0
  45. Global Const OLE_SIZE_STRETCH = 1
  46. Global Const OLE_SIZE_AUTOSIZE = 2
  47.  
  48. 'DisplayTypes
  49. Global Const OLE_DISPLAY_CONTENT = 0
  50. Global Const OLE_DISPLAY_ICON = 1
  51.  
  52. 'Update Event Constants
  53. Global Const OLE_CHANGED = 0
  54. Global Const OLE_SAVED = 1
  55. Global Const OLE_CLOSED = 2
  56. Global Const OLE_RENAMED = 3
  57.  
  58. 'Special Verb Values
  59. Global Const VERB_PRIMARY = 0
  60. Global Const VERB_SHOW = -1
  61. Global Const VERB_OPEN = -2
  62. Global Const VERB_HIDE = -3
  63. Global Const VERB_INPLACEUIACTIVATE = -4
  64. Global Const VERB_INPLACEACTIVATE = -5
  65. 'The last two verbs are for objects that support "inside-out" activation,
  66. 'meaning they can be edited in-place, and that they support being left
  67. 'inplace-active even when the input focus moves to another control or form.
  68. 'These objects actually have 2 levels of being active.  "InPlace Active"
  69. 'means that the object is ready for the user to click inside it and start
  70. 'working with it.  "InPlace UI-Active" means that, in addition, if the object
  71. 'has any other UI associated with it, such as floating pallette windows,
  72. 'that those windows are visible and ready for use.  Any number of objects
  73. 'can be "InPlace Active" at a time, although only one can be 
  74. '"InPlace UI-Active".  
  75.  
  76. 'You can cause an object to move to either one of states programmatically by 
  77. 'setting the Verb property to the appropriate verb and setting 
  78. 'Action=OLE_ACTIVATE.  
  79.  
  80. 'Also, if you set AutoActivate = OLE_ACTIVATE_GETFOCUS, the server will 
  81. 'automatically be put into "InPlace UI-Active" state when the user clicks
  82. 'on or tabs into the control.
  83.  
  84. 'VerbFlag Bit Masks 
  85. Global Const VERBFLAG_GRAYED = &H1
  86. Global Const VERBFLAG_DISABLED = &H2
  87. Global Const VERBFLAG_CHECKED = &H8
  88. Global Const VERBFLAG_SEPARATOR = &H800
  89.  
  90. 'MiscFlag Bits - Or these together as desired for special behaviors
  91.  
  92. 'MEMSTORAGE causes the control to use memory to store the object while
  93. '           it is loaded.  This is faster than the default (disk-tempfile),
  94. '        but can consume a lot of memory for objects whose data takes
  95. '        up a lot of space, such as the bitmap for a paint program.
  96. Global Const OLE_MISCFLAG_MEMSTORAGE = &H1
  97.  
  98. 'DISABLEINPLACE overrides the control's default behavior of allowing 
  99. '        in-place activation for objects that support it.  If you
  100. '        are having problems activating an object inplace, you can
  101. '        force it to always activate in a separate window by setting this
  102. '        bit
  103. Global Const OLE_MISCFLAG_DISABLEINPLACE = &H2
  104.  
  105. 'OLE Client Error IDs
  106. 'This first set are carried over from previous control
  107. Global Const OLEERR_OutOfMem = 31001
  108. Global Const OLEERR_CantOpenClipboard = 31003
  109. Global Const OLEERR_NoObject = 31004
  110. Global Const OLEERR_CantClose = 31006
  111. Global Const OLEERR_CantPaste = 31007
  112. Global Const OLEERR_InvProp = 31008
  113. Global Const OLEERR_CantCopy = 31009
  114. Global Const OLEERR_InvFormat = 31017
  115. Global Const OLEERR_NoClass = 31018
  116. Global Const OLEERR_NoSourceDoc = 31019
  117. ' InvAction is our first new error for the OLE2 control
  118. Global Const OLEERR_InvAction = 31021
  119. Global Const OLEERR_OleInitFailed  = 31022
  120. Global Const OLEERR_InvClass = 31023
  121. Global Const OLEERR_CantLink = 31024
  122. Global Const OLEERR_SourceTooLong = 31026
  123. Global Const OLEERR_CantActivate = 31027
  124. Global Const OLEERR_NotRunning = 31028
  125. Global Const OLEERR_DialogBusy = 31029
  126. Global Const OLEERR_InvalidSource = 31031
  127. Global Const OLEERR_CantEmbed = 31032
  128. Global Const OLEERR_CantFetchLinkSrc = 31033
  129. Global Const OLEERR_InvalidVerb    = 31034
  130. Global Const OLEERR_NoCompatClipFmt = 31035
  131. Global Const OLEERR_ErrorSavingFile = 31036
  132. Global Const OLEERR_ErrorLoadingFile = 31037
  133. Global Const OLEERR_BadVBVersion = 31038
  134. Global Const OLEERR_CantAccessSource = 31039
  135.