Navigation:  Reference > Form Objects >

TMemo

Print this Topic Previous pageReturn to chapter overviewNext page

 

Use this object to put a mini-word processor on your form.  If you want to allow your user to enter messages or notes, etc. you would use this object in connection with the STRINGS() function.  The icon for this object is on the Standard page.

 

PALETTE ICON & EXAMPLE

 

 

PROPERTIES

The following are the properties that apply to this object.  Some are defined in Common Properties and are linked to their appropriate page.

 

Appearance

 

Alignment

Color

Ctl3D

Cursor

ParentColor

 

WordWrapThis would normally be checked (set to .True.) so that the lines the user enters will be wrapped automatically.  If you set this to .False. (unchecked) the lines will scroll to the left as the user enters characters that would stretch beyond the edge of the object.

 

Behavior

 

Enabled

TabOrder

TabStop

Visible

 

Font

 

Font

ParentFont

 

Hint

 

Hint

ParentShowHint

ShowHint

 

Misc

 

HelpContext

Name

PopupMenu

Tag

 

Other

 

Anchors

BorderStyle

Constraints

 

LinesThis a string list that contains the lines that make up the memo.  You can preset these lines or retrieve them through the use of the STRINGS() function.

       Each line in the memo can be accessed as a separate string in the list.

 

MaxLengthIf you want to limit the number of characters that can be entered you would put that number here.  If it is set to 0 there is no limit.  This can be changed during runtime.

 

ParentCtl3D

ReadOnly

 

ScrollBarsYou would set this option to attach scroll bars to the memo area.  This will allow the user to move the memo easily if they exceed the space available.  The options are:  ssBoth (both vertical and horizontal scroll bars), ssHorizontal (horizontal scroll bars only), ssNone (no scroll bars, in this case the user would use up/down and left/right arrows to move around the memo if it exceeds the size available) and ssVertical (vertical scroll bars only).  The default value is ssNone.  If you check the WordWrap property (set to .True.) then you may not need horizontal scroll bars at all.

 

WantReturnsIf you want to allow the user to enter returns (separate sections of the memo) then this should be checked.  This is the default value.

 

WantTabsIf you want to allow the user to enter tabs then this should be checked.  This is the default value.

 

Position

 

Align

Height

Left

Top

Width

 

COMMENTS

NOTE:  If you place a TMemo object on a TPanel object you will no longer be able to set the TabOrder for the TMemo.  It will look to you like it's the only object on the TPanel, even if there are others.

 

EVENTS

There are no events for this object.

 

See Also TTasMemo & TRTFMemo

 


Page url: http://www.cassoftware.com/tas/manual/tmemo.htm