Memos with a margin

> I was just wondering how you can set a TMemo up with a margin?
> Kind of like in notepad (so the text isn't so close to the edge of the
> window).
> This is seen in most apps now and was wondering how it is done?

Have a look at the EM_SETMARGINS message in the Win32 API help, it does
what you want.

Try this :
     SendMessage(Memo1.Handle,EM_SETMARGINS,EC_RIGHTMARGIN,MakeLong(10,10));
     SendMessage(Memo1.Handle,EM_SETMARGINS,EC_LEFTMARGIN,MakeLong(10,10));