TECLightView/ru
│ English (en) │ русский (ru) │
Вступление
TECLightView облегченный текстовый компонент. Он может отображать текст, изображения и ссылки. Он реализует только вертикальную полосу прокрутки. Это не реализует отображение символа каретки.
TECLightView является частью Eye-Candy Controls (сокращенно ECControls или EC-Controls) - набора визуальных элементов управления, написанных для Lazarus. Их дизайн основан на Themes, поэтому его внешний вид натурален везде, независимо от того, какой виджет вы используете.
TECLightView устанавливается на вкладку EC-C в палитре компонентов Lazarus.
Each 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).
Каждый релиз анонсируется на форуме Lazarus в разделе "Third Party Announcements"(Сторонние объявления). Всегда есть прикрепленные файлы README.txt (список всех известных проблем) и CHANGELOG.txt (список всех изменений из предыдущего выпуска).
Лицензия
GNU Lesser General Public License 2.0 с исключением ссылок (a.k.a. Модифицированный LGPL). Файл ectabctrl.pas содержит лицензионный заголовок. Кроме того, файлы COPYING.modifiedLGPL.txt и COPYING.LGPL.txt связаны с каждым архивом.
Автор
Этот компонент написан Blaazen. Уведомление об авторском праве и настоящее имя упоминается в заголовке блока. Вы можете связаться с автором на форуме Lazarus (никнейм Blaazen) в любой теме о EC-Controls. Если вы войдете на форум под своей учетной записью, вы сможете получить электронную почту автора или отправить ему личное сообщение.
Загрузка и установка
См. Eye-Candy Controls#Install
Тэги
Тэг | Пара | Параметр | Описание | Пример |
---|---|---|---|---|
a | N | string | Link (URL) | %a"https://www.getlazarus.org"\ |
b | Y | - | Bold text | %b\Bold text.%b\ |
c | N | - | Centered text | %c\Centered text. |
d | Y | - | Stretchdraw images | %d\%x"image.jpeg"\%d\ |
e | N | string | Link (mailto:) | %e"firstname.surename@domain.org"\ |
f | N | integer | Font height (0=default) | %f2\ %f-2\ %f0\ |
g | N | integer | Image from ImageList (property Images) | %g2\ |
h | Y | color | Text background color ($BBGGRR) | %h$FF0000\Text with blue background.%h\ |
i | Y | - | Italic text | %i\Italic text.%i\ |
j | N | - | Align images to the left | %j\ |
k | N | - | Align images to the right | %k\ |
l | N | - | Left aligned text | %l\Left aligned text. |
m | Y | - | Monospaced text | %m\Monospaced text.%m\ |
n | N | - | New line | %n\ |
o | N | integer | Horizontal line | %o1\ %o2\ %o3\ |
p | Y | - | Preformatted text | %p\Preformatted text: %n\ tag for a new line not needed.%p\ |
q | N | - | Align images to center | %q\ |
r | N | - | Right aligned text | %r\Right aligned text. |
s | Y | - | Strikeout text | %s\Strikeout text.%s\ |
t | Y | color | Font color ($BBGGRR) | %t$FF0000\Blue text.%t\ |
u | Y | - | Underlined text | %u\Underlined text.%u\ |
v | N | - | New line below image (when text floats around) | %v\ |
w | N | string | Image from resources (no extension in name) | %w"image"\ |
x | N | string | Image from file (bmp/jpeg/png) | %x"image.jpeg"\ |
y | Y | integer | Link (OnInterLinkClick event) | %y0\OnInterLinkClick event 0.%y\ |
z | N | - | {Reserved for internal text layout} | - |
Using the Component
Mouse
- Left button
Click on a %a\ tag opens the default web browser on the specified URL.
Click on a %e\ tag open the default email client.
Click on a %y\ tag triggers OnInterLinkClick event with integer parameter AIndex.
- Middle button
Does nothing.
- Right button
Opens context menu.
- Mouse Wheel
Scrolls the content up/down.
Keyboard
(Component must be focused).
Arrow keys Up/Down scrolls the content up/down.
PageUp/PageDown scrolls the content up/down.
Code
property PathToPictures: string;
Path to folder with images. Needed for the %x"filename"\ tags.
property TextData: string;
This property is for source data, i.e. tags with parameters and text.