Carbon


Bevel Button Text Placement Constants

Header: ControlDefinitions.h

enum ControlButtonTextPlacement {
    kControlBevelButtonPlaceSysDirection = -1,
    kControlBevelButtonPlaceNormally = ,
    kControlBevelButtonPlaceToRightOfGraphic = 1,
    kControlBevelButtonPlaceToLeftOfGraphic = 2,
    kControlBevelButtonPlaceBelowGraphic = 3,
    kControlBevelButtonPlaceAboveGraphic = 4
};

Constant descriptions

kControlBevelButtonPlaceSysDirection

Bevel button text is placed according to the system default script direction.

kControlBevelButtonPlaceNormally

Bevel button text is centered.

kControlBevelButtonPlaceToRightOfGraphic

Bevel button text is placed to the right of the graphic.

kControlBevelButtonPlaceToLeftOfGraphic

Bevel button text is placed to the left of the graphic.

kControlBevelButtonPlaceBelowGraphic

Bevel button text is placed below the graphic.

kControlBevelButtonPlaceAboveGraphic

Bevel button text is placed above the graphic.

You can use the ControlButtonTextPlacement constants to specify the placement of text in a bevel button, in relation to an icon or picture. These constants are passed in the inData parameter of SetControlData and returned by GetControlData. They can be used in conjunction with bevel button text and graphic alignment constants to create, for example, a button where the graphic and text are left justified with the text below the graphic.

VERSION NOTES

The ControlButtonTextPlacement constants are available with Appearance Manager 1.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)