Unit avoraiser.memo
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.memo Description:
Uses
Overview
Functions and Procedures
procedure append_memo_text(hMemo: HWND; const Text: string); |
function create_memo(Parent: HWND; X, Y, Width, Height: Integer): HWND; |
function get_line_count(Handle: HWND): Integer; |
function get_line_index(handle: HWND; line_index: Integer): Integer; |
function get_line_length(handle: HWND; char_index: Integer): Integer; |
function get_line_text(handle: HWND; line_index: Integer): string; |
function get_memo_line_count(hMemo: HWND): Integer; |
function get_memo_text(hMemo: HWND): string; |
function get_memo_text_length(hMemo: HWND): Integer; |
procedure insert_text_at_cursor(hMemo: HWND; const Text: string); |
function is_memo_modified(hMemo: HWND): Boolean; |
function load_memo_from_file(h_memo: HWND; const file_path: UnicodeString): Boolean; |
procedure scroll_memo(Handle: HWND; Direction: Integer); |
procedure scroll_memo_to_caret(Handle: HWND); |
procedure scroll_memo_to_end(Handle: HWND); |
procedure set_memo_fmt_lines(Handle: HWND; AddBreaks: Boolean); |
procedure set_memo_limit(hMemo: HWND; MaxChars: DWORD); |
procedure set_memo_limit(Handle: HWND; Limit: Integer); |
procedure set_memo_modified(hMemo: HWND; Modified: Boolean); |
procedure set_memo_read_only(hMemo: HWND; ReadOnly: Boolean); |
procedure set_memo_text(h_memo: HWND; const a_text: UnicodeString); |
function write_string_to_file(const file_path: UnicodeString; const content: UnicodeString): Boolean; |
Description
Functions and Procedures
procedure append_memo_text(hMemo: HWND; const Text: string); |
|
This item has no description. |
function create_memo(Parent: HWND; X, Y, Width, Height: Integer): HWND; |
|
Glowna funkcja tworzenia memo |
function get_line_count(Handle: HWND): Integer; |
|
informacje o tekście Zwraca liczbę linii (zawsze minimum 1, nawet jak pusty) |
function get_line_index(handle: HWND; line_index: Integer): Integer; |
|
Zwraca indeks znaku, od którego zaczyna się dana linia line_index: numer linii od 0. (-1 = linia, w której jest kursor) |
function get_line_length(handle: HWND; char_index: Integer): Integer; |
|
Zwraca długość linii w znakach char_index: indeks dowolnego znaku w tej linii (lub -1 dla obecnej linii) UWAGA: WinAPI wymaga tu indeksu znaku, a nie numeru linii! |
function get_line_text(handle: HWND; line_index: Integer): string; |
|
Pobiera treść całej linii jako String |
function get_memo_line_count(hMemo: HWND): Integer; |
|
Liczenie linii i znaków |
function get_memo_text(hMemo: HWND): string; |
|
This item has no description. |
function get_memo_text_length(hMemo: HWND): Integer; |
|
This item has no description. |
procedure insert_text_at_cursor(hMemo: HWND; const Text: string); |
|
Wstawianie tekstu w miejsce kursora |
function is_memo_modified(hMemo: HWND): Boolean; |
|
Sprawdzanie, czy tekst został zmieniony (Modified) |
function load_memo_from_file(h_memo: HWND; const file_path: UnicodeString): Boolean; |
|
This item has no description. |
procedure scroll_memo(Handle: HWND; Direction: Integer); |
|
nawigacja (scrolling) Przewija widok. Direction: SB_LINEDOWN (1), SB_LINEUP (0), SB_PAGEDOWN (3), SB_PAGEUP (2) |
procedure scroll_memo_to_caret(Handle: HWND); |
|
Przesuwa widok tak, aby kursor był widoczny |
procedure scroll_memo_to_end(Handle: HWND); |
|
Przewija na sam koniec (Auto-Scroll, np. w logach) |
procedure set_memo_fmt_lines(Handle: HWND; AddBreaks: Boolean); |
|
Włącza (True) lub wyłącza (False) dodawanie znaków końca linii przy zawijaniu wierszy |
procedure set_memo_limit(hMemo: HWND; MaxChars: DWORD); |
|
Limit znaków w memo |
procedure set_memo_limit(Handle: HWND; Limit: Integer); |
|
Limit: 0 = Maksymalny możliwy (ok. 2 miliardy znaków). |
procedure set_memo_modified(hMemo: HWND; Modified: Boolean); |
|
This item has no description. |
procedure set_memo_read_only(hMemo: HWND; ReadOnly: Boolean); |
|
Pozwala ona zablokować edycję tekstu |
procedure set_memo_text(h_memo: HWND; const a_text: UnicodeString); |
|
Ta funkcja po prostu zastępuje całą treść w Memo nowym tekstem. |
function write_string_to_file(const file_path: UnicodeString; const content: UnicodeString): Boolean; |
|
Zapisywanie tekstu z memo do pliku |
Generated by PasDoc 1.0.4.