Apple PowerBook 520 Technical Information Page 107

  • Download
  • Add to my manuals
  • Print
  • Page
    / 144
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 106
CHAPTER 5
Software
Control Strip Module Reference 93
SBModalDialogInContext 5
You can use the SBModalDialogInContext in place of ModalDialog routine to keep
background applications from getting run while your modal dialog window is visible.
pascal void SBModalDialogInContext(ModalFilterProcPtr filterProc,
short *itemHit);
The SBModalDialogInContext routine is a special version of ModalDialog that
doesn’t allow background applications to get time while a modal dialog window is
visible. You should use SBModalDialogInContext when you don’t want any context
switching to occur.
Gestalt Selectors 5
The control strip software installs two Gestalt selectors to return information to the
outside world. One selector returns software attributes, and the other returns the
software version.
gestaltControlStripAttr 5
The selector gestaltControlStripAttr ('sdev') returns 32 bits describing the
software attributes of this version of the control strip. Currently only the following bit
is defined:
gestaltControlStripExists 0 1=control strip is installed
gestaltControlStripVersion 5
The selector gestaltControlStripVersion ('sdvr') returns the version of control
strip software that is installed. The format of the returned version is the same as that of
the numeric part of a 'vers' resource, that is:
Bits 31-24 Major part of the version, in BCD
Bits 23-20 Minor part of the version, in BCD
Bits 19-16 Bug release version, in BCD
Bits 15- 8 Release stage:
$80=final
$60=beta
$40=alpha
$20=development
Bits 7- 0 Revision level of nonreleased version, in binary
Thus, if the software version were 1.5.3b25, the gestaltControlStripVersion
selector would return $01536019.
Page view 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 143 144

Comments to this Manuals

No comments