Recent

Author Topic: Displaying Different Size/Color Fonts in Memo  (Read 7960 times)

Ramijami

  • Jr. Member
  • **
  • Posts: 87
Displaying Different Size/Color Fonts in Memo
« on: January 14, 2015, 01:57:38 pm »
Hi all,

Is there a way of displaying different sized fonts in a Memo box? For e.g. I want to display something like: BIG BIGGER BIGGEST all in the memo at the same time. A search here and general delphi seems to point to TRichEdit and TRichMemo, but I have no clue as to where to find these and how to use them.

Any help is appreciated.
Thanks

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Displaying Different Size/Color Fonts in Memo
« Reply #1 on: January 14, 2015, 02:17:14 pm »
for RichMemo you want to grab the sources from here. It can be done easily by using SVN client (such as tortoise svn or command line).

As you can see (by the link above) there's file "richmemopackage.lpk" among these sources. You need to start Lazarus then go to "Packages" menu, select "Open Package" and then select this file.
The package dialog will open. There you'll need to press "Install" to install the package. It will require Lazarus to be rebuilt and restart.

As a result you should see RichMemo available in "Common Controls"

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Displaying Different Size/Color Fonts in Memo
« Reply #2 on: January 14, 2015, 02:56:26 pm »

Ramijami

  • Jr. Member
  • **
  • Posts: 87
Re: Displaying Different Size/Color Fonts in Memo
« Reply #3 on: January 16, 2015, 11:03:19 am »
Thanks guys. Was able to successfully install lzRichEdit on my home pc (windows 7, Laz 1.2.2) but having problems installing it and Richmemo on work PC (Windows 7, Laz 1.2.6).....will fiddle around a bit and see if I can get it working. Thanks again for the help  :)

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018