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