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