ChangeViewType
TheChangeViewTypemethod changes the specified view type of this frame.
void ChangeViewType (in ODTypeToken viewType);
viewType- A tokenized string representing the view type to assign to this frame.
DISCUSSION
TheviewTypeparameter must be the tokenized form of one of the view-type constants (kODViewAsFrame,kODViewAsSmallIcon,kODViewAsLargeIcon, orkODViewAsThumbnail). You can call the session object'sTokenizemethod to obtain a token corresponding to one of these constants.Your part calls its embedded frame's
ChangeViewTypemethod to request that it use a new view type. This method in turn calls theViewTypeChangedmethod of this frame's part to notify the part that its view type has changed. If the embedded part does not support the requested view type, it can pick a view type that it can support and then call its frame'sSetViewTypemethod to update the view type in the frame.EXCEPTIONS
kODErrIllegalNullTokenInput- The
viewTypeparameter is null.SEE ALSO
TheODTypeTokentype (page 877).
TheODFrame::GetViewTypemethod (page 324).
TheODFrame::SetViewTypemethod (page 339).
TheODPart::ViewTypeChangedmethod (page 551).
TheODSession::Tokenizemethod (page 622).
Listing 2-20 on page 72 in OpenDoc Cookbook.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help