Memo
TsgcHTMLComponent_Memo — a multi-line text-area input with a label, configurable row count and dataset binding that renders a Bootstrap 5 textarea, in Delphi, C++ Builder and .NET.
TsgcHTMLComponent_Memo — a multi-line text-area input with a label, configurable row count and dataset binding that renders a Bootstrap 5 textarea, in Delphi, C++ Builder and .NET.
A standalone multi-line input that emits a labelled Bootstrap <textarea>. Set the name, label and row count, then read the HTML property. It ships in the same unit as the sibling Edit, CheckBox and RadioGroup inputs.
TsgcHTMLComponent_Memo
Bootstrap 5 <textarea>
Delphi, C++ Builder, .NET
Set Name, Label_, Rows and a Placeholder, then read HTML (or drop it into a TsgcHTMLTemplate_Bootstrap page).
uses
sgcHTML_Component_Edit;
var
oMemo: TsgcHTMLComponent_Memo;
begin
oMemo := TsgcHTMLComponent_Memo.Create(nil);
try
oMemo.Name := 'notes';
oMemo.Label_ := 'Notes';
oMemo.Rows := 6;
oMemo.Placeholder := 'Anything we should know?';
oMemo.Value := 'Initial text';
WebModule.Response := oMemo.HTML; // Bootstrap textarea
finally
oMemo.Free;
end;
end;
// Or bind it to a dataset field:
oMemo.DataField := 'Notes';
oMemo.DataSource := dsCustomer;
// includes: sgcHTML_Component_Edit.hpp
TsgcHTMLComponent_Memo *oMemo = new TsgcHTMLComponent_Memo(NULL);
try
{
oMemo->Name = "notes";
oMemo->Label_ = "Notes";
oMemo->Rows = 6;
oMemo->Placeholder = "Anything we should know?";
oMemo->Value = "Initial text";
String html = oMemo->HTML; // Bootstrap textarea
}
__finally
{
delete oMemo;
}
using esegece.sgcWebSockets;
var memo = new TsgcHTMLComponent_Memo();
memo.Name = "notes";
memo.Label_ = "Notes";
memo.Rows = 6;
memo.Placeholder = "Anything we should know?";
memo.Value = "Initial text";
string html = memo.HTML; // Bootstrap textarea
The members you reach for most often.
Name sets the field name, Label_ the visible caption and MemoID the element id (defaults to memo_<Name>).
Value seeds the textarea content and Placeholder shows ghost text when it is empty.
Rows sets the visible line count (default 4), controlling the textarea's initial height.
Required, Disabled and ReadOnly flag the input for validation and editing.
DataField plus an assigned DataSource fills Value from the current record.
HTML returns the labelled <textarea>. The same unit declares the sibling TsgcHTMLComponent_Edit, TsgcHTMLComponent_CheckBox and TsgcHTMLComponent_RadioGroup inputs.