FireDAC.Comp.UI.TFDGUIxComponent.Provider

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Provider: String read GetProvider write SetProvider  stored FProviderSpecified;

C++

__property System::UnicodeString Provider = {read=GetProvider, write=SetProvider, stored=FProviderSpecified};

Properties

Type Visibility Source Unit Parent
property published
FireDAC.Comp.UI.pas
FireDAC.Comp.UI.hpp
FireDAC.Comp.UI TFDGUIxComponent

Description

Specifies the type of implementation.

Use the Provider property to select the GUIx component implementation:

Value 

Description 

Forms 

VCL based implementation for Delphi / C++ Builder. LCL based implementation for Lazarus / FPC. 

FMX 

FireMonkey based implementation for Delphi / C++ Builder XE2 and higher. 

Console 

Console based implementation. 

  After setting the Provider property at design-time, save the form and the corresponding implementation unit is automatically added to the uses section of the from. At run-time you need to manually add the corresponding implementation unit to the uses section. If the corresponding implementation is not linked into the application, an exception will be raised. See the description of the corresponding component for the supported implementations. 

Note: If the Provider property changes its value, then developers need to delete the implementation units for the old Provider value from the uses sections. For example, switching from 'Forms' to 'FMX' requires to delete the TFDGUIxFormsXxx units. 

If the Provider property value is not explicitly assigned, the default value is used. By default this is 'FMX' for FireMonkey based applications, 'Console' for Windows console applications and 'Forms' - otherwise.

The Provider property value must be assigned before the first usage of the component.

Example

uses
uADGUIxFMXfLogin;
....
FDGUIxLoginDialog1.Provider := 'FMX';
FDConnection1.LoginDialog := ADGUIxLoginDialog1;
FDConnection1.Connected := True;

See Also