Important: The information in this document is obsolete and should not be used for new development.
HMBalloonRect
To get information about the size of a help balloon before the Help Manager displays it, you can use theHMBalloonRect
function.
FUNCTION HMBalloonRect (aHelpMsg: HMMessageRecord; VAR coolRect: Rect): OSErr;
aHelpMsg
- The help message for the help balloon.
coolRect
- The coordinates of the rectangle that encloses the help message. The upper-left corner of the rectangle has the coordinates (0,0).
DESCRIPTION
TheHMBalloonRect
function calculates the coordinates that the Help Manager uses for a particular balloon, permitting you to specify the help message for a help balloon and then obtaining the size (but not the position) of the rectangle used for the balloon. Note that theHMBalloonRect
function does not display the help balloon.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theHMBalloonRect
function are
Trap macro Selector _Pack14 $040E RESULT CODES
noErr 0 No error paramErr -50 Error in parameter list memFullErr -108 Not enough room in heap zone SEE ALSO
TheaHelpMsg
parameter is of data typeHMMessageRecord
, which is described in "Providing Help Balloons for Dynamic Windows" beginning on page 3-69.