RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFormLayout.ImplLayoutLabelAndField Method

Provides the underlying implementation for the LayoutLabelAndField method.

Pascal
function ImplLayoutLabelAndField(const HTMLLabel: string; const HTMLField: string; Attributes: TLayoutAttributes): string; override;
C++
virtual __fastcall AnsiString ImplLayoutLabelAndField(const AnsiString HTMLLabel, const AnsiString HTMLField, TLayoutAttributes Attributes);

The LayoutLabelAndField method calls ImplLayoutLabelAndField to convert the HTML that declares a labeled field (an input control that represents a data field or a named value along with its label) into the form that the associated Web item requires. 

HTMLLabel is the HTML that declares the label. This is produced by the child Web item. 

HTMLField is the HTML that declares the field. This is produced by the child Web item. 

Attributes describes any style attributes or layout considerations that should be applied to the final HTML for the field and its label. 

LayoutLabelAndField returns the HTML for the field and label in a form that the associated Web item can use. 

In TLayoutWebContent, ImplLayoutLabelAndField is abstract or, in C++ terminology, pure virtual. Descendant classes override this method to provide an implementation for the LayoutLabelAndField method. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!