Constants
The Constants module in the CustomControls DESIGNER library declares the enumerations and UDTs shared across the entire CustomControls package.
The module is internal to the DESIGNER library; user code does not reference it by name. The members it exposes are:
- Enumerations — the full set of public constants used by the package’s controls, style objects, and form options. Each is documented on its own page under Enumerations.
- UDTs — SerializeInfo and Canvas, the two value types passed to custom control implementations; both carry twinBASIC pseudo-DLL method bindings and are documented under Framework.
Enumerations
| Enumeration | Purpose |
|---|---|
| ColorRGBA | Long-compatible type alias for 32-bit ABGR colour values |
| CornerShape | How a single corner of a control is shaped: curve, notch, or cut-out |
| Customtate | Reserved duplicate of WindowState |
| DockMode | How a control is docked inside its container |
| FillPattern | The gradient or fill pattern used by a Fill |
| FontWeight | Font weights from tbThin (100) through tbHeavy (900), mirroring the OpenType wght scale |
| PixelCount | Long-compatible type alias for measurements expressed in pixels |
| PointSize | Long-compatible type alias for font sizes expressed in points |
| StartupPosition | Initial position of a form when it is first shown |
| TextAlignment | Horizontal and vertical alignment of text within a TextRendering |
| TextOverflowMode | How text longer than the available area is truncated |
| BorderStyle | Window-frame style passed to WindowsFormOptions.BorderStyle |
| WindowState | The minimized / normal / maximized window state of a form |
UDTs
| Type | Purpose |
|---|---|
| SerializeInfo | Per-instance serializer returned by CustomControlContext.GetSerializer; used to deserialize designer-set property values and to query the runtime mode |
| Canvas | Drawing surface passed to ICustomControl.Paint; exposes element-adding and DPI / size query methods |
See Also
- Enumerations – package enumeration index
- Framework – host-side contract for custom control authors