![]() |
Mac OS 8.5 Static Text Control Data Tag Constant |
Header: ControlDefinitions.h |
enum { kControlStaticTextTruncTag = ''trun'' };
Gets or sets how text is truncated at the end of a line for a static text control.
Data type retrieved or set: TruncCode; the value truncEnd indicates that characters are truncated off the end of the string; the value truncMiddle indicates that characters are truncated from the middle of the string. Default is a value of -1, which indicates that no truncation occurs and the text is instead wrapped.
The Mac OS 8.5 Control Manager defines this new control data tag constant. This constant is passed in the inTagName parameters of the functions SetControlData and GetControlData to specify the piece of data in a control that you wish to set or get. You can also pass this constant in the inTagName parameter of the function GetControlDataSize if you wish to determine the size of variable-length control data. This constant can also be used by custom control definition functions that return the feature bit kControlSupportsDataAccess in response to a kControlMsgGetFeatures message.
The data that your application gets or sets can be of various types. The description here shows the data type for the information that you can set in the inData parameter to the SetControlData function and that you can get in the inBuffer parameter to the GetControlData function.
© 2000 Apple Computer, Inc. (Last Updated 5/8/2000)