Opening media documents

You can use a media stationery to create a media document for the Workspace. When you instantiate a media stationery:

  1. The stationery creates a TMediaModel and a default presenter state.
  2. The presenter state creates a TMediaPresenter.
  3. The TMediaPresenter gets the appropriate TPlayer and creates the presentation.

To create the presentation, TMediaPresenter consults the Media Registry server to get the media-specific display view and the appropriate control view. The registry returns an ordered list of views from which the presenter selects. The default behavior is for the presenter to select the first view in the list.

When you want a completely different customized layout of the view, you can override this behavior. To do this, derive a new presenter from TMediaPresenter and override its HandleCreateMainView, providing a different selection policy.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker