Sign in Join
Wiki copytemporary

TECLightView: what changed

Revision 2 to 3. 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
55![](/wiki-images/a/a6/Teclightview.png)
66
77TECLightView 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.
88
99TECLightView is installed to the tab EC-C on the Lazarus component palette.
1010
1111Each 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).
1212
1313### License
1414
1515GNU 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.
1616
1717### Author
1818
1919This 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.
2020
2121### Download and Install
2222
2323See [[Eye-Candy Controls|Eye-Candy Controls#Install]]
2424
2525## Tags
2626
2727| Tag | Pair | Parameter | Description | Example |
2828|----|----|----|----|----|
2929| a | N | string | Link (URL) | %a"[https://www.getlazarus.org"\\](https://www.getlazarus.org%22\) |
3030| b | Y | \- | Bold text | %b\Bold text.%b\\ |
3131| c | N | \- | Centered text | %c\Centered text. |
3232| d | Y | \- | Stretchdraw images | %d\\%x"image.jpeg"\\%d\\ |
3333| e | N | string | Link (mailto:) | %e"firstname.surename@domain.org"\\ |
3434| f | N | integer | Font height (0=default) | %f2\\ %f-2\\ %f0\\ |
3535| g | N | integer | Image from ImageList (property Images) | %g2\\ |
3636| h | Y | color | Text background color (\$BBGGRR) | %h\$FF0000\Text with blue background.%h\\ |
3737| i | Y | \- | Italic text | %i\Italic text.%i\\ |
3838| j | N | \- | Align images to the left | %j\\ |
3939| k | N | \- | Align images to the right | %k\\ |
4040| l | N | \- | Left aligned text | %l\Left aligned text. |
4141| m | Y | \- | Monospaced text | %m\Monospaced text.%m\\ |
4242| n | N | \- | New line | %n\\ |
4343| o | N | integer | Horizontal line | %o1\\ %o2\\ %o3\\ |
4444| p | Y | \- | Preformatted text | %p\Preformatted text: %n\\ tag for a new line not needed.%p\\ |
4545| q | N | \- | Align images to center | %q\\ |
4646| r | N | \- | Right aligned text | %r\Right aligned text. |
4747| s | Y | \- | Strikeout text | %s\Strikeout text.%s\\ |
4848| t | Y | color | Font color (\$BBGGRR) | %t\$FF0000\Blue text.%t\\ |
4949| u | Y | \- | Underlined text | %u\Underlined text.%u\\ |
5050| v | N | \- | New line below image (when text floats around) | %v\\ |
5151| w | N | string | Image from resources (no extension in name) | %w"image"\\ |
5252| x | N | string | Image from file (bmp/jpeg/png) | %x"image.jpeg"\\ |
5353| y | Y | integer | Link (OnInterLinkClick event) | %y0\OnInterLinkClick event 0.%y\\ |
5454| z | N | \- | {Reserved for internal text layout} | \- |
5555
5656## Using the Component
5757
5858### Mouse
5959
6060Left button
6161
6262Click on a %a\\ tag opens the default web browser on the specified URL.
6363
6464Click on a %e\\ tag open the default email client.
6565
6666Click on a %y\\ tag triggers OnInterLinkClick event with integer parameter AIndex.
6767
6868Middle button
6969
7070Does nothing.
7171
7272Right button
7373
7474Opens context menu.
7575
7676Mouse Wheel
7777
7878Scrolls the content up/down.
7979
8080### Keyboard
8181
8282(Component must be focused).
8383
8484Arrow keys Up/Down scrolls the content up/down.
8585
8686PageUp/PageDown scrolls the content up/down.
8787
8888### Code
8989
90-`property PathToPictures: string;`
90+```text
91+property PathToPictures: string;
92+```
9193
9294Path to folder with images. Needed for the %x"filename"\\ tags.
9395
94-`property TextData: string;`
96+```text
97+property TextData: string;
98+```
9599
96100This property is for source data, i.e. tags with parameters and text.
97101
98102---
99103*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