Carbon


Theme Track Press State Constants

Header: Appearance.h

enum {
    kThemeLeftOutsideArrowPressed = 1,
    kThemeLeftInsideArrowPressed = 2,
    kThemeLeftTrackPressed = 4,
    kThemeThumbPressed = 8,
    kThemeRightTrackPressed = 16,
    kThemeRightInsideArrowPressed = 32,
    kThemeRightOutsideArrowPressed = 64,
    kThemeTopOutsideArrowPressed = 1,
    kThemeTopInsideArrowPressed = 2,
    kThemeTopTrackPressed = 4,
    kThemeBottomTrackPressed = 16,
    kThemeBottomInsideArrowPressed = 32,
    kThemeBottomOutsideArrowPressed = 64
};

Constant descriptions

kThemeLeftOutsideArrowPressed

For a horizontal scroll bar containing a single pair of arrows, with one arrow at each end, indicates that the arrow on the left is selected.For a horizontal scroll bar containing a single pair of arrows, with both arrows on the right, this constant is undefined and should not be used.

kThemeLeftInsideArrowPressed

For a horizontal scroll bar containing a single pair of arrows, with one arrow at each end, this constant is undefined and should not be used.

For a horizontal scroll bar containing a single pair of arrows, with both arrows on the right, this constant is undefined and should not be used.

kThemeLeftTrackPressed

For a horizontal scroll bar or slider, indicates that the end of the track to the left of the scroll box or indicator is selected.

kThemeThumbPressed

Indicates that the scroll box or indicator is selected.

kThemeRightTrackPressed

For a horizontal scroll bar or slider, indicates that the end of the track to the right of the scroll box or indicator is selected.

kThemeRightInsideArrowPressed

For a horizontal scroll bar containing a single pair of arrows, with one arrow at each end, this constant is undefined and should not be used.

For a horizontal scroll bar containing a single pair of arrows, with both arrows on the right, indicates that the inner arrow at the right end of the scroll bar is selected.

kThemeRightOutsideArrowPressed

For a horizontal scroll bar containing a single pair of arrows, with one arrow at each end, indicates that the arrow on the right is selected.

For a horizontal scroll bar containing a single pair of arrows, with both arrows on the right, indicates that the outer arrow at the right end of the scroll bar is selected.

kThemeTopOutsideArrowPressed

For a vertical scroll bar containing a single pair of arrows, with one arrow at each end, indicates that the arrow on the top is selected.For a vertical scroll bar containing a single pair of arrows, with both arrows on the bottom, this constant is undefined and should not be used.

kThemeTopInsideArrowPressed

For a vertical scroll bar containing a single pair of arrows, with one arrow at each end, this constant is undefined and should not be used.For a vertical scroll bar containing a single pair of arrows, with both arrows on the bottom, this constant is undefined and should not be used.

kThemeTopTrackPressed

For a vertical scroll bar or slider, indicates that the end of the track above the scroll box or indicator is selected.

kThemeBottomTrackPressed

For a vertical scroll bar or slider, indicates that the end of the track beneath the scroll box or indicator is selected.

kThemeBottomInsideArrowPressed

For a vertical scroll bar containing a single pair of arrows, with one arrow at each end, this constant is undefined and should not be used.For a vertical scroll bar containing a single pair of arrows, with both arrows on the bottom, indicates that the inner arrow at the bottom end of the scroll bar is selected.

kThemeBottomOutsideArrowPressed

For a vertical scroll bar containing a single pair of arrows, with one arrow at each end, indicates that the arrow on the bottom is selected.For a vertical scroll bar containing a single pair of arrows, with both arrows on the bottom, indicates that the outer arrow at the bottom end of the scroll bar is selected.

You can use constants of type ThemeTrackPressState in structures of type ScrollBarTrackInfo and SliderTrackInfo to identify what is pressed in an active scroll bar or slider; the press state is ignored if the control is not active. The ThemeTrackPressState constants are available with Appearance Manager 1.1 and later.

Note that some constants are undefined when the corresponding arrows do not exist in the current visual appearance. Prior to using the ThemeTrackPressState constants, your application should call the function GetThemeScrollBarArrowStyle to obtain the type of scroll bar arrows currently being used.


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