Sign in Join
FPDoc Onlineexperiment

WidgetSet variable

In unit InterfaceBase

Provides access to the widgetset class instance for the platform.

Declaration

pascal
WidgetSet: TWidgetSet = Nil

Description

WidgetSet is a unit global TWidgetSet variable with the singleton used to access the widgetset class instance for the platform. WidgetSet contains a TWidgetSet descendant which implements the properties, methods, and events for a specific platform.

The value for the variable is assigned when the CreateWidgetset routine in forms.pp is called. This occurs during initialization of the interfaces.pp unit for a given platform.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.