Carbon


Theme Sound Constants

Header: Appearance.h

enum {
    kThemeSoundNone = 0,
    kThemeSoundMenuOpen = 'mnuo',
    kThemeSoundMenuClose = 'mnuc',
    kThemeSoundMenuItemHilite = 'mnui',
    kThemeSoundMenuItemRelease = 'mnus',
    kThemeSoundWindowClosePress = 'wclp',
    kThemeSoundWindowCloseEnter = 'wcle',
    kThemeSoundWindowCloseExit = 'wclx',
    kThemeSoundWindowCloseRelease = 'wclr',
    kThemeSoundWindowZoomPress = 'wzmp',
    kThemeSoundWindowZoomEnter = 'wzme',
    kThemeSoundWindowZoomExit = 'wzmx',
    kThemeSoundWindowZoomRelease = 'wzmr',
    kThemeSoundWindowCollapsePress = 'wcop',
    kThemeSoundWindowCollapseEnter = 'wcoe',
    kThemeSoundWindowCollapseExit = 'wcox',
    kThemeSoundWindowCollapseRelease = 'wcor',
    kThemeSoundWindowDragBoundary = 'wdbd',
    kThemeSoundUtilWinClosePress = 'uclp',
    kThemeSoundUtilWinCloseEnter = 'ucle',
    kThemeSoundUtilWinCloseExit = 'uclx',
    kThemeSoundUtilWinCloseRelease = 'uclr',
    kThemeSoundUtilWinZoomPress = 'uzmp',
    kThemeSoundUtilWinZoomEnter = 'uzme',
    kThemeSoundUtilWinZoomExit = 'uzmx',
    kThemeSoundUtilWinZoomRelease = 'uzmr',
    kThemeSoundUtilWinCollapsePress = 'ucop',
    kThemeSoundUtilWinCollapseEnter = 'ucoe',
    kThemeSoundUtilWinCollapseExit = 'ucox',
    kThemeSoundUtilWinCollapseRelease = 'ucor',
    kThemeSoundUtilWinDragBoundary = 'udbd',
    kThemeSoundWindowOpen = 'wopn',
    kThemeSoundWindowClose = 'wcls',
    kThemeSoundWindowZoomIn = 'wzmi',
    kThemeSoundWindowZoomOut = 'wzmo',
    kThemeSoundWindowCollapseUp = 'wcol',
    kThemeSoundWindowCollapseDown = 'wexp',
    kThemeSoundWindowActivate = 'wact',
    kThemeSoundUtilWindowOpen = 'uopn',
    kThemeSoundUtilWindowClose = 'ucls',
    kThemeSoundUtilWindowZoomIn = 'uzmi',
    kThemeSoundUtilWindowZoomOut = 'uzmo',
    kThemeSoundUtilWindowCollapseUp = 'ucol',
    kThemeSoundUtilWindowCollapseDown = 'uexp',
    kThemeSoundUtilWindowActivate = 'uact',
    kThemeSoundDialogOpen = 'dopn',
    kThemeSoundDialogClose = 'dlgc',
    kThemeSoundAlertOpen = 'aopn',
    kThemeSoundAlertClose = 'altc',
    kThemeSoundPopupWindowOpen = 'pwop',
    kThemeSoundPopupWindowClose = 'pwcl',
    kThemeSoundButtonPress = 'btnp',
    kThemeSoundButtonEnter = 'btne',
    kThemeSoundButtonExit = 'btnx',
    kThemeSoundButtonRelease = 'btnr',
    kThemeSoundDefaultButtonPress = 'dbtp',
    kThemeSoundDefaultButtonEnter = 'dbte',
    kThemeSoundDefaultButtonExit = 'dbtx',
    kThemeSoundDefaultButtonRelease = 'dbtr',
    kThemeSoundCancelButtonPress = 'cbtp',
    kThemeSoundCancelButtonEnter = 'cbte',
    kThemeSoundCancelButtonExit = 'cbtx',
    kThemeSoundCancelButtonRelease = 'cbtr',
    kThemeSoundCheckboxPress = 'chkp',
    kThemeSoundCheckboxEnter = 'chke',
    kThemeSoundCheckboxExit = 'chkx',
    kThemeSoundCheckboxRelease = 'chkr',
    kThemeSoundRadioPress = 'radp',
    kThemeSoundRadioEnter = 'rade',
    kThemeSoundRadioExit = 'radx',
    kThemeSoundRadioRelease = 'radr',
    kThemeSoundScrollArrowPress = 'sbap',
    kThemeSoundScrollArrowEnter = 'sbae',
    kThemeSoundScrollArrowExit = 'sbax',
    kThemeSoundScrollArrowRelease = 'sbar',
    kThemeSoundScrollEndOfTrack = 'sbte',
    kThemeSoundScrollTrackPress = 'sbtp',
    kThemeSoundSliderEndOfTrack = 'slte',
    kThemeSoundSliderTrackPress = 'sltp',
    kThemeSoundBalloonOpen = 'blno',
    kThemeSoundBalloonClose = 'blnc',
    kThemeSoundBevelPress = 'bevp',
    kThemeSoundBevelEnter = 'beve',
    kThemeSoundBevelExit = 'bevx',
    kThemeSoundBevelRelease = 'bevr',
    kThemeSoundLittleArrowUpPress = 'laup',
    kThemeSoundLittleArrowDnPress = 'ladp'
};

