Registro TDmxFieldRec
Unit
Declaração
type TDmxFieldRec = record
Descrição
O registro TDmxFieldRec
é usado para guardar as informações passadas pelos Templates das strings.
REFERÊNCIA
[Estrutura record e object]https://wiki.freepascal.org/Record
A aparência padrão dessas visualizações geralmente é orientada por coluna/linha, com exceção de exibições do tipo formulário e campos únicos.
Você declara uma estrutura de registro para o procedimento de inicialização do tvDMX em um modelo string – que também determina o formato de exibição. (Você verá mais tarde como o tvDMX pode ser usado para trabalhar com formulários ou editores de campo.)
EXEMPLO
O Template '\ sssssssss`sssssssssss \ iiii \ rrr.rr' representa o registro:
CÓDIGO PASCAL
type TRecord = Record nome : String [20]; Ano : Integer; Valor : Real; end;
NOTA:
A letra ( s ) minúsculo aceita qualquer número e letras maiúsculas e minúsculas;
A letra ( i ) representa um número inteiro com 2 bytes com edição em 4 posições (0 a 9999);
A letra ( r ) representa um número real com 8 bytes com edição em 5 posições (0 a 999.99)
O símbolo ( ` ) crase é usado para informar que a parte do texto depois deste sinal deve ser omitida da visão.
A símbolo ( ' \ ' ) barra invertida deve ser usada como delimitador de campo e é exibida como um espaço em branco.
O símbolo ( ˜ ) til deve ser usado para separar rótulos dos campos de dados.
ATENÇÃO
O registro
TDmxFieldRec
não pode ser class e nem conter métodos virtuais, porque este registro e alocado com as funções new e dispose.Campos que podem ser publicados para uso em javascript.
ListField : AnsiString;
ListComboBox_Default : Longint;
Default
Visão Geral
Campos
![]() |
Alias: AnsiString; |
![]() |
AliasList: TStringList; |
![]() |
LinkEdit: TComponent; |
![]() |
Template_org: AnsiString; |
![]() |
Next: pDmxFieldRec; |
![]() |
RSelf: pDmxFieldRec; |
![]() |
Prev: pDmxFieldRec; |
![]() |
access: byte; |
![]() |
Fieldnum: Integer; |
![]() |
ScreenTab: integer; |
![]() |
ColumnWid: byte; |
![]() |
ShownWid: byte; |
![]() |
TypeCode: AnsiChar; |
![]() |
FldEnum_Lookup:TFldEnum_Lookup; |
![]() |
FillValue: AnsiChar; |
![]() |
UpperLimit: byte; |
![]() |
ShowZeroes: boolean; |
![]() |
TrueLen: byte; |
![]() |
Parenthesis: boolean; |
![]() |
Decimals: byte; |
![]() |
FieldSize: integer; |
![]() |
DataTab: integer; |
![]() |
Template: ptString; |
![]() |
DataSource: TDataSource; |
![]() |
KeyField: AnsiString; |
![]() |
ListField: AnsiString; |
![]() |
ListComboBox: PSItem; |
![]() |
ListComboBox_Default: Longint; |
![]() |
ExecAction: AnsiString; |
![]() |
LinkExecAction: pDmxFieldRec; |
![]() |
CharShowPassword: AnsiChar; |
![]() |
var _Mask: TDates.TMask; |
![]() |
QuitFieldAltomatic: Boolean; |
![]() |
CurPos: integer; |
![]() |
SelStart: Integer; |
![]() |
SelEnd: Integer; |
![]() |
_FieldAltered: Boolean; |
![]() |
HelpCtx_Hint: AnsiString; |
![]() |
HelpCtx_Porque: AnsiString; |
![]() |
HelpCtx_Onde: AnsiString; |
![]() |
_OkSpcAnt: Boolean; |
![]() |
ProviderFlags: TUiTypes.TMiProviderFlags; |
![]() |
ForeignKey: TuiTypes.TForeignKey; |
![]() |
KeyForeign: AnsiString; |
Métodos
![]() |
function Mask:TDates.TMask; |
![]() |
Function GetOwner: TUiDmxScroller; |
![]() |
Function GetAsStringFromBuffer(aWorkingData : pointer):AnsiString; |
![]() |
function RemoveMaskNumber(S: AnsiString): AnsiString; |
![]() |
function RemoveMask(S: AnsiString): AnsiString; |
![]() |
Function AddMask(S: AnsiString;DisplayText: Boolean):Ansistring; |
![]() |
Procedure SetAsString(S:AnsiString); |
![]() |
Function GetAsString:AnsiString; |
![]() |
Function IsInputText:Boolean; |
![]() |
function SItemsLen(S: PSItem) : SmallInt; |
![]() |
function MaxItemStrLen(AItems: PSItem) : integer; |
![]() |
Function GetMaxLength():integer; |
![]() |
function IsStaticText:Boolean; |
![]() |
function IsInputRadio:Boolean; |
![]() |
function IsInputCheckbox:Boolean; |
![]() |
function isInputPassword:Boolean; |
![]() |
function IsInputHidden:Boolean; |
![]() |
function IsSelect:Boolean; |
![]() |
function IsComboBox:Boolean; |
![]() |
function FirstField: pDmxFieldRec; |
![]() |
function LastField: pDmxFieldRec; |
![]() |
function NextField: pDmxFieldRec; |
![]() |
function PrevField: pDmxFieldRec; |
![]() |
Procedure Select; |
![]() |
Function GetCount_Cluster:Integer; |
![]() |
Function GetValue_Cluster(aItem: Integer):AnsiString; |
![]() |
Procedure SetValue_Cluster(aItem:Integer;wValue:AnsiString); |
![]() |
Function GetChecked_Cluster( aItem: Integer):Boolean; |
![]() |
Procedure SetChecked_Cluster( aItem : Integer;aValue:Boolean); |
![]() |
Function GetCount_InputRadio:Integer; |
![]() |
Function GetValue_InputRadio(aItem: Integer):AnsiString; |
![]() |
Procedure SetValue_InputRadio(aItem:Integer;aValue:AnsiString); |
![]() |
Function GetChecked_InputRadio( aItem: Integer):Boolean; |
![]() |
Procedure SetChecked_InputRadio( aItem : Integer;aValue:Boolean); |
![]() |
Function get_Item_Focused_InputRadio:Longint; |
![]() |
Function GetCount_InputCheckbox:Integer; |
![]() |
Function GetValue_InputCheckbox(aItem: Integer):AnsiString; |
![]() |
Procedure SetValue_InputCheckbox(aItem: Integer;aValue:AnsiString); |
![]() |
Function GetChecked_InputCheckbox( aItem: Integer):Boolean; |
![]() |
Procedure SetChecked_InputCheckbox( aItem : Integer;aValue:Boolean); |
![]() |
Function GetCount_Select:Variant; |
![]() |
Function GetSize_Select():Variant; |
![]() |
Function GetValue_Select(aItem: Integer):AnsiString; |
![]() |
Procedure SetValue_Select(aItem: Integer;aValue:AnsiString); |
![]() |
Function GetChecked_Select( aItem: Integer):Boolean; |
![]() |
Procedure SetChecked_Select( aItem : Integer;aValue:Boolean); |
![]() |
Function IsNumber:Boolean; |
![]() |
Function IsNumberReal:Boolean; |
![]() |
Function IsNumberInteger:Boolean; |
![]() |
function IsBoolean: Boolean; |
![]() |
function IsData: Boolean; |
![]() |
Function SetAccess(aaccess : byte):Byte; |
![]() |
procedure DoOnEnter(Sender: TObject); |
![]() |
procedure DoOnExit(Sender: TObject); |
![]() |
Procedure CopyFrom(aDataField:TField); |
![]() |
Procedure CopyTo(aDataField:TField); |
Propriedades
![]() |
property FieldName : AnsiString read _FieldName write SetFieldName; |
![]() |
property ID_Dynamic : AnsiString Read _ID_Dynamic Write _ID_Dynamic; |
![]() |
property owner_UiDmxScroller : TUiDmxScroller read _owner_UiDmxScroller write SetOwner; |
![]() |
property FieldAltered : Boolean read GetFieldAltered write _FieldAltered; |
![]() |
property OkSpc : Boolean read _OkSpc write SetOkSpc; |
![]() |
property OkMask : Boolean read getOkMask write SetokMask; |
![]() |
property AsString : AnsiString read GetAsString write SetAsString; |
![]() |
property Value : Variant Read GetValue write SetValue; |
![]() |
property FldOrigin_Y: Integer Read GetFldOrigin_Y Write _FldOrigin_Y; |
![]() |
property FldOrigin : TPoint read getFldOrigin; |
![]() |
property reintrance_OnEnter: Boolean Read Getreintrance_OnEnter Write Setreintrance_OnEnter; |
![]() |
property reintrance_OnExit: Boolean Read Getreintrance_OnExit Write Setreintrance_OnExit; |
Descrição
Campos
![]() |
Alias: AnsiString; |
O campo
|
![]() |
AliasList: TStringList; |
O campo
|
![]() |
LinkEdit: TComponent; |
O campo |
![]() |
Template_org: AnsiString; |
O campo |
![]() |
Next: pDmxFieldRec; |
O campo |
![]() |
RSelf: pDmxFieldRec; |
O campo |
![]() |
Prev: pDmxFieldRec; |
O campo |
![]() |
access: byte; |
O campo |
![]() |
Fieldnum: Integer; |
O campo |
![]() |
ScreenTab: integer; |
O campo |
![]() |
ColumnWid: byte; |
O campo |
![]() |
ShownWid: byte; |
O campo |
![]() |
TypeCode: AnsiChar; |
O campo |
![]() |
FldEnum_Lookup:TFldEnum_Lookup; |
![]() |
FillValue: AnsiChar; |
If the Field is numeric, fill in with '#0' if it's alphanumeric, fill in with ' ' |
![]() |
UpperLimit: byte; |
maximum value limit |
![]() |
ShowZeroes: boolean; |
display zero values |
![]() |
TrueLen: byte; |
unformatted text length |
![]() |
Parenthesis: boolean; |
'('/')' AnsiCharacters |
![]() |
Decimals: byte; |
decimal point or cluster value |
![]() |
FieldSize: integer; |
sizeof (datatype) |
![]() |
DataTab: integer; |
position in record |
![]() |
Template: ptString; |
Field |
![]() |
KeyField: AnsiString; |
O atributo |
![]() |
ListField: AnsiString; |
O atributo |
![]() |
ListComboBox: PSItem; |
O atributo
|
![]() |
ExecAction: AnsiString; |
O campo
|
![]() |
LinkExecAction: pDmxFieldRec; |
O atributo
Result := NewSItem('˜Cliente:˜'+'\LLLLL'+CreateExecAction('Cliente',Pesquisa.Name),nil); |
![]() |
CharShowPassword: AnsiChar; |
O campo |
![]() |
var _Mask: TDates.TMask; |
![]() |
QuitFieldAltomatic: Boolean; |
O campo |
![]() |
CurPos: integer; |
O campo |
![]() |
SelStart: Integer; |
O campo |
![]() |
SelEnd: Integer; |
O campo |
![]() |
_FieldAltered: Boolean; |
![]() |
HelpCtx_Hint: AnsiString; |
O campo |
![]() |
HelpCtx_Porque: AnsiString; |
O campo |
![]() |
HelpCtx_Onde: AnsiString; |
O campo |
![]() |
_OkSpcAnt: Boolean; |
Salva o valor de _OkSpc antes de setar com aOkSpc |
![]() |
ProviderFlags: TUiTypes.TMiProviderFlags; |
O atributo |
![]() |
ForeignKey: TuiTypes.TForeignKey; |
O atributo |
Métodos
![]() |
function Mask:TDates.TMask; |
O função |
![]() |
Function GetOwner: TUiDmxScroller; |
![]() |
Function GetAsStringFromBuffer(aWorkingData : pointer):AnsiString; |
![]() |
function RemoveMaskNumber(S: AnsiString): AnsiString; |
![]() |
function RemoveMask(S: AnsiString): AnsiString; |
![]() |
Function AddMask(S: AnsiString;DisplayText: Boolean):Ansistring; |
![]() |
Procedure SetAsString(S:AnsiString); |
![]() |
Function GetAsString:AnsiString; |
![]() |
Function IsInputText:Boolean; |
![]() |
function SItemsLen(S: PSItem) : SmallInt; |
![]() |
function MaxItemStrLen(AItems: PSItem) : integer; |
![]() |
Function GetMaxLength():integer; |
![]() |
function IsStaticText:Boolean; |
![]() |
function IsInputRadio:Boolean; |
![]() |
function IsInputCheckbox:Boolean; |
![]() |
function isInputPassword:Boolean; |
![]() |
function IsInputHidden:Boolean; |
![]() |
function IsSelect:Boolean; |
O objeto filho que implementar um ISelect deve anular e retornar a interface ISelect; |
![]() |
function IsComboBox:Boolean; |
Usado quando trata-se de campos enumerados em memória ou em arquivos. |
![]() |
function FirstField: pDmxFieldRec; |
![]() |
function LastField: pDmxFieldRec; |
![]() |
function NextField: pDmxFieldRec; |
![]() |
function PrevField: pDmxFieldRec; |
![]() |
Procedure Select; |
![]() |
Function GetCount_Cluster:Integer; |
![]() |
Function GetValue_Cluster(aItem: Integer):AnsiString; |
![]() |
Procedure SetValue_Cluster(aItem:Integer;wValue:AnsiString); |
![]() |
Function GetChecked_Cluster( aItem: Integer):Boolean; |
![]() |
Procedure SetChecked_Cluster( aItem : Integer;aValue:Boolean); |
![]() |
Function GetCount_InputRadio:Integer; |
![]() |
Function GetValue_InputRadio(aItem: Integer):AnsiString; |
![]() |
Procedure SetValue_InputRadio(aItem:Integer;aValue:AnsiString); |
![]() |
Function GetChecked_InputRadio( aItem: Integer):Boolean; |
![]() |
Procedure SetChecked_InputRadio( aItem : Integer;aValue:Boolean); |
![]() |
Function get_Item_Focused_InputRadio:Longint; |
![]() |
Function GetCount_InputCheckbox:Integer; |
Construção da propriedade Count
|
![]() |
Function GetValue_InputCheckbox(aItem: Integer):AnsiString; |
Construção da propriedade Value |
![]() |
Procedure SetValue_InputCheckbox(aItem: Integer;aValue:AnsiString); |
![]() |
Procedure SetChecked_InputCheckbox( aItem : Integer;aValue:Boolean); |
![]() |
Function GetCount_Select:Variant; |
Construção da propriedade Count de campos enumerados
|
![]() |
Function GetSize_Select():Variant; |
Número de Linhas a ser mostrada no box. Usado em campos enumerados. |
![]() |
Function GetValue_Select(aItem: Integer):AnsiString; |
Construção da propriedade Value |
![]() |
Procedure SetValue_Select(aItem: Integer;aValue:AnsiString); |
![]() |
Procedure SetChecked_Select( aItem : Integer;aValue:Boolean); |
![]() |
Function IsNumber:Boolean; |
O método |
![]() |
Function IsNumberReal:Boolean; |
![]() |
Function IsNumberInteger:Boolean; |
![]() |
function IsBoolean: Boolean; |
![]() |
function IsData: Boolean; |
![]() |
Function SetAccess(aaccess : byte):Byte; |
![]() |
procedure DoOnEnter(Sender: TObject); |
O método
|
![]() |
procedure DoOnExit(Sender: TObject); |
O método
|
![]() |
Procedure CopyFrom(aDataField:TField); |
O atributo |
![]() |
Procedure CopyTo(aDataField:TField); |
O atributo |
Propriedades
![]() |
property FieldName : AnsiString read _FieldName write SetFieldName; |
O campo |
![]() |
property ID_Dynamic : AnsiString Read _ID_Dynamic Write _ID_Dynamic; |
![]() |
property owner_UiDmxScroller : TUiDmxScroller read _owner_UiDmxScroller write SetOwner; |
![]() |
property FieldAltered : Boolean read GetFieldAltered write _FieldAltered; |
A propriedade |
![]() |
property OkSpc : Boolean read _OkSpc write SetOkSpc; |
![]() |
property OkMask : Boolean read getOkMask write SetokMask; |
O método |
![]() |
property AsString : AnsiString read GetAsString write SetAsString; |
![]() |
property Value : Variant Read GetValue write SetValue; |
![]() |
property FldOrigin_Y: Integer Read GetFldOrigin_Y Write _FldOrigin_Y; |
![]() |
property FldOrigin : TPoint read getFldOrigin; |
![]() |
property reintrance_OnEnter: Boolean Read Getreintrance_OnEnter Write Setreintrance_OnEnter; |
A propriedade |
![]() |
property reintrance_OnExit: Boolean Read Getreintrance_OnExit Write Setreintrance_OnExit; |
A propriedade |
Gerado por PasDoc 0.16.0.