RevealFrame
TheRevealFramemethod should make the specified embedded frame visible by scrolling it into view.
ODBoolean RevealFrame (in ODFrame embeddedFrame, in ODShape revealShape);
embeddedFrame- A reference to an embedded frame of this part.
revealShape- A reference to a shape object, expressed in frame coordinates, that indicates the portion of the frame to be revealed.
- return value
kODTrueif this part was able to reveal the frame, otherwisekODFalse.DISCUSSION
An embedded part calls this part'sRevealFramemethod when it needs to become visible, such as in conjunction with a keyboard event that requires an undisplayed area of a window to scroll into view.Your part's
RevealFramemethod should scroll one of your part's display frames, if necessary, to make the specified embedded frame visible. If your part has no visible display frames, it should ask its containing part to reveal one of them. If your part has no display frames, or if your part's containing frame cannot reveal the display frame, your method should open a frame in a new window.OVERRIDING
When you subclassODPart, you can override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely. This method needs to be implemented only by container parts.EXCEPTIONS
kODErrCannotEmbed- This part does not support embedding.
kODErrInvalidFrame- The specified frame is not an embedded frame of this part.
SEE ALSO
TheODFrame::AcquireContainingFramemethod (page 301).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Revealing the Source of a Link" on page 392 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help