home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 May / maximum-cd-2010-05.iso / DiscContents / boxee-0.9.20.10711.exe / system / python / Lib / plat-mac / Carbon / Controls.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-07-20  |  31.8 KB  |  669 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4.  
  5. def FOUR_CHAR_CODE(x):
  6.     return x
  7.  
  8. from Carbon.TextEdit import *
  9. from Carbon.QuickDraw import *
  10. from Carbon.Dragconst import *
  11. from Carbon.CarbonEvents import *
  12. from Carbon.Appearance import *
  13. kDataBrowserItemAnyState = -1
  14. kControlBevelButtonCenterPopupGlyphTag = -1
  15. kDataBrowserClientPropertyFlagsMask = 0xFF000000L
  16. kControlDefProcType = FOUR_CHAR_CODE('CDEF')
  17. kControlTemplateResourceType = FOUR_CHAR_CODE('CNTL')
  18. kControlColorTableResourceType = FOUR_CHAR_CODE('cctb')
  19. kControlDefProcResourceType = FOUR_CHAR_CODE('CDEF')
  20. controlNotifyNothing = FOUR_CHAR_CODE('nada')
  21. controlNotifyClick = FOUR_CHAR_CODE('clik')
  22. controlNotifyFocus = FOUR_CHAR_CODE('focu')
  23. controlNotifyKey = FOUR_CHAR_CODE('key ')
  24. kControlCanAutoInvalidate = 0x1L << 0
  25. staticTextProc = 256
  26. editTextProc = 272
  27. iconProc = 288
  28. userItemProc = 304
  29. pictItemProc = 320
  30. cFrameColor = 0
  31. cBodyColor = 1
  32. cTextColor = 2
  33. cThumbColor = 3
  34. kNumberCtlCTabEntries = 4
  35. kControlNoVariant = 0
  36. kControlUsesOwningWindowsFontVariant = 1 << 3
  37. kControlNoPart = 0
  38. kControlIndicatorPart = 129
  39. kControlDisabledPart = 254
  40. kControlInactivePart = 255
  41. kControlEntireControl = 0
  42. kControlStructureMetaPart = -1
  43. kControlContentMetaPart = -2
  44. kControlFocusNoPart = 0
  45. kControlFocusNextPart = -1
  46. kControlFocusPrevPart = -2
  47. kControlCollectionTagBounds = FOUR_CHAR_CODE('boun')
  48. kControlCollectionTagValue = FOUR_CHAR_CODE('valu')
  49. kControlCollectionTagMinimum = FOUR_CHAR_CODE('min ')
  50. kControlCollectionTagMaximum = FOUR_CHAR_CODE('max ')
  51. kControlCollectionTagViewSize = FOUR_CHAR_CODE('view')
  52. kControlCollectionTagVisibility = FOUR_CHAR_CODE('visi')
  53. kControlCollectionTagRefCon = FOUR_CHAR_CODE('refc')
  54. kControlCollectionTagTitle = FOUR_CHAR_CODE('titl')
  55. kControlCollectionTagUnicodeTitle = FOUR_CHAR_CODE('uttl')
  56. kControlCollectionTagIDSignature = FOUR_CHAR_CODE('idsi')
  57. kControlCollectionTagIDID = FOUR_CHAR_CODE('idid')
  58. kControlCollectionTagCommand = FOUR_CHAR_CODE('cmd ')
  59. kControlCollectionTagVarCode = FOUR_CHAR_CODE('varc')
  60. kControlContentTextOnly = 0
  61. kControlNoContent = 0
  62. kControlContentIconSuiteRes = 1
  63. kControlContentCIconRes = 2
  64. kControlContentPictRes = 3
  65. kControlContentICONRes = 4
  66. kControlContentIconSuiteHandle = 129
  67. kControlContentCIconHandle = 130
  68. kControlContentPictHandle = 131
  69. kControlContentIconRef = 132
  70. kControlContentICON = 133
  71. kControlKeyScriptBehaviorAllowAnyScript = FOUR_CHAR_CODE('any ')
  72. kControlKeyScriptBehaviorPrefersRoman = FOUR_CHAR_CODE('prmn')
  73. kControlKeyScriptBehaviorRequiresRoman = FOUR_CHAR_CODE('rrmn')
  74. kControlFontBigSystemFont = -1
  75. kControlFontSmallSystemFont = -2
  76. kControlFontSmallBoldSystemFont = -3
  77. kControlFontViewSystemFont = -4
  78. kControlUseFontMask = 1
  79. kControlUseFaceMask = 2
  80. kControlUseSizeMask = 4
  81. kControlUseForeColorMask = 8
  82. kControlUseBackColorMask = 16
  83. kControlUseModeMask = 32
  84. kControlUseJustMask = 64
  85. kControlUseAllMask = 255
  86. kControlAddFontSizeMask = 256
  87. kControlAddToMetaFontMask = 512
  88. kControlUseThemeFontIDMask = 128
  89. kDoNotActivateAndIgnoreClick = 0
  90. kDoNotActivateAndHandleClick = 1
  91. kActivateAndIgnoreClick = 2
  92. kActivateAndHandleClick = 3
  93. kControlFontStyleTag = FOUR_CHAR_CODE('font')
  94. kControlKeyFilterTag = FOUR_CHAR_CODE('fltr')
  95. kControlKindTag = FOUR_CHAR_CODE('kind')
  96. kControlSizeTag = FOUR_CHAR_CODE('size')
  97. kControlSupportsGhosting = 1 << 0
  98. kControlSupportsEmbedding = 1 << 1
  99. kControlSupportsFocus = 1 << 2
  100. kControlWantsIdle = 1 << 3
  101. kControlWantsActivate = 1 << 4
  102. kControlHandlesTracking = 1 << 5
  103. kControlSupportsDataAccess = 1 << 6
  104. kControlHasSpecialBackground = 1 << 7
  105. kControlGetsFocusOnClick = 1 << 8
  106. kControlSupportsCalcBestRect = 1 << 9
  107. kControlSupportsLiveFeedback = 1 << 10
  108. kControlHasRadioBehavior = 1 << 11
  109. kControlSupportsDragAndDrop = 1 << 12
  110. kControlAutoToggles = 1 << 14
  111. kControlSupportsGetRegion = 1 << 17
  112. kControlSupportsFlattening = 1 << 19
  113. kControlSupportsSetCursor = 1 << 20
  114. kControlSupportsContextualMenus = 1 << 21
  115. kControlSupportsClickActivation = 1 << 22
  116. kControlIdlesWithTimer = 1 << 23
  117. drawCntl = 0
  118. testCntl = 1
  119. calcCRgns = 2
  120. initCntl = 3
  121. dispCntl = 4
  122. posCntl = 5
  123. thumbCntl = 6
  124. dragCntl = 7
  125. autoTrack = 8
  126. calcCntlRgn = 10
  127. calcThumbRgn = 11
  128. drawThumbOutline = 12
  129. kControlMsgDrawGhost = 13
  130. kControlMsgCalcBestRect = 14
  131. kControlMsgHandleTracking = 15
  132. kControlMsgFocus = 16
  133. kControlMsgKeyDown = 17
  134. kControlMsgIdle = 18
  135. kControlMsgGetFeatures = 19
  136. kControlMsgSetData = 20
  137. kControlMsgGetData = 21
  138. kControlMsgActivate = 22
  139. kControlMsgSetUpBackground = 23
  140. kControlMsgCalcValueFromPos = 26
  141. kControlMsgTestNewMsgSupport = 27
  142. kControlMsgSubValueChanged = 25
  143. kControlMsgSubControlAdded = 28
  144. kControlMsgSubControlRemoved = 29
  145. kControlMsgApplyTextColor = 30
  146. kControlMsgGetRegion = 31
  147. kControlMsgFlatten = 32
  148. kControlMsgSetCursor = 33
  149. kControlMsgDragEnter = 38
  150. kControlMsgDragLeave = 39
  151. kControlMsgDragWithin = 40
  152. kControlMsgDragReceive = 41
  153. kControlMsgDisplayDebugInfo = 46
  154. kControlMsgContextualMenuClick = 47
  155. kControlMsgGetClickActivation = 48
  156. kControlSizeNormal = 0
  157. kControlSizeSmall = 1
  158. kControlSizeLarge = 2
  159. kControlSizeAuto = 65535
  160. kDrawControlEntireControl = 0
  161. kDrawControlIndicatorOnly = 129
  162. kDragControlEntireControl = 0
  163. kDragControlIndicator = 1
  164. kControlSupportsNewMessages = FOUR_CHAR_CODE(' ok ')
  165. kControlKeyFilterBlockKey = 0
  166. kControlKeyFilterPassKey = 1
  167. noConstraint = kNoConstraint
  168. hAxisOnly = 1
  169. vAxisOnly = 2
  170. kControlDefProcPtr = 0
  171. kControlDefObjectClass = 1
  172. kControlKindSignatureApple = FOUR_CHAR_CODE('appl')
  173. kControlPropertyPersistent = 1
  174. kDragTrackingEnterControl = 2
  175. kDragTrackingInControl = 3
  176. kDragTrackingLeaveControl = 4
  177. useWFont = kControlUsesOwningWindowsFontVariant
  178. inThumb = kControlIndicatorPart
  179. kNoHiliteControlPart = kControlNoPart
  180. kInIndicatorControlPart = kControlIndicatorPart
  181. kReservedControlPart = kControlDisabledPart
  182. kControlInactiveControlPart = kControlInactivePart
  183. kControlTabListResType = FOUR_CHAR_CODE('tab#')
  184. kControlListDescResType = FOUR_CHAR_CODE('ldes')
  185. kControlCheckBoxUncheckedValue = 0
  186. kControlCheckBoxCheckedValue = 1
  187. kControlCheckBoxMixedValue = 2
  188. kControlRadioButtonUncheckedValue = 0
  189. kControlRadioButtonCheckedValue = 1
  190. kControlRadioButtonMixedValue = 2
  191. popupFixedWidth = 1 << 0
  192. popupVariableWidth = 1 << 1
  193. popupUseAddResMenu = 1 << 2
  194. popupUseWFont = 1 << 3
  195. popupTitleBold = 1 << 8
  196. popupTitleItalic = 1 << 9
  197. popupTitleUnderline = 1 << 10
  198. popupTitleOutline = 1 << 11
  199. popupTitleShadow = 1 << 12
  200. popupTitleCondense = 1 << 13
  201. popupTitleExtend = 1 << 14
  202. popupTitleNoStyle = 1 << 15
  203. popupTitleLeftJust = 0
  204. popupTitleCenterJust = 1
  205. popupTitleRightJust = 255
  206. pushButProc = 0
  207. checkBoxProc = 1
  208. radioButProc = 2
  209. scrollBarProc = 16
  210. popupMenuProc = 1008
  211. kControlLabelPart = 1
  212. kControlMenuPart = 2
  213. kControlTrianglePart = 4
  214. kControlEditTextPart = 5
  215. kControlPicturePart = 6
  216. kControlIconPart = 7
  217. kControlClockPart = 8
  218. kControlListBoxPart = 24
  219. kControlListBoxDoubleClickPart = 25
  220. kControlImageWellPart = 26
  221. kControlRadioGroupPart = 27
  222. kControlButtonPart = 10
  223. kControlCheckBoxPart = 11
  224. kControlRadioButtonPart = 11
  225. kControlUpButtonPart = 20
  226. kControlDownButtonPart = 21
  227. kControlPageUpPart = 22
  228. kControlPageDownPart = 23
  229. kControlClockHourDayPart = 9
  230. kControlClockMinuteMonthPart = 10
  231. kControlClockSecondYearPart = 11
  232. kControlClockAMPMPart = 12
  233. kControlDataBrowserPart = 24
  234. kControlDataBrowserDraggedPart = 25
  235. kControlBevelButtonSmallBevelProc = 32
  236. kControlBevelButtonNormalBevelProc = 33
  237. kControlBevelButtonLargeBevelProc = 34
  238. kControlBevelButtonSmallBevelVariant = 0
  239. kControlBevelButtonNormalBevelVariant = 1 << 0
  240. kControlBevelButtonLargeBevelVariant = 1 << 1
  241. kControlBevelButtonMenuOnRightVariant = 1 << 2
  242. kControlBevelButtonSmallBevel = 0
  243. kControlBevelButtonNormalBevel = 1
  244. kControlBevelButtonLargeBevel = 2
  245. kControlBehaviorPushbutton = 0
  246. kControlBehaviorToggles = 256
  247. kControlBehaviorSticky = 512
  248. kControlBehaviorSingleValueMenu = 0
  249. kControlBehaviorMultiValueMenu = 16384
  250. kControlBehaviorOffsetContents = 32768
  251. kControlBehaviorCommandMenu = 8192
  252. kControlBevelButtonMenuOnBottom = 0
  253. kControlBevelButtonMenuOnRight = 1 << 2
  254. kControlKindBevelButton = FOUR_CHAR_CODE('bevl')
  255. kControlBevelButtonAlignSysDirection = -1
  256. kControlBevelButtonAlignCenter = 0
  257. kControlBevelButtonAlignLeft = 1
  258. kControlBevelButtonAlignRight = 2
  259. kControlBevelButtonAlignTop = 3
  260. kControlBevelButtonAlignBottom = 4
  261. kControlBevelButtonAlignTopLeft = 5
  262. kControlBevelButtonAlignBottomLeft = 6
  263. kControlBevelButtonAlignTopRight = 7
  264. kControlBevelButtonAlignBottomRight = 8
  265. kControlBevelButtonAlignTextSysDirection = teFlushDefault
  266. kControlBevelButtonAlignTextCenter = teCenter
  267. kControlBevelButtonAlignTextFlushRight = teFlushRight
  268. kControlBevelButtonAlignTextFlushLeft = teFlushLeft
  269. kControlBevelButtonPlaceSysDirection = -1
  270. kControlBevelButtonPlaceNormally = 0
  271. kControlBevelButtonPlaceToRightOfGraphic = 1
  272. kControlBevelButtonPlaceToLeftOfGraphic = 2
  273. kControlBevelButtonPlaceBelowGraphic = 3
  274. kControlBevelButtonPlaceAboveGraphic = 4
  275. kControlBevelButtonContentTag = FOUR_CHAR_CODE('cont')
  276. kControlBevelButtonTransformTag = FOUR_CHAR_CODE('tran')
  277. kControlBevelButtonTextAlignTag = FOUR_CHAR_CODE('tali')
  278. kControlBevelButtonTextOffsetTag = FOUR_CHAR_CODE('toff')
  279. kControlBevelButtonGraphicAlignTag = FOUR_CHAR_CODE('gali')
  280. kControlBevelButtonGraphicOffsetTag = FOUR_CHAR_CODE('goff')
  281. kControlBevelButtonTextPlaceTag = FOUR_CHAR_CODE('tplc')
  282. kControlBevelButtonMenuValueTag = FOUR_CHAR_CODE('mval')
  283. kControlBevelButtonMenuHandleTag = FOUR_CHAR_CODE('mhnd')
  284. kControlBevelButtonMenuRefTag = FOUR_CHAR_CODE('mhnd')
  285. kControlBevelButtonLastMenuTag = FOUR_CHAR_CODE('lmnu')
  286. kControlBevelButtonMenuDelayTag = FOUR_CHAR_CODE('mdly')
  287. kControlBevelButtonScaleIconTag = FOUR_CHAR_CODE('scal')
  288. kControlBevelButtonOwnedMenuRefTag = FOUR_CHAR_CODE('omrf')
  289. kControlBevelButtonKindTag = FOUR_CHAR_CODE('bebk')
  290. kControlSliderProc = 48
  291. kControlSliderLiveFeedback = 1 << 0
  292. kControlSliderHasTickMarks = 1 << 1
  293. kControlSliderReverseDirection = 1 << 2
  294. kControlSliderNonDirectional = 1 << 3
  295. kControlSliderPointsDownOrRight = 0
  296. kControlSliderPointsUpOrLeft = 1
  297. kControlSliderDoesNotPoint = 2
  298. kControlKindSlider = FOUR_CHAR_CODE('sldr')
  299. kControlTriangleProc = 64
  300. kControlTriangleLeftFacingProc = 65
  301. kControlTriangleAutoToggleProc = 66
  302. kControlTriangleLeftFacingAutoToggleProc = 67
  303. kControlDisclosureTrianglePointDefault = 0
  304. kControlDisclosureTrianglePointRight = 1
  305. kControlDisclosureTrianglePointLeft = 2
  306. kControlKindDisclosureTriangle = FOUR_CHAR_CODE('dist')
  307. kControlTriangleLastValueTag = FOUR_CHAR_CODE('last')
  308. kControlProgressBarProc = 80
  309. kControlRelevanceBarProc = 81
  310. kControlKindProgressBar = FOUR_CHAR_CODE('prgb')
  311. kControlKindRelevanceBar = FOUR_CHAR_CODE('relb')
  312. kControlProgressBarIndeterminateTag = FOUR_CHAR_CODE('inde')
  313. kControlProgressBarAnimatingTag = FOUR_CHAR_CODE('anim')
  314. kControlLittleArrowsProc = 96
  315. kControlKindLittleArrows = FOUR_CHAR_CODE('larr')
  316. kControlChasingArrowsProc = 112
  317. kControlKindChasingArrows = FOUR_CHAR_CODE('carr')
  318. kControlChasingArrowsAnimatingTag = FOUR_CHAR_CODE('anim')
  319. kControlTabLargeProc = 128
  320. kControlTabSmallProc = 129
  321. kControlTabLargeNorthProc = 128
  322. kControlTabSmallNorthProc = 129
  323. kControlTabLargeSouthProc = 130
  324. kControlTabSmallSouthProc = 131
  325. kControlTabLargeEastProc = 132
  326. kControlTabSmallEastProc = 133
  327. kControlTabLargeWestProc = 134
  328. kControlTabSmallWestProc = 135
  329. kControlTabDirectionNorth = 0
  330. kControlTabDirectionSouth = 1
  331. kControlTabDirectionEast = 2
  332. kControlTabDirectionWest = 3
  333. kControlTabSizeLarge = kControlSizeNormal
  334. kControlTabSizeSmall = kControlSizeSmall
  335. kControlKindTabs = FOUR_CHAR_CODE('tabs')
  336. kControlTabContentRectTag = FOUR_CHAR_CODE('rect')
  337. kControlTabEnabledFlagTag = FOUR_CHAR_CODE('enab')
  338. kControlTabFontStyleTag = kControlFontStyleTag
  339. kControlTabInfoTag = FOUR_CHAR_CODE('tabi')
  340. kControlTabImageContentTag = FOUR_CHAR_CODE('cont')
  341. kControlTabInfoVersionZero = 0
  342. kControlTabInfoVersionOne = 1
  343. kControlSeparatorLineProc = 144
  344. kControlKindSeparator = FOUR_CHAR_CODE('sepa')
  345. kControlGroupBoxTextTitleProc = 160
  346. kControlGroupBoxCheckBoxProc = 161
  347. kControlGroupBoxPopupButtonProc = 162
  348. kControlGroupBoxSecondaryTextTitleProc = 164
  349. kControlGroupBoxSecondaryCheckBoxProc = 165
  350. kControlGroupBoxSecondaryPopupButtonProc = 166
  351. kControlKindGroupBox = FOUR_CHAR_CODE('grpb')
  352. kControlKindCheckGroupBox = FOUR_CHAR_CODE('cgrp')
  353. kControlKindPopupGroupBox = FOUR_CHAR_CODE('pgrp')
  354. kControlGroupBoxMenuHandleTag = FOUR_CHAR_CODE('mhan')
  355. kControlGroupBoxMenuRefTag = FOUR_CHAR_CODE('mhan')
  356. kControlGroupBoxFontStyleTag = kControlFontStyleTag
  357. kControlGroupBoxTitleRectTag = FOUR_CHAR_CODE('trec')
  358. kControlImageWellProc = 176
  359. kControlKindImageWell = FOUR_CHAR_CODE('well')
  360. kControlImageWellContentTag = FOUR_CHAR_CODE('cont')
  361. kControlImageWellTransformTag = FOUR_CHAR_CODE('tran')
  362. kControlImageWellIsDragDestinationTag = FOUR_CHAR_CODE('drag')
  363. kControlPopupArrowEastProc = 192
  364. kControlPopupArrowWestProc = 193
  365. kControlPopupArrowNorthProc = 194
  366. kControlPopupArrowSouthProc = 195
  367. kControlPopupArrowSmallEastProc = 196
  368. kControlPopupArrowSmallWestProc = 197
  369. kControlPopupArrowSmallNorthProc = 198
  370. kControlPopupArrowSmallSouthProc = 199
  371. kControlPopupArrowOrientationEast = 0
  372. kControlPopupArrowOrientationWest = 1
  373. kControlPopupArrowOrientationNorth = 2
  374. kControlPopupArrowOrientationSouth = 3
  375. kControlPopupArrowSizeNormal = 0
  376. kControlPopupArrowSizeSmall = 1
  377. kControlKindPopupArrow = FOUR_CHAR_CODE('parr')
  378. kControlPlacardProc = 224
  379. kControlKindPlacard = FOUR_CHAR_CODE('plac')
  380. kControlClockTimeProc = 240
  381. kControlClockTimeSecondsProc = 241
  382. kControlClockDateProc = 242
  383. kControlClockMonthYearProc = 243
  384. kControlClockTypeHourMinute = 0
  385. kControlClockTypeHourMinuteSecond = 1
  386. kControlClockTypeMonthDayYear = 2
  387. kControlClockTypeMonthYear = 3
  388. kControlClockFlagStandard = 0
  389. kControlClockNoFlags = 0
  390. kControlClockFlagDisplayOnly = 1
  391. kControlClockIsDisplayOnly = 1
  392. kControlClockFlagLive = 2
  393. kControlClockIsLive = 2
  394. kControlKindClock = FOUR_CHAR_CODE('clck')
  395. kControlClockLongDateTag = FOUR_CHAR_CODE('date')
  396. kControlClockFontStyleTag = kControlFontStyleTag
  397. kControlClockAnimatingTag = FOUR_CHAR_CODE('anim')
  398. kControlUserPaneProc = 256
  399. kControlKindUserPane = FOUR_CHAR_CODE('upan')
  400. kControlUserItemDrawProcTag = FOUR_CHAR_CODE('uidp')
  401. kControlUserPaneDrawProcTag = FOUR_CHAR_CODE('draw')
  402. kControlUserPaneHitTestProcTag = FOUR_CHAR_CODE('hitt')
  403. kControlUserPaneTrackingProcTag = FOUR_CHAR_CODE('trak')
  404. kControlUserPaneIdleProcTag = FOUR_CHAR_CODE('idle')
  405. kControlUserPaneKeyDownProcTag = FOUR_CHAR_CODE('keyd')
  406. kControlUserPaneActivateProcTag = FOUR_CHAR_CODE('acti')
  407. kControlUserPaneFocusProcTag = FOUR_CHAR_CODE('foci')
  408. kControlUserPaneBackgroundProcTag = FOUR_CHAR_CODE('back')
  409. kControlEditTextProc = 272
  410. kControlEditTextPasswordProc = 274
  411. kControlEditTextInlineInputProc = 276
  412. kControlKindEditText = FOUR_CHAR_CODE('etxt')
  413. kControlEditTextStyleTag = kControlFontStyleTag
  414. kControlEditTextTextTag = FOUR_CHAR_CODE('text')
  415. kControlEditTextTEHandleTag = FOUR_CHAR_CODE('than')
  416. kControlEditTextKeyFilterTag = kControlKeyFilterTag
  417. kControlEditTextSelectionTag = FOUR_CHAR_CODE('sele')
  418. kControlEditTextPasswordTag = FOUR_CHAR_CODE('pass')
  419. kControlEditTextKeyScriptBehaviorTag = FOUR_CHAR_CODE('kscr')
  420. kControlEditTextLockedTag = FOUR_CHAR_CODE('lock')
  421. kControlEditTextFixedTextTag = FOUR_CHAR_CODE('ftxt')
  422. kControlEditTextValidationProcTag = FOUR_CHAR_CODE('vali')
  423. kControlEditTextInlinePreUpdateProcTag = FOUR_CHAR_CODE('prup')
  424. kControlEditTextInlinePostUpdateProcTag = FOUR_CHAR_CODE('poup')
  425. kControlEditTextCFStringTag = FOUR_CHAR_CODE('cfst')
  426. kControlEditTextPasswordCFStringTag = FOUR_CHAR_CODE('pwcf')
  427. kControlStaticTextProc = 288
  428. kControlKindStaticText = FOUR_CHAR_CODE('stxt')
  429. kControlStaticTextStyleTag = kControlFontStyleTag
  430. kControlStaticTextTextTag = FOUR_CHAR_CODE('text')
  431. kControlStaticTextTextHeightTag = FOUR_CHAR_CODE('thei')
  432. kControlStaticTextTruncTag = FOUR_CHAR_CODE('trun')
  433. kControlStaticTextCFStringTag = FOUR_CHAR_CODE('cfst')
  434. kControlPictureProc = 304
  435. kControlPictureNoTrackProc = 305
  436. kControlKindPicture = FOUR_CHAR_CODE('pict')
  437. kControlPictureHandleTag = FOUR_CHAR_CODE('pich')
  438. kControlIconProc = 320
  439. kControlIconNoTrackProc = 321
  440. kControlIconSuiteProc = 322
  441. kControlIconSuiteNoTrackProc = 323
  442. kControlIconRefProc = 324
  443. kControlIconRefNoTrackProc = 325
  444. kControlKindIcon = FOUR_CHAR_CODE('icon')
  445. kControlIconTransformTag = FOUR_CHAR_CODE('trfm')
  446. kControlIconAlignmentTag = FOUR_CHAR_CODE('algn')
  447. kControlIconResourceIDTag = FOUR_CHAR_CODE('ires')
  448. kControlIconContentTag = FOUR_CHAR_CODE('cont')
  449. kControlWindowHeaderProc = 336
  450. kControlWindowListViewHeaderProc = 337
  451. kControlKindWindowHeader = FOUR_CHAR_CODE('whed')
  452. kControlListBoxProc = 352
  453. kControlListBoxAutoSizeProc = 353
  454. kControlKindListBox = FOUR_CHAR_CODE('lbox')
  455. kControlListBoxListHandleTag = FOUR_CHAR_CODE('lhan')
  456. kControlListBoxKeyFilterTag = kControlKeyFilterTag
  457. kControlListBoxFontStyleTag = kControlFontStyleTag
  458. kControlListBoxDoubleClickTag = FOUR_CHAR_CODE('dblc')
  459. kControlListBoxLDEFTag = FOUR_CHAR_CODE('ldef')
  460. kControlPushButtonProc = 368
  461. kControlCheckBoxProc = 369
  462. kControlRadioButtonProc = 370
  463. kControlPushButLeftIconProc = 374
  464. kControlPushButRightIconProc = 375
  465. kControlCheckBoxAutoToggleProc = 371
  466. kControlRadioButtonAutoToggleProc = 372
  467. kControlPushButtonIconOnLeft = 6
  468. kControlPushButtonIconOnRight = 7
  469. kControlKindPushButton = FOUR_CHAR_CODE('push')
  470. kControlKindPushIconButton = FOUR_CHAR_CODE('picn')
  471. kControlKindRadioButton = FOUR_CHAR_CODE('rdio')
  472. kControlKindCheckBox = FOUR_CHAR_CODE('cbox')
  473. kControlPushButtonDefaultTag = FOUR_CHAR_CODE('dflt')
  474. kControlPushButtonCancelTag = FOUR_CHAR_CODE('cncl')
  475. kControlScrollBarProc = 384
  476. kControlScrollBarLiveProc = 386
  477. kControlKindScrollBar = FOUR_CHAR_CODE('sbar')
  478. kControlScrollBarShowsArrowsTag = FOUR_CHAR_CODE('arro')
  479. kControlPopupButtonProc = 400
  480. kControlPopupFixedWidthVariant = 1 << 0
  481. kControlPopupVariableWidthVariant = 1 << 1
  482. kControlPopupUseAddResMenuVariant = 1 << 2
  483. kControlPopupUseWFontVariant = kControlUsesOwningWindowsFontVariant
  484. kControlKindPopupButton = FOUR_CHAR_CODE('popb')
  485. kControlPopupButtonMenuHandleTag = FOUR_CHAR_CODE('mhan')
  486. kControlPopupButtonMenuRefTag = FOUR_CHAR_CODE('mhan')
  487. kControlPopupButtonMenuIDTag = FOUR_CHAR_CODE('mnid')
  488. kControlPopupButtonExtraHeightTag = FOUR_CHAR_CODE('exht')
  489. kControlPopupButtonOwnedMenuRefTag = FOUR_CHAR_CODE('omrf')
  490. kControlPopupButtonCheckCurrentTag = FOUR_CHAR_CODE('chck')
  491. kControlRadioGroupProc = 416
  492. kControlKindRadioGroup = FOUR_CHAR_CODE('rgrp')
  493. kControlScrollTextBoxProc = 432
  494. kControlScrollTextBoxAutoScrollProc = 433
  495. kControlKindScrollingTextBox = FOUR_CHAR_CODE('stbx')
  496. kControlScrollTextBoxDelayBeforeAutoScrollTag = FOUR_CHAR_CODE('stdl')
  497. kControlScrollTextBoxDelayBetweenAutoScrollTag = FOUR_CHAR_CODE('scdl')
  498. kControlScrollTextBoxAutoScrollAmountTag = FOUR_CHAR_CODE('samt')
  499. kControlScrollTextBoxContentsTag = FOUR_CHAR_CODE('tres')
  500. kControlScrollTextBoxAnimatingTag = FOUR_CHAR_CODE('anim')
  501. kControlKindDisclosureButton = FOUR_CHAR_CODE('disb')
  502. kControlDisclosureButtonClosed = 0
  503. kControlDisclosureButtonDisclosed = 1
  504. kControlRoundButtonNormalSize = kControlSizeNormal
  505. kControlRoundButtonLargeSize = kControlSizeLarge
  506. kControlRoundButtonContentTag = FOUR_CHAR_CODE('cont')
  507. kControlRoundButtonSizeTag = kControlSizeTag
  508. kControlKindRoundButton = FOUR_CHAR_CODE('rndb')
  509. kControlKindDataBrowser = FOUR_CHAR_CODE('datb')
  510. errDataBrowserNotConfigured = -4970
  511. errDataBrowserItemNotFound = -4971
  512. errDataBrowserItemNotAdded = -4975
  513. errDataBrowserPropertyNotFound = -4972
  514. errDataBrowserInvalidPropertyPart = -4973
  515. errDataBrowserInvalidPropertyData = -4974
  516. errDataBrowserPropertyNotSupported = -4979
  517. kControlDataBrowserIncludesFrameAndFocusTag = FOUR_CHAR_CODE('brdr')
  518. kControlDataBrowserKeyFilterTag = kControlEditTextKeyFilterTag
  519. kControlDataBrowserEditTextKeyFilterTag = kControlDataBrowserKeyFilterTag
  520. kControlDataBrowserEditTextValidationProcTag = kControlEditTextValidationProcTag
  521. kDataBrowserNoView = 1061109567
  522. kDataBrowserListView = FOUR_CHAR_CODE('lstv')
  523. kDataBrowserColumnView = FOUR_CHAR_CODE('clmv')
  524. kDataBrowserDragSelect = 1 << 0
  525. kDataBrowserSelectOnlyOne = 1 << 1
  526. kDataBrowserResetSelection = 1 << 2
  527. kDataBrowserCmdTogglesSelection = 1 << 3
  528. kDataBrowserNoDisjointSelection = 1 << 4
  529. kDataBrowserAlwaysExtendSelection = 1 << 5
  530. kDataBrowserNeverEmptySelectionSet = 1 << 6
  531. kDataBrowserOrderUndefined = 0
  532. kDataBrowserOrderIncreasing = 1
  533. kDataBrowserOrderDecreasing = 2
  534. kDataBrowserNoItem = 0x0L
  535. kDataBrowserItemNoState = 0
  536. kDataBrowserItemIsSelected = 1 << 0
  537. kDataBrowserContainerIsOpen = 1 << 1
  538. kDataBrowserItemIsDragTarget = 1 << 2
  539. kDataBrowserRevealOnly = 0
  540. kDataBrowserRevealAndCenterInView = 1 << 0
  541. kDataBrowserRevealWithoutSelecting = 1 << 1
  542. kDataBrowserItemsAdd = 0
  543. kDataBrowserItemsAssign = 1
  544. kDataBrowserItemsToggle = 2
  545. kDataBrowserItemsRemove = 3
  546. kDataBrowserSelectionAnchorUp = 0
  547. kDataBrowserSelectionAnchorDown = 1
  548. kDataBrowserSelectionAnchorLeft = 2
  549. kDataBrowserSelectionAnchorRight = 3
  550. kDataBrowserEditMsgUndo = kHICommandUndo
  551. kDataBrowserEditMsgRedo = kHICommandRedo
  552. kDataBrowserEditMsgCut = kHICommandCut
  553. kDataBrowserEditMsgCopy = kHICommandCopy
  554. kDataBrowserEditMsgPaste = kHICommandPaste
  555. kDataBrowserEditMsgClear = kHICommandClear
  556. kDataBrowserEditMsgSelectAll = kHICommandSelectAll
  557. kDataBrowserItemAdded = 1
  558. kDataBrowserItemRemoved = 2
  559. kDataBrowserEditStarted = 3
  560. kDataBrowserEditStopped = 4
  561. kDataBrowserItemSelected = 5
  562. kDataBrowserItemDeselected = 6
  563. kDataBrowserItemDoubleClicked = 7
  564. kDataBrowserContainerOpened = 8
  565. kDataBrowserContainerClosing = 9
  566. kDataBrowserContainerClosed = 10
  567. kDataBrowserContainerSorting = 11
  568. kDataBrowserContainerSorted = 12
  569. kDataBrowserUserToggledContainer = 16
  570. kDataBrowserTargetChanged = 15
  571. kDataBrowserUserStateChanged = 13
  572. kDataBrowserSelectionSetChanged = 14
  573. kDataBrowserItemNoProperty = 0x0L
  574. kDataBrowserItemIsActiveProperty = 0x1L
  575. kDataBrowserItemIsSelectableProperty = 0x2L
  576. kDataBrowserItemIsEditableProperty = 0x3L
  577. kDataBrowserItemIsContainerProperty = 0x4L
  578. kDataBrowserContainerIsOpenableProperty = 0x5L
  579. kDataBrowserContainerIsClosableProperty = 0x6L
  580. kDataBrowserContainerIsSortableProperty = 0x7L
  581. kDataBrowserItemSelfIdentityProperty = 0x8L
  582. kDataBrowserContainerAliasIDProperty = 0x9L
  583. kDataBrowserColumnViewPreviewProperty = 0xAL
  584. kDataBrowserItemParentContainerProperty = 0xBL
  585. kDataBrowserCustomType = 1061109567
  586. kDataBrowserIconType = FOUR_CHAR_CODE('icnr')
  587. kDataBrowserTextType = FOUR_CHAR_CODE('text')
  588. kDataBrowserDateTimeType = FOUR_CHAR_CODE('date')
  589. kDataBrowserSliderType = FOUR_CHAR_CODE('sldr')
  590. kDataBrowserCheckboxType = FOUR_CHAR_CODE('chbx')
  591. kDataBrowserProgressBarType = FOUR_CHAR_CODE('prog')
  592. kDataBrowserRelevanceRankType = FOUR_CHAR_CODE('rank')
  593. kDataBrowserPopupMenuType = FOUR_CHAR_CODE('menu')
  594. kDataBrowserIconAndTextType = FOUR_CHAR_CODE('ticn')
  595. kDataBrowserPropertyEnclosingPart = 0x0L
  596. kDataBrowserPropertyContentPart = FOUR_CHAR_CODE('----')
  597. kDataBrowserPropertyDisclosurePart = FOUR_CHAR_CODE('disc')
  598. kDataBrowserPropertyTextPart = kDataBrowserTextType
  599. kDataBrowserPropertyIconPart = kDataBrowserIconType
  600. kDataBrowserPropertySliderPart = kDataBrowserSliderType
  601. kDataBrowserPropertyCheckboxPart = kDataBrowserCheckboxType
  602. kDataBrowserPropertyProgressBarPart = kDataBrowserProgressBarType
  603. kDataBrowserPropertyRelevanceRankPart = kDataBrowserRelevanceRankType
  604. kDataBrowserUniversalPropertyFlagsMask = 255
  605. kDataBrowserPropertyIsMutable = 1 << 0
  606. kDataBrowserDefaultPropertyFlags = 0 << 0
  607. kDataBrowserUniversalPropertyFlags = kDataBrowserUniversalPropertyFlagsMask
  608. kDataBrowserPropertyIsEditable = kDataBrowserPropertyIsMutable
  609. kDataBrowserPropertyFlagsOffset = 8
  610. kDataBrowserPropertyFlagsMask = 255 << kDataBrowserPropertyFlagsOffset
  611. kDataBrowserCheckboxTriState = 1 << kDataBrowserPropertyFlagsOffset
  612. kDataBrowserDateTimeRelative = 1 << kDataBrowserPropertyFlagsOffset
  613. kDataBrowserDateTimeDateOnly = 1 << kDataBrowserPropertyFlagsOffset + 1
  614. kDataBrowserDateTimeTimeOnly = 1 << kDataBrowserPropertyFlagsOffset + 2
  615. kDataBrowserDateTimeSecondsToo = 1 << kDataBrowserPropertyFlagsOffset + 3
  616. kDataBrowserSliderPlainThumb = kThemeThumbPlain << kDataBrowserPropertyFlagsOffset
  617. kDataBrowserSliderUpwardThumb = kThemeThumbUpward << kDataBrowserPropertyFlagsOffset
  618. kDataBrowserSliderDownwardThumb = kThemeThumbDownward << kDataBrowserPropertyFlagsOffset
  619. kDataBrowserDoNotTruncateText = 3 << kDataBrowserPropertyFlagsOffset
  620. kDataBrowserTruncateTextAtEnd = 2 << kDataBrowserPropertyFlagsOffset
  621. kDataBrowserTruncateTextMiddle = 0 << kDataBrowserPropertyFlagsOffset
  622. kDataBrowserTruncateTextAtStart = 1 << kDataBrowserPropertyFlagsOffset
  623. kDataBrowserPropertyModificationFlags = kDataBrowserPropertyFlagsMask
  624. kDataBrowserRelativeDateTime = kDataBrowserDateTimeRelative
  625. kDataBrowserViewSpecificFlagsOffset = 16
  626. kDataBrowserViewSpecificFlagsMask = 255 << kDataBrowserViewSpecificFlagsOffset
  627. kDataBrowserViewSpecificPropertyFlags = kDataBrowserViewSpecificFlagsMask
  628. kDataBrowserClientPropertyFlagsOffset = 24
  629. kDataBrowserLatestCallbacks = 0
  630. kDataBrowserContentHit = 1
  631. kDataBrowserNothingHit = 0
  632. kDataBrowserStopTracking = -1
  633. kDataBrowserLatestCustomCallbacks = 0
  634. kDataBrowserTableViewMinimalHilite = 0
  635. kDataBrowserTableViewFillHilite = 1
  636. kDataBrowserTableViewSelectionColumn = 1 << kDataBrowserViewSpecificFlagsOffset
  637. kDataBrowserTableViewLastColumn = -1
  638. kDataBrowserListViewMovableColumn = 1 << kDataBrowserViewSpecificFlagsOffset + 1
  639. kDataBrowserListViewSortableColumn = 1 << kDataBrowserViewSpecificFlagsOffset + 2
  640. kDataBrowserListViewSelectionColumn = kDataBrowserTableViewSelectionColumn
  641. kDataBrowserListViewDefaultColumnFlags = kDataBrowserListViewMovableColumn + kDataBrowserListViewSortableColumn
  642. kDataBrowserListViewLatestHeaderDesc = 0
  643. kDataBrowserListViewAppendColumn = kDataBrowserTableViewLastColumn
  644. kControlEditUnicodeTextPostUpdateProcTag = FOUR_CHAR_CODE('upup')
  645. kControlEditUnicodeTextProc = 912
  646. kControlEditUnicodeTextPasswordProc = 914
  647. kControlKindEditUnicodeText = FOUR_CHAR_CODE('eutx')
  648. kControlCheckboxUncheckedValue = kControlCheckBoxUncheckedValue
  649. kControlCheckboxCheckedValue = kControlCheckBoxCheckedValue
  650. kControlCheckboxMixedValue = kControlCheckBoxMixedValue
  651. inLabel = kControlLabelPart
  652. inMenu = kControlMenuPart
  653. inTriangle = kControlTrianglePart
  654. inButton = kControlButtonPart
  655. inCheckBox = kControlCheckBoxPart
  656. inUpButton = kControlUpButtonPart
  657. inDownButton = kControlDownButtonPart
  658. inPageUp = kControlPageUpPart
  659. inPageDown = kControlPageDownPart
  660. kInLabelControlPart = kControlLabelPart
  661. kInMenuControlPart = kControlMenuPart
  662. kInTriangleControlPart = kControlTrianglePart
  663. kInButtonControlPart = kControlButtonPart
  664. kInCheckBoxControlPart = kControlCheckBoxPart
  665. kInUpButtonControlPart = kControlUpButtonPart
  666. kInDownButtonControlPart = kControlDownButtonPart
  667. kInPageUpControlPart = kControlPageUpPart
  668. kInPageDownControlPart = kControlPageDownPart
  669.