class XGForm

Declared in <XForm.h>

This is the 'form' class; this is an abstract class which provides the callbacks for managing a window.

The idea here is that a window is contructed out of a collection of self-contained views; these views are then controlled by the form belonging to that window. The forms themselves insert between the document and the window, and control the contents of the views in that window from the contents of the document.

How that works varies, depending on the view. A view can be rather promiscuous and actually get into the hands of the document database, though this is highly unusual. In most cases, the form mediates the communications between the document and the window, by reading the document database and entering the information into the window views.


Construction/Destruction

XGForm::XGForm
XGForm::~XGForm

Attach/Detach Semantics

XGForm::Attach
XGForm::Detach

Dispatch Mechanism

XGForm::DoDispatch


Construction/Destruction

XGForm::XGForm

Usage: void XGFont::SetFontSize(short f)

Form construction

XGForm::~XGForm

Usage: XGForm::~XGForm()

Delete me

Attach/Detach Semantics

XGForm::Attach

Usage: void Attach()

Increments the attach count for this form object

XGForm::Detach

Usage: void Detach()

Decrements the attach count, and disposes of this object when the count reaches zero.

Dispatch Mechanism

XGForm::DoDispatch

Usage: long XGForm::DoDispatch(XGWindow*w,long msg,long arg,void*parg)

This implements my receive dispatch method. Generally this looks up the event in the constructed event table.