Search found 212 matches
- Tue May 03, 2022 12:02 pm
- Forum: Support
- Topic: CTRL+I - what's it doing?
- Replies: 4
- Views: 5339
Re: CTRL+I - what's it doing?
It's doing a built-in tab insert. The way I override ctrl + i is to assign a popup menu with an item that has a ctrl + i shortcut assigned to it. Sergey might have another way but that's the only one I know.
- Mon Apr 11, 2022 6:03 pm
- Forum: Support
- Topic: TRichViewEdit. Modify bold only
- Replies: 9
- Views: 3490
Re: TRichViewEdit. Modify bold only
My post above was just some test code to try and help the original poster. Not sure if what I tried will help him or not. Stan
- Mon Apr 11, 2022 2:56 pm
- Forum: Support
- Topic: TRichViewEdit. Modify bold only
- Replies: 9
- Views: 3490
Re: TRichViewEdit. Modify bold only
I tried this and it seems to be working. I'm changing the bold this way: procedure TForm1.ToggleBold; begin if rve.GetItemStyle(rve.CurItemNo) <> 1 then rve.ApplyTextStyle(1) else rve.ApplyTextStyle(0); rve.Reformat; end; Then, using your function: function TextoRTF: string; var lRTF: TStringStream;...
- Fri Mar 25, 2022 3:36 pm
- Forum: Support
- Topic: How to make a particular line to topmost?
- Replies: 5
- Views: 2882
Re: How to make a particular line to topmost?
I had forgotten about tables again. I'm not implementing them as such in my app but I do like to account for them in case I copy and paste one or more tables into my rve. I hadn't gotten quite as far as using CaretDrawItemNo but yes, that's the better way! I would have probably gotten to that eventu...
- Fri Mar 25, 2022 2:26 pm
- Forum: Support
- Topic: How to make a particular line to topmost?
- Replies: 5
- Views: 2882
Re: How to make a particular line to topmost?
I tried this and it seems to work:
Code: Select all
procedure ScrollItemToTop(rve: TCustomRichViewEdit);
var
DItem, DOffs: integer;
begin
rve.RVData.Item2DrawItem(rve.CurItemNo, rve.OffsetInCurItem, DItem, DOffs );
rve.ScrollToDrawItem( rve.RVData, DItem, false, false );
rve.SetFocusSilent;
end;
- Mon Mar 21, 2022 12:40 pm
- Forum: Support
- Topic: Custom Caret Ghost Carets
- Replies: 8
- Views: 8701
Re: Custom Caret Ghost Carets
Just a follow up. Sergey fixed this in the component so if you are using v20 you might want to turn the double buffering back on in the panels the rve is sitting on. I was having some issues with some canvas lineto code in my rve paint method and it was because I needed to re-enable the buffering. A...
- Tue Feb 15, 2022 12:17 pm
- Forum: ScaleRichView
- Topic: According to problems
- Replies: 2
- Views: 19301
Re: According to problems
I'm using a plain richviewedit with an rvprintpreview, but in that scenario, these work:
Maybe it's similar in the scale rv?
Code: Select all
RVPrintPreview1.ZoomMode := rvzmPageWidth ;
RVPrintPreview1.ZoomMode := rvzmFullPage ;
- Tue Feb 15, 2022 12:13 pm
- Forum: Support
- Topic: SynPDF+TSRichViewEdit,The inline-Images are deformed
- Replies: 10
- Views: 5606
Re: SynPDF+TSRichViewEdit,The inline-Images are deformed
I've tried many PDF engines before choosing SynPDF... - You shouldn't rely on "MS PDF printer" which might not be installed on every computers, except if you control where you application is installed - Most other PDF engines I've tried but discarded due to bugs, limitations, lack of supp...
- Fri Feb 11, 2022 12:44 pm
- Forum: Support
- Topic: SynPDF+TSRichViewEdit,The inline-Images are deformed
- Replies: 10
- Views: 5606
Re: SynPDF+TSRichViewEdit,The inline-Images are deformed
Thank u again:) I found TRVPrint export pdf worked fine:Just need set the margins property,so I avoided the problem.That's enough:) By the way,LLibPDF is not stable for me when I try to export many rvf files,SynPDF is perfect. I have bought the update license:) Interesting posts about exporting to ...
- Thu Jan 20, 2022 4:38 pm
- Forum: Support
- Topic: How can select a block?
- Replies: 2
- Views: 2216
Re: How can select a block?
I doubt if you can do that with this component. Notepad++ uses Scintilla as the editing component. It's made for that kind of stuff (see https://www.scintilla.org/ScintillaDoc.html ). I think they call that rectangular selection. Scintilla is made more for code style editors, while the rich view is ...
- Thu Jan 20, 2022 4:27 pm
- Forum: Support
- Topic: How to invert upper case letters and vice versa
- Replies: 3
- Views: 2568
Re: How to invert upper case letters and vice versa
This link has what I think you are after (if you want to do the code yourself):
https://lonewolfonline.net/delphi-strin ... onversion/
Inverting the case is the ToggleCase function, and the cap each letter is the TitleCase function.
Stan
https://lonewolfonline.net/delphi-strin ... onversion/
Inverting the case is the ToggleCase function, and the cap each letter is the TitleCase function.
Stan
- Wed Jan 19, 2022 2:20 pm
- Forum: ScaleRichView
- Topic: Lazarus: Wheelscroll not handled by editor
- Replies: 6
- Views: 25501
Re: Lazarus: Wheelscroll not handled by editor
Makes sense, the srve probably "steals" the mouse message. Glad you got it working!
Stan
Stan
- Tue Jan 18, 2022 12:55 pm
- Forum: ScaleRichView
- Topic: Lazarus: Wheelscroll not handled by editor
- Replies: 6
- Views: 25501
Re: Lazarus: Wheelscroll not handled by editor
I tried the compiled ActionTests demo I have and there's no mousewheel action in it. I would assume it was compiled in delphi. I'm using a plain rve (not the scale version), but I found that in the app I'm currently working on that I had the best luck with putting mouse wheel code in the form: proce...
- Mon Jan 17, 2022 5:10 pm
- Forum: ScaleRichView
- Topic: adding text to an image in SRV page
- Replies: 8
- Views: 41251
Re: adding text to an image in SRV page
Hi Sergey and ChinaLer, I've tried both OnAfterDrawImage and tables. I'll put in a couple of screenshots below. The OnAfterDrawImage looks good, but there's a couple of things ChinaLer might need to keep in mind. The title is not (as far as I can tell) part of the image, so you have to figure out a ...
- Sat Jan 08, 2022 12:37 pm
- Forum: Support
- Topic: Table Background Image
- Replies: 3
- Views: 3093
Re: Table Background Image
Thanks Sergey, that would be great.Sergey Tkachenko wrote: ↑Sat Jan 08, 2022 11:02 am A preview of background pictures will be improved in the next update.
FYI, even if the preview looks odd, it still prints OK.
Stan