Apple PowerBook 520 Technical Information Page 105

  • Download
  • Add to my manuals
  • Print
  • Page
    / 144
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 104
CHAPTER 5
Software
Control Strip Module Reference 91
The SBTrackSlider routine displays an unlabeled slider above the module’s display
rectangle. You can use the slider for displaying and setting the state of an arbitrary
parameter. The parameter ModuleRect contains a pointer to the module’s display
rectangle; ticksOnSlider is the upper bounds of the value returned by the slider; and
initialValue is the starting position (0 to ticksOnSlider–1). When the user
releases the mouse button, SBTrackSlider returns the final position.
SBShowHelpString 5
You can use the SBShowHelpString routine to display a help balloon.
pascal OSErr SBShowHelpString(const Rect *moduleRect,
StringPtr helpString);
The SBShowHelpString routine displays a module’s help balloon. The module passes
a pointer to its display rectangle and a pointer to a Pascal string, and the routine displays
the balloon if possible. If the help string has a length of 0 or the Help Manager is unable
to display a balloon, an error result is returned. If SBShowHelpString successfully
displays the help balloon, it returns a result of 0.
SBGetBarGraphWidth 5
You can use the SBGetBarGraphWidth routine to find out the how wide a bar graph
drawn by SBDrawBarGraph (described next) will be so that a module can calculate its
display width.
pascal short SBGetBarGraphWidth(short barCount);
The SBGetBarGraphWidth routine returns the width of a bar graph containing
barCount segments. If barCount has a value less than 0, the SBGetBarGraphWidth
routine returns a width of 0.
SBDrawBarGraph 5
You can use the SBDrawBarGraph routine to draw a bar graph.
pascal void SBDrawBarGraph(short level, short barCount,
short direction,
Point barGraphTopLeft);
Page view 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 143 144

Comments to this Manuals

No comments