TEMMO stream with empty lines
2 answers
The newly created note has no content. But content is added as soon as the component gets a name, which the designer automatically performs. To prevent this, remove csSetCaption
from ControlStyle
:
constructor TMyMemo.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
ControlStyle := ControlStyle - [csSetCaption];
end;
+17
source to share