GenView: 5.1 The GenViewControl: GenViewControl Instance Data

Up: GEOS SDK TechDocs | Up | Prev: 5 The GenViewControl | Next: 5.2 Notification Received

In addition to the normal instance data of GenControlClass , GenViewControlClass has four other fields. These are shown in GenViewControl Instance Data along with their default values.

Code Display 9-7 GenViewControl Instance Data

/* The GenViewControl has four instance fields in addition to those inherited
 * from GenControlClass. You may wish to set these to determine the controller's
 * initial configuration, but typically you will not need to. */
	/* Constants used for scaling boundaries */
#define DEFAULT_ZOOM_MINIMUM				 25
#define DEFAULT_ZOOM_MAZIMUM				200
	/* GVCI_minZoom determines the minimum percentage zoom allowed. */
	/* GVCI_maxZoom indicates the maximum zoom percentage allowed. */
	/* GVCI_scale indicates the current view scale factor setting. */
	/* GVCI_attrs indicates which attributes the controller should
	 * implement on startup. */
    @instance word			GVCI_minZoom =		DEFAULT_ZOOM_MINIMUM;
    @instance word			GVCI_maxZoom =		DEFAULT_ZOOM_MAXIMUM;
    @instance word			GVCI_scale = 		100;
    @instance GenViewControlAttrs GVCI_attrs =						(GVCA_SHOW_HORIZONTAL |
						 GVCA_SHOW_VERTICAL |
						 GVCA_APPLY_TO_ALL);
	/* Possible GenViewControlAttrs flags:
	 *	GVCA_ADJUST_ASPECT_RATIO				GVCA_APPLY_TO_ALL
	 *	GVCA_SHOW_HORIZONTAL				GVCA_SHOW_VERTICAL */
    @default GI_attrs = (@default | GA_KBD_SEARCH_PATH);
				/* This adds the view controller to the default
				 * keyboard accelerator search path. */

Up: GEOS SDK TechDocs | Up | Prev: 5 The GenViewControl | Next: 5.2 Notification Received