Re: [Lazarus] help with NNTP posting

2024-11-19 Thread Marcus Sackrow via lazarus
Am 20.11.2024 um 08:34 schrieb Marcus Sackrow via lazarus:    LineToStream('"peppepolpo" '); just noticed here is also the 'From:' missing! LineToStream('From: "peppepolpo" '); -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists

Re: [Lazarus] help with NNTP posting

2024-11-19 Thread Marcus Sackrow via lazarus
Hi, Am 19.11.2024 um 21:25 schrieb duilio foschi via lazarus: I cannot understand how I can post a message into a newsgroup using INet components. I am not 100% sure but as far as I remember you need to send a single "POST" command first check the return code if you are even allowed to post a

Re: [Lazarus] Find exact cursor position in TMemo

2024-11-19 Thread Timothy Groves via lazarus
Perhaps, but SynEdit doesn't have soft wrap. On 2024-11-19 14:44, Jean SUZINEAU via lazarus wrote: I'm not sure, but I guess it would be easier with SynEdit , TSynEdit( and maybe TSynAutoComplete ?) : https://wiki.freepascal.org/SynEdit -- ___ laza

[Lazarus] help with NNTP posting

2024-11-19 Thread duilio foschi via lazarus
I cannot understand how I can post a message into a newsgroup using INet components. I can connect, authenticate, join a group and issue several commands like ARTICLE BODY HEAD XOVER However, when I try to post a message, my code always returns 500 (unknown command or wrong syntax). Any help? T

Re: [Lazarus] Find exact cursor position in TMemo

2024-11-19 Thread Jean SUZINEAU via lazarus
I'm not sure, but I guess it would be easier with SynEdit , TSynEdit( and maybe TSynAutoComplete ?) : https://wiki.freepascal.org/SynEdit -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Find exact cursor position in TMemo

2024-11-19 Thread Timothy Groves via lazarus
I'm using a TMemo as the base of a text editor, and the editor has to do some text replacement.  How do I get the exact insert position of the insertion point?  I used SelStart, but when the insertion point is too close to the end of the document, this becomes unreliable.  Here's my code. proc