TMultiGet

Source: source/classes/mget.prg

Overview

TMultiGet is the multi-line Windows EDIT control wrapper used for memo-style input. XBrowse creates a temporary TMultiGet for in-cell editing when the column value is character, nDataLines >= 2, and cEditPicture is empty.

LimitText( nChars )

oMGet:LimitText( nChars ) sends EM_LIMITTEXT so the user cannot type or paste beyond nChars. Pass 0 for unlimited (default for a standalone multi-get).

When limiting XBrowse cells that store fixed-width padded strings (PadR / Space(n)), always RTrim() the text before LimitText(n); otherwise the control is already full and accepts no further input. See TXBrowse multi-line cell edit and sample samples/ui/xbrowse/xbrml250.prg.

See Also