Sign in Join
Wiki copytemporary

TECLightView: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## Overview
22
33**TECLightView** ![](/wiki-images/f/f3/Eclightview.png) is a lightweight text component. It can display text, images and links. It implements vertical scrollbar only. It does not implement carret.
44
5-<figure>
6-<img src="teclightview.png" title="teclightview.png" />
7-<figcaption>teclightview.png</figcaption>
8-</figure>
5+![](/wiki-images/a/a6/Teclightview.png)
96
107TECLightView is part of [[Eye-Candy Controls]] (shortly ECControls or EC-Controls) set of visual controls written for Lazarus. Their design is based on Themes, therefore its look is very native everywhere, no matter what widgetset you use.
118
129TECLightView is installed to the tab EC-C on the Lazarus component palette.
1310
1411Each release is announced on Lazarus Forum in section Third Party Announcements. There are always attached files `README.txt` (list of all known issues) and `CHANGELOG.txt` (list of all changes from previous release).
1512
1613### License
1714
1815GNU Lesser General Public License 2.0 with linking exception (a.k.a. Modified LGPL). File ectabctrl.pas contains license header. Also, files `COPYING.modifiedLGPL.txt` and `COPYING.LGPL.txt` are bundled to each archive.
1916
2017### Author
2118
2219This component is written by Blaazen. Copyright notice and real name is mentioned in the header of the unit. You can contact author on Lazarus Forum (nickname: Blaazen) in any thread about EC-Controls. If you are logged in to forum, you can get author's e-mail or send him private message.
2320
2421### Download and Install
2522
2623See [[Eye-Candy Controls|Eye-Candy Controls#Install]]
2724
2825## Tags
2926
3027| Tag | Pair | Parameter | Description | Example |
3128|----|----|----|----|----|
3229| a | N | string | Link (URL) | %a"[https://www.getlazarus.org"\\](https://www.getlazarus.org%22\) |
3330| b | Y | \- | Bold text | %b\Bold text.%b\\ |
3431| c | N | \- | Centered text | %c\Centered text. |
3532| d | Y | \- | Stretchdraw images | %d\\%x"image.jpeg"\\%d\\ |
3633| e | N | string | Link (mailto:) | %e"firstname.surename@domain.org"\\ |
3734| f | N | integer | Font height (0=default) | %f2\\ %f-2\\ %f0\\ |
3835| g | N | integer | Image from ImageList (property Images) | %g2\\ |
3936| h | Y | color | Text background color (\$BBGGRR) | %h\$FF0000\Text with blue background.%h\\ |
4037| i | Y | \- | Italic text | %i\Italic text.%i\\ |
4138| j | N | \- | Align images to the left | %j\\ |
4239| k | N | \- | Align images to the right | %k\\ |
4340| l | N | \- | Left aligned text | %l\Left aligned text. |
4441| m | Y | \- | Monospaced text | %m\Monospaced text.%m\\ |
4542| n | N | \- | New line | %n\\ |
4643| o | N | integer | Horizontal line | %o1\\ %o2\\ %o3\\ |
4744| p | Y | \- | Preformatted text | %p\Preformatted text: %n\\ tag for a new line not needed.%p\\ |
4845| q | N | \- | Align images to center | %q\\ |
4946| r | N | \- | Right aligned text | %r\Right aligned text. |
5047| s | Y | \- | Strikeout text | %s\Strikeout text.%s\\ |
5148| t | Y | color | Font color (\$BBGGRR) | %t\$FF0000\Blue text.%t\\ |
5249| u | Y | \- | Underlined text | %u\Underlined text.%u\\ |
5350| v | N | \- | New line below image (when text floats around) | %v\\ |
5451| w | N | string | Image from resources (no extension in name) | %w"image"\\ |
5552| x | N | string | Image from file (bmp/jpeg/png) | %x"image.jpeg"\\ |
5653| y | Y | integer | Link (OnInterLinkClick event) | %y0\OnInterLinkClick event 0.%y\\ |
5754| z | N | \- | {Reserved for internal text layout} | \- |
5855
5956## Using the Component
6057
6158### Mouse
6259
6360Left button
6461
6562Click on a %a\\ tag opens the default web browser on the specified URL.
6663
6764Click on a %e\\ tag open the default email client.
6865
6966Click on a %y\\ tag triggers OnInterLinkClick event with integer parameter AIndex.
7067
7168Middle button
7269
7370Does nothing.
7471
7572Right button
7673
7774Opens context menu.
7875
7976Mouse Wheel
8077
8178Scrolls the content up/down.
8279
8380### Keyboard
8481
8582(Component must be focused).
8683
8784Arrow keys Up/Down scrolls the content up/down.
8885
8986PageUp/PageDown scrolls the content up/down.
9087
9188### Code
9289
9390`property PathToPictures: string;`
9491
9592Path to folder with images. Needed for the %x"filename"\\ tags.
9693
9794`property TextData: string;`
9895
9996This property is for source data, i.e. tags with parameters and text.
10097
10198---
10299*From the Free Pascal wiki, page "TECLightView", as it stood on 2020-07-18 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history