Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

Insert Richedit method Find similar branches


Atrem   (2001-12-18 19:18) [0]

Hi, I need to insert a character in the text of Richedit, I write
Richedit.lines.insert (richedit.selstart + 1, "@");
richedit.refresh;
For some reason, nothing happens?



KilkennyCat   (2001-12-19 02:40) [1]

because it is not correct.
Your code should add the character "@" as a new line with an index = the beginning of the selection. Conclusion: if nothing is selected, nothing will be inserted.
If selected, but the beginning of the selection is greater than the lines - nothing is inserted.



Slava   (2001-12-19 07:35) [2]

And so:
RichEdit.SetSelTextBuf ("@");



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top





Memory: 0.54 MB
Time: 0.024 c
4:22497
Syrius
2001-11-07 09:13
2002.01.08
Delphi 6 and Win32 API


1:22085
ProfiUgl
2001-12-19 15:24
2002.01.08
How to read command line options


1:22264
Anatoly
2001-12-17 06:36
2002.01.08
Chart


7:22426
inferno123
2001-09-25 10:32
2002.01.08
Port programming


3:21942
Rev
2001-12-03 12:19
2002.01.08
Good people help with the stored procedure.





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish