COMMENT @----------------------------------------------------------------------

	Copyright (c) GeoWorks 1989 -- All Rights Reserved

PROJECT:	PC GEOS
FILE:		Objects/gPageCC.def

DECLARER:	UI

DESCRIPTION:
	This file defines GenPageControlClass

	$Id: gPageCC.def,v 1.1 97/04/04 14:19:25 newdeal Exp $

------------------------------------------------------------------------------@

SetDef	__PAGECC

StartLibrary	ui

;
; Message(s) sent out:
; MSG_META_PAGED_OBJECT_GOTO_PAGE
; MSG_META_PAGED_OBJECT_NEXT_PAGE
; MSG_META_PAGED_OBJECT_PREVIOUS_PAGE
;
; Notification type(s) responded to:
; MANUFACTURER_ID_GEOWORKS.GWNT_PAGE_STATE_CHANGE: NotifySelectStateChange
;
; GenApplication GCN lists to be placed on:
;	GAGCNLT_SELF_LOAD_OPTIONS

GenPageControlClass	class	GenControlClass

;-----------------------------------------------------------------------------
;		Methods
;-----------------------------------------------------------------------------

;MSG_META_PAGED_OBJECT_GOTO_PAGE	message MetaUIMessages
;MSG_META_PAGED_OBJECT_NEXT_PAGE	message MetaUIMessages
;MSG_META_PAGED_OBJECT_PREVIOUS_PAGE	message MetaUIMessages
;
; see documentation in ui.def
;

;-----------------------------------------------------------------------------
;		Internal methods
;-----------------------------------------------------------------------------

MSG_PC_GOTO_PAGE	message
MSG_PC_NEXT_PAGE	message
MSG_PC_PREVIOUS_PAGE	message
MSG_PC_FIRST_PAGE	message
MSG_PC_LAST_PAGE	message

;-----------------------------------------------------------------------------
;		Hints
;-----------------------------------------------------------------------------

;-----------------------------------------------------------------------------
;		Constants & Structures
;-----------------------------------------------------------------------------

; Features flags (used with ATTR_GEN_CONTROL_REQUIRE_UI and
; ATTR_GEN_CONTROL_PROHIBIT_UI)

GPCFeatures	record
    GPCF_FIRST_PAGE:1
    GPCF_LAST_PAGE:1
    GPCF_GOTO_PAGE:1
    GPCF_NEXT_PAGE:1
    GPCF_PREVIOUS_PAGE:1
GPCFeatures	end

; Toolbox features flags (used with ATTR_GEN_CONTROL_REQUIRE_TOOLBOX_UI and
; ATTR_GEN_CONTROL_PROHIBIT_TOOLBOX_UI)

GPCToolboxFeatures	record
    GPCTF_FIRST_PAGE:1
    GPCTF_LAST_PAGE:1
    GPCTF_PREVIOUS_PAGE:1
    GPCTF_GOTO_PAGE:1
    GPCTF_NEXT_PAGE:1
GPCToolboxFeatures	end






GPC_DEFAULT_FEATURES equ mask GPCF_GOTO_PAGE or mask GPCF_NEXT_PAGE \
				or mask GPCF_PREVIOUS_PAGE

GPC_DEFAULT_TOOLBOX_FEATURES equ mask GPCTF_GOTO_PAGE or mask GPCTF_NEXT_PAGE \
				or mask GPCTF_PREVIOUS_PAGE

; Notification structures

NotifyPageStateChange	struct
    NPSC_firstPage		word		;first page
    NPSC_lastPage		word		;last page
    NPSC_currentPage		word		;current page
NotifyPageStateChange	ends

;-----------------------------------------------------------------------------
;		Instance Data
;-----------------------------------------------------------------------------

TEMP_GEN_PAGE_CONTROL_PAGE_STATE	vardata	NotifyPageStateChange

GenPageControlClass	endc

EndLibrary	ui
