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 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.

Component class

TsgcHTMLComponent_Memo

Renders

Bootstrap 5 <textarea>

Languages

Delphi, C++ Builder, .NET

Create it, configure it, render it

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

Key properties & methods

The members you reach for most often.

Identity

Name sets the field name, Label_ the visible caption and MemoID the element id (defaults to memo_<Name>).

Value & hint

Value seeds the textarea content and Placeholder shows ghost text when it is empty.

Size

Rows sets the visible line count (default 4), controlling the textarea's initial height.

State

Required, Disabled and ReadOnly flag the input for validation and editing.

Dataset binding

DataField plus an assigned DataSource fills Value from the current record.

Output & siblings

HTML returns the labelled <textarea>. The same unit declares the sibling TsgcHTMLComponent_Edit, TsgcHTMLComponent_CheckBox and TsgcHTMLComponent_RadioGroup inputs.

Keep exploring

All sgcHTML ComponentsBrowse the full feature matrix of 60+ components.
Download Free TrialThe 30-day trial ships the 60.HTML demo projects.
PricingSingle, Team and Site licenses with full source code.

Ready to Get Started?

Download the free trial and start building web UIs in Delphi, C++ Builder and .NET.