Skip to main content

TdxNavBarViewsFactory.RegisterView(Integer,string,TdxNavBarPainterClass) Method

Registers a custom View so that it can be applied to the NavBar control.

Declaration

procedure RegisterView(AID: Integer; AName: string; APainterClass: TdxNavBarPainterClass);

Parameters

Name Type Description
AID Integer

A unique View identifier.

AName string

A View’s name.

APainterClass TdxNavBarPainterClass

The painter class that draws the NavBar control when the registered View is active.

Remarks

The AID parameter value identifies a View to register. This value is used to apply a View to the NavBar control via the View property.

The AName parameter specifies the View name, which appears in the combo box on the Views page of the NavBar Designer.

The APainterClass parameter identifies a painter class used for drawing the NavBar control.

Note

If you want to register a View so that it can be available at design time, the name of the unit containing the View implementation must be added to:

  • the uses section in one of the design time package units (typically the dxNavBarReg unit);

  • the implementation uses section in one of the runtime package units (typically the dxNavBar unit).

You should call the RegisterView procedure within the initialization section of the unit that contains your custom View implementation. Call the UnregisterView procedure within the finalization unit section to unregister the View.

See Also