Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Using viewport widget

To create an image widget, an application would do the following:

  1. Create the content widget that will use the viewport as a decorator.
  2. Call ISHELL_CreateInstance() with a ClassID of AEECLSID_CViewportWidget to retrieve a reference counted instance of the viewport widget.
  3. Call IDecorator_SetWidget() to attach the viewport as a decorator of the widget providing the content to be viewed.

The viewport widget can be used to allow an XY container to be scrollable. A XY container does not know how to handle the scroll events, and can be decorated with a viewport widget that is decorated with scrollbars.