Constant descriptions

kThemeSoundNone

Specifies that no sound is played.

kThemeSoundMenuOpen

Identifies a sound to be played when the user opens a menu.

kThemeSoundMenuClose

Identifies a sound to be played when the user closes a menu.

kThemeSoundMenuItemHilite

Identifies a sound to be played when the user highlights a menu item.

kThemeSoundMenuItemRelease

Identifies a sound to be played when the user selects a menu item.

kThemeSoundWindowClosePress

Identifies a sound to be played when the user presses the mouse button while the cursor is over a window’s close box.

kThemeSoundWindowCloseEnter

Identifies a sound to be played when the user moves the cursor over a window’s close box after having moved the cursor away from the close box without releasing the mouse button.

kThemeSoundWindowCloseExit

Identifies a sound to be played when the user moves the cursor away from a position over a window’s close box, while the mouse button remains pressed.

kThemeSoundWindowCloseRelease

Identifies a sound to be played when the user releases the mouse button while the cursor is over a window’s close box.

kThemeSoundWindowZoomPress

Identifies a sound to be played when the user presses the mouse button while the cursor is over a window’s zoom box.

kThemeSoundWindowZoomEnter

Identifies a sound to be played when the user moves the cursor over a window’s zoom box after having moved the cursor away from the zoom box without releasing the mouse button.

kThemeSoundWindowZoomExit

Identifies a sound to be played when the user moves the cursor away from a position over a window’s zoom box, while the mouse button remains pressed.

kThemeSoundWindowZoomRelease

Identifies a sound to be played when the user releases the mouse button while the cursor is over a window’s zoom box.

kThemeSoundWindowCollapsePress

Identifies a sound to be played when the user presses the mouse button while the cursor is over a window’s collapse box.

kThemeSoundWindowCollapseEnter

Identifies a sound to be played when the user moves the cursor over a window’s collapse box after having moved the cursor away from the collapse box without releasing the mouse button.

kThemeSoundWindowCollapseExit

Identifies a sound to be played when the user moves the cursor away from a position over a window’s collapse box, while the mouse button remains pressed.

kThemeSoundWindowCollapseRelease

Identifies a sound to be played when the user releases the mouse button while the cursor is over a window’s collapse box.

kThemeSoundWindowDragBoundary

Identifies a sound to be played when the user drags a window to the edge of the area where it can be dragged. Note: This functionality is not available under Appearance Manager 1.1 or prior versions of Appearance.

kThemeSoundUtilWinClosePress

Identifies a sound to be played when the user presses the mouse button while the cursor is over a utility (floating) window’s close box.

kThemeSoundUtilWinCloseEnter

