Skip to content

ICustomForm interface ​

The form-class counterpart to ICustomControl. Custom form classes --- top-level windows that host other custom controls --- implement this interface instead. The shape is identical to ICustomControl except that the Initialize callback receives a CustomFormContext (which extends CustomControlContext with Show and Close) rather than a plain CustomControlContext.

WaynesForm, the package's only concrete form class, does in fact implement ICustomControl and cast its context to CustomFormContext internally --- the ICustomForm interface is published for parity with ICustomControl but is not currently consumed by any class shipped with the package.

Methods ​

Destroy ​

Called once when the form is being released. See ICustomControl.Destroy.

Syntax: object.Destroy ( )

Initialize ​

Called once after the framework has constructed the form and deserialized any designer-set property values into it.

Syntax: object.Initialize ( Context )

Context
required The CustomFormContext for this form instance.

Paint ​

Called every time the framework needs to redraw the form's client area. See ICustomControl.Paint.

Syntax: object.Paint ( Canvas )

Canvas
required The Canvas drawing surface for this paint pass.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author