Форум: "Потрепаться";
Текущий архив: 2003.08.18;
Скачать: [xml.tar.bz2];
Вниз
Ограничение в 65536 символов в RichEdit Найти похожие ветки
← →
VID (2003-08-02 17:02) [0]ОС win2k.
Как обойти это ограничение ?
просто при вставке текста в RichEdit методом CTRL+V вставляется только 65536 символов, будь то форматированный текст или plain-text.
Можно конечно использовать вариант
RichEdit.Text := ClipBoard.AsText но этот вариант во-первых не поддерживает форматированный текст, а во-вторых... см. во-первых :)
← →
Desdechado (2003-08-02 17:14) [1]На 98 точно знаю, что Richedit глючит - в него можно добавить больше 64к, но какие-то куски в середине пропадают. Правда, это не через буфер обмена делалось, а из проги.
На 2000 такого не замечал.
У клипборда есть
property Formats[Index: Integer]: Word;
Read Formats to determine what formats encode the information currently on the clipboard. Each format can be accessed by its position in the array.
Usually, when an application copies or cuts something to the clipboard, it places it there in multiple formats. An application can place items of a particular format on the clipboard and retrieve items with a particular format from the clipboard if the format is in the Formats array. To find out if a particular format is available on the clipboard, use the HasFormat method.
When reading information from the clipboard, use the Formats array to choose the best possible encoding for information that can be encoded in several ways.
Before you can write information to the clipboard in a particular format, the format must be registered. To register a new format, use the RegisterClipboardFormat method of TPicture.
может, пригодится
← →
VID (2003-08-02 17:29) [2]а какой номер имеет Rich Text Format ?
← →
Anatoly Podgoretsky (2003-08-02 17:54) [3]Указать размер, для этого есть свойство MaxLength
← →
VID (2003-08-02 18:14) [4]не догнал...
← →
Anatoly Podgoretsky (2003-08-02 18:35) [5]Медленно и по буквам, если ты хочешь ограничение свыше 65536 символов, то установи это свойство в 65537
← →
VID (2003-08-02 23:07) [6]всё-таки эстонский язык это сила! :))) Вот теперь догнал.
Спасибо :)
← →
Умник (2003-08-03 07:32) [7]Удалено модератором
Страницы: 1 вся ветка
Форум: "Потрепаться";
Текущий архив: 2003.08.18;
Скачать: [xml.tar.bz2];
Память: 0.45 MB
Время: 0.004 c