[Lazarus] [newbie question] how to make resizable tmemo?

Edilson Vieira vieira.edilson at gmail.com
Tue Apr 30 20:05:27 CEST 2013


Hi waldo,

  Memo1.Align:=alClient;

This will make the Memo sized to form size.

  Memo1.Alignment:=taRightJustify;

This will make the text inside the Memo be right justified.

To mantain a visible button, put it inside a panel and set the Align
property of the panel to alTop;

It runs ok for me.

Hope it helps!

Ed.



2013/4/30 waldo kitty <wkitty42 at windstream.net>

>
> in the recent playing around with the code in the "flicker" thread, i
> wanted to make the tmemo automatically resize to fit the form when it is
> resized and to keep the button where i placed it and visible... the align
> and alignment options confuse this old boy as does much of the GUI world of
> coding... i had some luck with a groupbox but it wasn't satisfactory...
>
> can someone please explain, in very simple terms and steps, how to
> accomplish this? i have no delphi books available and what i have looked at
> online has only served to confuse me further :/
>
> advTHANKSance :)
>
> --
> NOTE: No off-list assistance is given without prior approval.
>       Please keep mailing list traffic on the list unless
>       private contact is specifically requested and granted.
>
> --
> ______________________________**_________________
> Lazarus mailing list
> Lazarus at lists.lazarus.**freepascal.org<Lazarus at lists.lazarus.freepascal.org>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130430/9ba533be/attachment-0003.html>


More information about the Lazarus mailing list