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
The following are the properties that apply to this object. Some are defined in Common Properties and are linked to their appropriate page.
|WordWrap||This 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.|
|Lines||This 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.
|MaxLength||If 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.|
|ScrollBars||You 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.|
|WantReturns||If you want to allow the user to enter returns (separate sections of the memo) then this should be checked. This is the default value.|
|WantTabs||If you want to allow the user to enter tabs then this should be checked. This is the default value.|
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.
There are no events for this object.