Vcl.DBCtrls.DBUseRightToLeftAlignment
Delphi
function DBUseRightToLeftAlignment(AControl: TControl; AField: TField): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall DBUseRightToLeftAlignment(Vcl::Controls::TControl* AControl, Data::Db::TField* AField);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | Vcl.DBCtrls |
Description
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.