Identifies a sound to be played when the user moves the cursor over a utility (floating) window’s close box after having moved the cursor away from the close box without releasing the mouse button.

kThemeSoundUtilWinCloseExit

Identifies a sound to be played when the user moves the cursor away from a position over a utility (floating) window’s close box, while the mouse button remains pressed.

kThemeSoundUtilWinCloseRelease

Identifies a sound to be played when the user releases the mouse button while the cursor is over a utility (floating) window’s close box.

kThemeSoundUtilWinZoomPress

Identifies a sound to be played when the user presses the mouse button while the cursor is over a utility (floating) window’s zoom box.

kThemeSoundUtilWinZoomEnter

Identifies a sound to be played when the user moves the cursor over a utility (floating) window’s zoom box after having moved the cursor away from the zoom box without releasing the mouse button.

kThemeSoundUtilWinZoomExit

Identifies a sound to be played when the user moves the cursor away from a position over a utility (floating) window’s zoom box, while the mouse button remains pressed.

kThemeSoundUtilWinZoomRelease

Identifies a sound to be played when the user releases the mouse button while the cursor is over a utility (floating) window’s zoom box.

kThemeSoundUtilWinCollapsePress

Identifies a sound to be played when the user presses the mouse button while the cursor is over a utility (floating) window’s collapse box.

kThemeSoundUtilWinCollapseEnter

Identifies a sound to be played when the user moves the cursor over a utility (floating) window’s collapse box after having moved the cursor away from the collapse box without releasing the mouse button.

kThemeSoundUtilWinCollapseExit

Identifies a sound to be played when the user moves the cursor away from a position over a utility (floating) window’s collapse box, while the mouse button remains pressed.

kThemeSoundUtilWinCollapseRelease

Identifies a sound to be played when the user releases the mouse button while the cursor is over a utility (floating) window’s collapse box.

kThemeSoundUtilWinDragBoundary

Identifies a sound to be played when the user drags a utility (floating) window to the edge of the area where it can be dragged. Note: This functionality is not available under Appearance Manager 1.1 or prior versions of Appearance.

kThemeSoundWindowOpen

Identifies a sound to be played when the user opens a window.

kThemeSoundWindowClose

Identifies a sound to be played when the user closes a window.

kThemeSoundWindowZoomIn

Identifies a sound to be played when the user zooms a window in, that is, to the user state.

kThemeSoundWindowZoomOut

Identifies a sound to be played when the user zooms a window out, that is, to the standard state.

kThemeSoundWindowCollapseUp

Identifies a sound to be played when the user collapses a window.

kThemeSoundWindowCollapseDown

Identifies a sound to be played when the user uncollapses a window.

kThemeSoundWindowActivate

Identifies a sound to be played when the user presses the mouse button while the cursor is over an inactive window, thus activating it.

kThemeSoundUtilWindowOpen

Identifies a sound to be played when the user opens a utility (floating) window.

kThemeSoundUtilWindowClose

Identifies a sound to be played when the user closes a utility (floating) window.

kThemeSoundUtilWindowZoomIn

Identifies a sound to be played when the user zooms a utility (floating) window in, that is, to the user state.

kThemeSoundUtilWindowZoomOut

Identifies a sound to be played when the user zooms a utility (floating) window out, that is, to the standard state.

kThemeSoundUtilWindowCollapseUp

Identifies a sound to be played when the user collapses a utility (floating) window.

kThemeSoundUtilWindowCollapseDown

Identifies a sound to be played when the user uncollapses a utility (floating) window.

kThemeSoundUtilWindowActivate

Identifies a sound to be played when the user presses the mouse button while the cursor is over an inactive utility (floating) window, thus activating it.

kThemeSoundDialogOpen

Identifies a sound to be played when a dialog box opens.

Your application can pass constants of type ThemeSoundKind to the function PlayThemeSound to play a theme-specific sound for an interface object when it changes state. Each sound plays asynchronously until complete, then stops automatically. The ThemeSoundKind constants are available with Appearance Manager 1.1 and later.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)