BeginRelinquishFocus
TheBeginRelinquishFocusmethod should return a Boolean value that indicates whether the current owner of the specified exclusive focus is willing to give up ownership of the focus.
ODBoolean BeginRelinquishFocus ( in ODTypeToken focus, in ODFrame requestingFrame);
focus- A tokenized string representing the focus type to be relinquished, expressed as a 32-bit value.
requestingFrame- A reference to the frame requesting ownership of the focus.
- return value
kODTrueif the current owner of the specified exclusive focus is willing to give up ownership of the focus, otherwisekODFalse.DISCUSSION
Thefocusparameter must be the tokenized form of one of the focus constants (kODClipboardFocus,kODKeyFocus,kODMenuFocus,kODModalFocus,kODMouseFocus,kODScrollingFocus, orkODSelectionFocus) or the tokenized form of a part-specific focus type. You can call the session object'sTokenizemethod to obtain a token corresponding to one of these constants.OpenDoc calls this method, which in turns calls the
BeginRelinquishFocusmethod of the part that owns the focus. If the part'sBeginRelinquishFocusmethod returnskODTrue(the typical case), this method should returnkODTrue; if the part'sBeginRelinquishFocusmethod returnskODFalse, this method should returnkODFalse.OVERRIDING
If you subclassODFocusModule, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.SEE ALSO
TheODFocusTypetype (page 889).
TheODTypeTokentype (page 877).
TheODFocusModule::AbortRelinquishFocusmethod (page 267).
TheODFocusModule::CommitRelinquishFocusmethod (page 270).
TheODPart::BeginRelinquishFocusmethod (page 482).
TheODSession::Tokenizemethod (page 622).