Hi,
Because I cannot exceed an screen height corresponding to 12 lines Times New Roman, size 14, in my RichViewEdit, is it a way to shrink the fonts of the text ? So text with 15 lines may contain in the expected space (if text becomes Times New Roman 12 or 11 maybe).
Thank you
Search found 12 matches
- Thu Mar 21, 2024 11:11 am
- Forum: Support
- Topic: Shrink the text
- Replies: 1
- Views: 13578
- Wed Mar 20, 2024 11:39 am
- Forum: Support
- Topic: I want the user cannot write more than 12 lines
- Replies: 1
- Views: 12778
I want the user cannot write more than 12 lines
As I say in the title, I want to limit the number of lines writed by the user in a TRichViewEdit.
Maybe there are different ways :
- disable KeyPress if line count > 12
- unable the rve to scroll is user want to begin a 13th line
- other idea
Thanks
Maybe there are different ways :
- disable KeyPress if line count > 12
- unable the rve to scroll is user want to begin a 13th line
- other idea
Thanks
- Sun Mar 17, 2024 7:54 pm
- Forum: Support
- Topic: Make the caret visible
- Replies: 3
- Views: 14320
Re: Make the caret visible
rve.Format was done.
The key is really rve.SetFocus : the caret is now visible.
But, strangely, it blinks 5 times then remains frozen (visible but not blinking).
Thank you
The key is really rve.SetFocus : the caret is now visible.
But, strangely, it blinks 5 times then remains frozen (visible but not blinking).
Thank you
- Sun Mar 17, 2024 12:24 pm
- Forum: Support
- Topic: Make the caret visible
- Replies: 3
- Views: 14320
Make the caret visible
Hi,
I load a TRichViewEdit from a database, then I want the caret be visible at the end of the text. I try
rve.MoveCaret(rvcmBottom, false);
but the caret remains invisible.
How to proceed ?
Thanks
I load a TRichViewEdit from a database, then I want the caret be visible at the end of the text. I try
rve.MoveCaret(rvcmBottom, false);
but the caret remains invisible.
How to proceed ?
Thanks
HunSpell
Hi, I try to install this functionnality in my project. I put on the form a RVAHunSpellInterface, a RVHunSpell, a RVAControlPanel and I affect properties. When I run the program I get an error in procedure TRVAHunSpellInterface.DoSpellFormLocalize(Sender: TRVHunSpell; Form: TfrmRVCustomSpell ...
- Fri Mar 08, 2024 1:26 pm
- Forum: Examples, Demos
- Topic: How to print the content of a RichViewEdit ?
- Replies: 4
- Views: 16492
Re: How to print the content of a RichViewEdit ?
I have found a solution, not clever but it works !
rve.SaveRTF('board.rvf', false);
RE.Lines.LoadFromFile('board.rvf');
RE.PlainText := false;
where RVE is the TRichViewEdit and RE a TJvRichEdit.
So I can use the previous code !
rve.SaveRTF('board.rvf', false);
RE.Lines.LoadFromFile('board.rvf');
RE.PlainText := false;
where RVE is the TRichViewEdit and RE a TJvRichEdit.
So I can use the previous code !
- Fri Mar 08, 2024 12:54 pm
- Forum: Examples, Demos
- Topic: How to print the content of a RichViewEdit ?
- Replies: 4
- Views: 16492
Re: How to print the content of a RichViewEdit ?
A Printer is already in use before I want to print the content of the TrichViewEdit, because there are lot of informations printed on a A4 page, and the content of the TRichViewEdit is just a part of them.
- Fri Mar 08, 2024 9:42 am
- Forum: Examples, Demos
- Topic: How to print the content of a RichViewEdit ?
- Replies: 4
- Views: 16492
How to print the content of a RichViewEdit ?
Hi, With a TRichEdit, I use this code : /////////////////////////////////////////////////////////////////// RE is the RichEdit var Range : TFormatRange; SaveRect: TRect; TextLenEx: TGetTextLengthEx; LastChar, MaxLen : integer; /////////////////////////////// printing code FillChar(Range, SizeOf ...
- Thu Mar 07, 2024 9:06 am
- Forum: Support
- Topic: How to convert old data from TRichEdit to TRichView
- Replies: 10
- Views: 20450
Re: How to convert old data from TRichEdit to TRichView
I cannot use rve.LoadRVFFromStream(theBS) with the existing database because rve is empty after that : no text. So I use rve.LoadFromStream(theBS, rvynaAuto), and I get text with cards symbol, all correct but not in "my" styles. It seems rve makes styles that it recognizes in the flow, so if a card ...
- Wed Mar 06, 2024 1:44 pm
- Forum: Support
- Topic: How to convert old data from TRichEdit to TRichView
- Replies: 10
- Views: 20450
Re: How to convert old data from TRichEdit to TRichView
If I don't add new styles (= new fonts), the text is in Arial 10 with clRed BackColor. How to transform text in the RichViewEdit into Times New Roman 14, and more difficult to put caracters 167 to 170 (card suit symbols) in Symbol 15 with the right color (spade = navy, heart = red, etc.). text ...
- Wed Mar 06, 2024 1:26 pm
- Forum: Support
- Topic: How to convert old data from TRichEdit to TRichView
- Replies: 10
- Views: 20450
Re: How to convert old data from TRichEdit to TRichView
The Database is ABSDatabase, and Table are TABSDatabase (Component Aces). The content of the text is in a TABSBlobField (derived from Blob Field). I see the styles by clicking a button to execute this procedure : st := ''; for i := 6 to rvs.TextStyles.Count // 6 because 0 to 5 are defined styles do ...
- Wed Mar 06, 2024 10:58 am
- Forum: Support
- Topic: How to convert old data from TRichEdit to TRichView
- Replies: 10
- Views: 20450
How to convert old data from TRichEdit to TRichView
Hi, I have a huge database containing text (mix of Times New Roman and Symbol fonts). When I load one of these texts, I can see the style numbers. And when I load another text, I see same font names, but not with the same style number. In example : in the first text, I see that the style number 8 is ...