View Related Methods

A program or Workplace Shell object would call the following methods to get information about a view of an object. A Workplace Shell object would override these methods to define the characteristics of its open views.

┌──────────────────────────────┬──────────────────────────────┐
│Method Name                   │Description                   │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryButtonAppearance       │Returns which button          │
│                              │(minimize, hide, or the system│
│                              │default) appears in the frame │
│                              │control for an open view of   │
│                              │the object.                   │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryConcurrentView         │Returns an indication of      │
│                              │whether or not this object    │
│                              │allows multiple concurrent    │
│                              │views to be opened.           │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryDefaultView            │Returns the view of the object│
│                              │that is opened when the       │
│                              │default view is opened.       │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryMinWindow              │Returns the behavior of the   │
│                              │object when it is minimized   │
│                              │(Minimize window to Desktop,  │
│                              │Minimize window to viewer, or │
│                              │use the system default        │
│                              │behavior).                    │
├──────────────────────────────┼──────────────────────────────┤
│wpclsQueryButtonAppearance    │Returns the class default for │
│                              │which button (minimize, hide, │
│                              │or the system default) appears│
│                              │in the frame control for an   │
│                              │open view of any object of    │
│                              │this class.                   │
├──────────────────────────────┼──────────────────────────────┤
│wpclsQueryDefaultView         │Returns the class default of  │
│                              │which view of the object is   │
│                              │opened when the default view  │
│                              │is opened. The default view is│
│                              │associated with every object  │
│                              │of the class. The default view│
│                              │can be changed for an         │
│                              │individual object if:         │
│                              │                              │
│                              │o The object overrides        │
│                              │  wpQueryDefaultView.         │
│                              │o The wpSetDefaultView method │
│                              │  is called.                  │
│                              │o The wpSetup method is called│
│                              │  with the DEFAULTVIEW        │
│                              │  keyword.                    │
├──────────────────────────────┼──────────────────────────────┤
│wpclsQuerySettingsPageSize    │Returns the size of the       │
│                              │Settings notebook pages       │
│                              │displayed for the object      │
│                              │class.                        │
└──────────────────────────────┴──────────────────────────────┘

A program or Workplace Shell object would call the following methods to set the characteristics for the open views of the object. These methods are not normally overridden.

┌──────────────────────────────┬──────────────────────────────┐
│Method Name                   │Description                   │
├──────────────────────────────┼──────────────────────────────┤
│wpSetButtonAppearance         │Defines which button          │
│                              │(minimize, hide, or the system│
│                              │default) appears in the frame │
│                              │control for an open view of   │
│                              │the object. This value is     │
│                              │normally returned by          │
│                              │wpQueryButtonAppearance.      │
├──────────────────────────────┼──────────────────────────────┤
│wpSetConcurrentView           │Defines whether or not the    │
│                              │object allows multiple        │
│                              │concurrent views to be opened.│
│                              │This value is normally        │
│                              │returned by                   │
│                              │wpQueryConcurrentView.        │
├──────────────────────────────┼──────────────────────────────┤
│wpSetDefaultView              │Defines which view of the     │
│                              │object is opened when the     │
│                              │default view is opened. This  │
│                              │value is normally returned by │
│                              │wpQueryDefaultView.           │
├──────────────────────────────┼──────────────────────────────┤
│wpSetMinWindow                │Defines the behavior of the   │
│                              │object when it is minimized   │
│                              │(Minimize window to Desktop,  │
│                              │Minimize window to viewer, or │
│                              │use the system default        │
│                              │behavior). This value is      │
│                              │normally returned by          │
│                              │wpQueryMinWindow.             │
├──────────────────────────────┼──────────────────────────────┤
│wpclsSetSettingsPageSize      │Sets the size of the Settings │
│                              │notebook pages displayed for  │
│                              │the object class.             │
└──────────────────────────────┴──────────────────────────────┘


[Back: Shadow Related Methods]
[Next: Using Set/Query Methods]