From RAD Studio API Documentation
Jump to: navigation, search


function DBUseRightToLeftAlignment(AControl: TControl; AField: TField): Boolean;


extern DELPHI_PACKAGE bool __fastcall DBUseRightToLeftAlignment(Vcl::Controls::TControl* AControl, Data::Db::TField* AField);


Type Visibility Source Unit Parent
function public
Vcl.DBCtrls Vcl.DBCtrls


Indicates whether a data-aware control's alignment is reversed to a right-to-left mode.

Call DBUseRightToLeftAlignment to determine whether a control's alignment has been reversed to a right-to-left mode. This information can be used when painting the control or when responding to mouse events.

DBUseRightToLeftAlignment returns true for middle east locales if the BiDiMode property is bdRightToLeft. Otherwise, it returns false.

AControl is the data-aware control to check.

AField is the field associated with the control specified in AControl. The AField parameter is necessary so that DBUseRightToLeftAlignment can be used with controls such as TDBLookupComboBox, which uses the list field and not the target field for determining alignment.

See Also