Unit avoraiser.richedit
Description
Avoraiser UI Framework - High-Performance WinAPI UI for Avocado Avoraiser is a framework for creating modern user interfaces for the Polish programming language Avocado. Copyright (c) 2025-2026 Dymitr Wygowski (Programista Art) Project Created: 23.12.2025
Author: Dymitr Wygowski (Programista Art) Contact: programista.art@gmail.com GitHub: https://github.com/Programista-Art/Avoraiser Version: 1.0 License: Dual-Licensed: Avoraiser Community / Commercial See LICENSE.md for terms and conditions.
Module: avoraiser.richedit Description:
Uses
Overview
Classes, Interfaces, Objects and Records
| Name | Description |
|---|---|
Record TCharRange |
Zakres znaków (używany w wielu komunikatach RichEdit) |
Record TFindTextExW |
Struktura potrzebna do EM_FINDTEXTEXW |
Packed Record t_av_char_format |
|
Packed Record t_av_edit_stream |
Strumieniowanie (do wczytywania/zapisywania RTF) |
Packed Record t_av_para_format |
PARAFORMAT2 - musi być PACKED! |
Functions and Procedures
procedure apply_char_format(h_wnd: HWND; mask, effects: DWORD; color: DWORD; size: Integer); |
procedure change_rich_text_indent(handle: HWND; increase: Boolean); |
function create_rich_edit(h_parent: HWND; x, y, w, h: Integer; bg_color, text_color: COLORREF): HWND; |
function edit_stream_out_callback(dwCookie: DWORD_PTR; pbBuff: PByte; cb: LongInt; pcb: PLongInt): DWORD; stdcall; |
function find_rich_text(handle: HWND; const search_str: UnicodeString;start_pos: Integer; match_case, whole_word: Boolean): Integer; |
procedure get_rich_text_caret_pos(handle: HWND; var line, col: Integer); |
function get_rich_text_line_count(handle: HWND): Integer; |
function get_rich_text_selection_length(handle: HWND): Integer; |
function get_rich_text_text(handle: HWND): UnicodeString; |
procedure goto_rich_text_line(handle: HWND; line_num: Integer); |
function handle_drop_files(handle: HWND; drop_info: WPARAM): UnicodeString; |
procedure insert_rich_text_at_cursor(handle: HWND; const a_text: string); |
procedure install_avocado_rich_edit_subclass(h_rich: HWND); |
function is_rich_text_bold(Handle: HWND): Boolean; |
function is_rich_text_style_active(handle: HWND; style_to_check: Integer): Boolean; |
procedure load_rich_text_from_file(h_rich_edit: HWND; const file_path: UnicodeString); |
procedure reset_to_standard_font(handle: HWND); |
procedure rich_text_redo(Handle: HWND); |
procedure rich_text_undo(Handle: HWND); |
procedure save_rich_text_to_file(handle: HWND; const filename: UnicodeString); |
procedure select_rich_text(h_rich: HWND; start_pos, len: Integer); |
procedure set_rich_text_alignment(Handle: HWND; Align: Integer); |
procedure set_rich_text_auto_url(handle: HWND; enable: Boolean); |
procedure set_rich_text_background_color(Handle: HWND; Color: Integer); |
procedure set_rich_text_bold(h_wnd: HWND; enable: Boolean); |
procedure set_rich_text_border(Handle: HWND; Enable: Boolean); |
procedure set_rich_text_bullets(Handle: HWND; Enable: Boolean); |
procedure set_rich_text_color(handle: HWND; color: COLORREF); |
procedure set_rich_text_font_name(handle: HWND; const font_name: UnicodeString); |
procedure set_rich_text_font_size(handle: HWND; size_points: Integer); |
procedure set_rich_text_font_size_all(handle: HWND; size_points: Integer; all_text: Boolean = False); |
procedure set_rich_text_italic(h_wnd: HWND; enable: Boolean); |
procedure set_rich_text_read_only(Handle: HWND; ReadOnly: Boolean); |
procedure set_rich_text_size(h_wnd: HWND; size: Integer); |
procedure set_rich_text_text(handle: HWND; const text: UnicodeString); |
procedure set_rich_text_underline(h_wnd: HWND; enable: Boolean); |
procedure set_rich_text_word_wrap(Handle: HWND; Enable: Boolean); |
procedure set_rich_text_zoom(handle: HWND; numerator, denominator: Integer); |
procedure set_rich_text_zoom_percent(handle: HWND; percent: Integer); |
Types
t_av_stream_callback = function(dw_cookie: DWORD_PTR; pb_buff: LPBYTE; cb: LongInt; var pcb: LongInt): DWORD; stdcall; |
Variables
old_rich_edit_proc: WNDPROC = nil; |
Description
Functions and Procedures
procedure apply_char_format(h_wnd: HWND; mask, effects: DWORD; color: DWORD; size: Integer); |
|
Pomocnicza funkcja do wysyłania struktury CHARFORMAT2 |
procedure change_rich_text_indent(handle: HWND; increase: Boolean); |
|
This item has no description. |
function create_rich_edit(h_parent: HWND; x, y, w, h: Integer; bg_color, text_color: COLORREF): HWND; |
|
This item has no description. |
function edit_stream_out_callback(dwCookie: DWORD_PTR; pbBuff: PByte; cb: LongInt; pcb: PLongInt): DWORD; stdcall; |
|
Callback do wczytywania (RichEdit -> Program) function edit_stream_in_callback(dwCookie: DWORD_PTR; pbBuff: PByte; cb: LongInt; pcb: PLongInt): DWORD; stdcall; Callback do zapisywania (Program -> RichEdit) |
function find_rich_text(handle: HWND; const search_str: UnicodeString;start_pos: Integer; match_case, whole_word: Boolean): Integer; |
|
StartPos: od którego znaku szukać (0 = początek) |
procedure get_rich_text_caret_pos(handle: HWND; var line, col: Integer); |
|
This item has no description. |
function get_rich_text_line_count(handle: HWND): Integer; |
|
This item has no description. |
function get_rich_text_selection_length(handle: HWND): Integer; |
|
This item has no description. |
function get_rich_text_text(handle: HWND): UnicodeString; |
|
This item has no description. |
procedure goto_rich_text_line(handle: HWND; line_num: Integer); |
|
This item has no description. |
function handle_drop_files(handle: HWND; drop_info: WPARAM): UnicodeString; |
|
Zwraca nazwę pliku, jeśli się udało, lub pusty ciąg znaków |
procedure insert_rich_text_at_cursor(handle: HWND; const a_text: string); |
|
wstawiania w miejscu kursora: |
procedure install_avocado_rich_edit_subclass(h_rich: HWND); |
|
This item has no description. |
function is_rich_text_bold(Handle: HWND): Boolean; |
|
Sprawdza, czy zaznaczony tekst jest pogrubiony |
function is_rich_text_style_active(handle: HWND; style_to_check: Integer): Boolean; |
|
Zwraca True, jeśli zaznaczony tekst jest pogrubiony/kursywą itp. StyleToCheck: 1=Bold, 2=Italic, 4=Underline |
procedure load_rich_text_from_file(h_rich_edit: HWND; const file_path: UnicodeString); |
|
This item has no description. |
procedure reset_to_standard_font(handle: HWND); |
|
Resetuj formatowanie, która ustawia standardowy wygląd |
procedure rich_text_redo(Handle: HWND); |
|
This item has no description. |
procedure rich_text_undo(Handle: HWND); |
|
This item has no description. |
procedure save_rich_text_to_file(handle: HWND; const filename: UnicodeString); |
|
This item has no description. |
procedure select_rich_text(h_rich: HWND; start_pos, len: Integer); |
|
This item has no description. |
procedure set_rich_text_alignment(Handle: HWND; Align: Integer); |
|
1 Left, 2 Center, 3 Right |
procedure set_rich_text_auto_url(handle: HWND; enable: Boolean); |
|
This item has no description. |
procedure set_rich_text_background_color(Handle: HWND; Color: Integer); |
|
zmiana koloru tła |
procedure set_rich_text_bold(h_wnd: HWND; enable: Boolean); |
|
Funkcje formatowania (działają na ZAZNACZONYM tekście) |
procedure set_rich_text_border(Handle: HWND; Enable: Boolean); |
|
zmiana koloru tekstu Włącza lub wyłącza systemową ramkę (3D) |
procedure set_rich_text_bullets(Handle: HWND; Enable: Boolean); |
|
This item has no description. |
procedure set_rich_text_color(handle: HWND; color: COLORREF); |
|
This item has no description. |
procedure set_rich_text_font_name(handle: HWND; const font_name: UnicodeString); |
|
Zmiana nazwy czcionki (np. 'Arial', 'Times New Roman') |
procedure set_rich_text_font_size(handle: HWND; size_points: Integer); |
|
Zmiana rozmiaru (w punktach, np. 10, 12, 14...) |
procedure set_rich_text_font_size_all(handle: HWND; size_points: Integer; all_text: Boolean = False); |
|
This item has no description. |
procedure set_rich_text_italic(h_wnd: HWND; enable: Boolean); |
|
This item has no description. |
procedure set_rich_text_read_only(Handle: HWND; ReadOnly: Boolean); |
|
This item has no description. |
procedure set_rich_text_size(h_wnd: HWND; size: Integer); |
|
This item has no description. |
procedure set_rich_text_text(handle: HWND; const text: UnicodeString); |
|
This item has no description. |
procedure set_rich_text_underline(h_wnd: HWND; enable: Boolean); |
|
This item has no description. |
procedure set_rich_text_word_wrap(Handle: HWND; Enable: Boolean); |
|
This item has no description. |
procedure set_rich_text_zoom(handle: HWND; numerator, denominator: Integer); |
|
This item has no description. |
procedure set_rich_text_zoom_percent(handle: HWND; percent: Integer); |
|
This item has no description. |
Types
t_av_stream_callback = function(dw_cookie: DWORD_PTR; pb_buff: LPBYTE; cb: LongInt; var pcb: LongInt): DWORD; stdcall; |
|
This item has no description. |
Variables
old_rich_edit_proc: WNDPROC = nil; |
|
This item has no description. |
Generated by PasDoc 1.0.4.