Apple PowerBook 520 Technical Information Page 104

  • Download
  • Add to my manuals
  • Print
  • Page
    / 144
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 103
CHAPTER 5
Software
90 Control Strip Module Reference
svAllSmallData 0x0000FF00 load small 16-by-16-pixel icons ('ics#',
'ics4', 'ics8')
svAllMiniData 0x00FF0000 load mini 12-by-12-pixel icons ('icm#',
'icm4', 'icm8')
These values may be OR-ed together to load combinations of icon sizes.
SBGetDetachIconSuite returns an appropriate error code if it’s unsuccessful,
or 0 if if was able to load the icon suite. Note that if none of the icons comprising
the icon suite could be found, the call returns the error resNotFound.
IMPORTANT
You should call SBGetDetachIconSuite only when the module’s
resource file is open, which is typically the case during a module’s
initialization call.
SBTrackpopupMenu 5
You can use the SBTrackpopupMenu routine to manage a pop-up menu.
pascal short SBTrackpopupMenu(const Rect *moduleRect,
MenuHandle theMenu);
The SBTrackpopupMenu routine handles setting up and displaying a pop-up menu
associated with a module. The module should pass a pointer to its display rectangle and
a handle to the menu to use. The menu will be displayed just above the module’s
display rectangle, allowing the user to view the current configuration or to change the
settings. SBTrackpopupMenu returns which menu item was selected, or 0 if no item
was selected because the user moved the cursor outside the menu’s bounds.
IMPORTANT
Menus are displayed in the control strip’s font, so don’t use the
CheckItem() routine to mark menu items, because a checkmark is
supported only in the system font. Use the SetItemMark() routine
instead and pass it a bullet (•).
SBTrackSlider 5
You can use the SBTrackSlider routine to display and set an arbitrary parameter.
pascal short SBTrackSlider(const Rect *moduleRect,
short ticksOnSlider,
short initialValue);
Page view 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 143 144

Comments to this Manuals

No comments