OOps I missed the timer funciton it goes to before WMAfterPaste
This is to allow the paste function to complete.
// Replace the timer callback with this method:
procedure TfmBookView.OnAfterPasteTimer(Sender: TObject);
begin
FAfterPasteTimer.Enabled := False;
try
// Validate we're still in the ...
Search found 311 matches
- Thu Jul 17, 2025 8:07 pm
- Forum: Support
- Topic: Bad RTF table causing RichView to error
- Replies: 9
- Views: 5547
- Thu Jul 17, 2025 8:01 pm
- Forum: Support
- Topic: Bad RTF table causing RichView to error
- Replies: 9
- Views: 5547
Re: Bad RTF table causing RichView to error
Here is the function it starts in readerpaste and ends in WMAfterPaste and it all seems to work fine until I click on a different reader....
var
MuteReaderPasteDelegate: Boolean = False;
TextStyleBeforePaste, ParaStyleBeforePaste: Integer;
procedure TfmBookView.readerPaste(Sender ...
var
MuteReaderPasteDelegate: Boolean = False;
TextStyleBeforePaste, ParaStyleBeforePaste: Integer;
procedure TfmBookView.readerPaste(Sender ...
- Thu Jul 17, 2025 12:53 am
- Forum: Support
- Topic: Bad RTF table causing RichView to error
- Replies: 9
- Views: 5547
Re: Bad RTF table causing RichView to error
I have found the problem but not sure why it exists:
//SHIFT not pressed (UP)
if GetKeyState(VK_SHIFT) and $ff00 = 0 then begin
try
s := reader.GetItemTag(i);
p := Pos(':', s);
if (p>0) and(p<6) then continue;
reader.SetItemTag(i, ''); <------------if I comment this out I am fine
except
on ...
//SHIFT not pressed (UP)
if GetKeyState(VK_SHIFT) and $ff00 = 0 then begin
try
s := reader.GetItemTag(i);
p := Pos(':', s);
if (p>0) and(p<6) then continue;
reader.SetItemTag(i, ''); <------------if I comment this out I am fine
except
on ...
- Wed Jul 16, 2025 12:04 am
- Forum: Support
- Topic: odd formatting issue - not sure of the cause.
- Replies: 1
- Views: 1121
odd formatting issue - not sure of the cause.
Here is the good format
Sometimes it just loads like this. If the topic is reloaded it can then be fine.
- Tue Jul 15, 2025 9:46 pm
- Forum: Support
- Topic: Bad RTF table causing RichView to error
- Replies: 9
- Views: 5547
Re: Bad RTF table causing RichView to error
It is highly possible I've done something wrong and just have no idea on how to get to the bottom of it.
- Tue Jul 15, 2025 6:50 pm
- Forum: Support
- Topic: Bad RTF table causing RichView to error
- Replies: 9
- Views: 5547
Re: Bad RTF table causing RichView to error
Is this related Sergey?
It is showing up in the Richview interface but not always.
It is showing up in the Richview interface but not always.
- Sat Jul 12, 2025 8:53 pm
- Forum: Support
- Topic: Bad RTF table causing RichView to error
- Replies: 9
- Views: 5547
Bad RTF table causing RichView to error
Greetings Sergey,
I am getting an error in this code:
First chance exception at $75D50144. Exception class EListError with message 'List index out of bounds (-1). TRVList is empty'.
I know it is bad RTF code on a Table (however, I can't always fix the bad RTF tables. These can be from users. Is ...
I am getting an error in this code:
First chance exception at $75D50144. Exception class EListError with message 'List index out of bounds (-1). TRVList is empty'.
I know it is bad RTF code on a Table (however, I can't always fix the bad RTF tables. These can be from users. Is ...
- Wed Jul 09, 2025 8:48 pm
- Forum: Support
- Topic: HighDPI Windows zoom
- Replies: 3
- Views: 16657
Re: HighDPI Windows zoom
I think I found it: PixelsPerInch this was used through out with TRStyles and so I need to go throughout and update.
reader2.Style.TextStyles.PixelsPerInch
reader2.Style.TextStyles.PixelsPerInch
- Wed Jul 09, 2025 4:37 pm
- Forum: Support
- Topic: HighDPI Windows zoom
- Replies: 3
- Views: 16657
Re: HighDPI Windows zoom
I read some place else that it is natively supported. So I must have something on I don't need???
Ideas on what that could be?
Ideas on what that could be?
- Wed Jul 09, 2025 4:23 pm
- Forum: Support
- Topic: HighDPI Windows zoom
- Replies: 3
- Views: 16657
HighDPI Windows zoom
I am working on making our application support Zoom in WIndows 125%, 150% etc.
For alot of forms there is a scaled option.
I know I could use RichView.DocumentPixelsPerInch = 144, instead of the normal 96.
Is there a way to adjust this behind the scenes to RichView itself? We are using primarily ...
For alot of forms there is a scaled option.
I know I could use RichView.DocumentPixelsPerInch = 144, instead of the normal 96.
Is there a way to adjust this behind the scenes to RichView itself? We are using primarily ...
- Thu May 29, 2025 6:59 pm
- Forum: Support
- Topic: Building document on scroll
- Replies: 1
- Views: 17622
Building document on scroll
Is there a way to add to a document on scroll instead of all at the start?
practically would it help with extremely big documents? Or with documents that have TRichviewEdit subeditors?
practically would it help with extremely big documents? Or with documents that have TRichviewEdit subeditors?
- Thu Jan 23, 2025 7:37 pm
- Forum: Examples, Demos
- Topic: [Demo] Editors in editors
- Replies: 18
- Views: 622741
Re: [Demo] Editors in editors
Is there a way when an editor is in an editor to make it so that it doesn't have a background color on the paragraph?
I would like to be able to highlight text in the future but for now I wnat to make the editor's background transparent. That way if there is an image or color behind it that is ...
I would like to be able to highlight text in the future but for now I wnat to make the editor's background transparent. That way if there is an image or color behind it that is ...
- Thu Jan 02, 2025 9:21 pm
- Forum: Support
- Topic: RichViewEdit format without a component
- Replies: 2
- Views: 94161
Re: RichViewEdit format without a component
Or does rvdata.NormalizeDocument(0,True); essentially concate as needed? If so perhaps I am missing something else in my code.
- Thu Jan 02, 2025 8:27 pm
- Forum: Support
- Topic: RichViewEdit format without a component
- Replies: 2
- Views: 94161
RichViewEdit format without a component
I am using the following code TRichViewEditEx is basically TRichViewEdit with a bit more.
I need to run rv.Format but I get a parent error. The reason I need to run format is I am having trouble with some links not being the same. Either that or I am missing something else.
It is a tricky bug in my ...
I need to run rv.Format but I get a parent error. The reason I need to run format is I am having trouble with some links not being the same. Either that or I am missing something else.
It is a tricky bug in my ...
- Wed Oct 09, 2024 7:36 pm
- Forum: Support
- Topic: Fastest way to get text from an RichViewEdit
- Replies: 1
- Views: 77166
Fastest way to get text from an RichViewEdit
I am trying to determine which function would be faster.
Any tips?
function TFmBibleSearch.GetInputText: UnicodeString;
begin
Result := RVGetTextRange(rvInput, 0, RVGetTextLength(rvInput));
//remove new lines
Result :=GlobalUtils.StringReplaceU(Result, #13, '');
Result :=GlobalUtils ...
Any tips?
function TFmBibleSearch.GetInputText: UnicodeString;
begin
Result := RVGetTextRange(rvInput, 0, RVGetTextLength(rvInput));
//remove new lines
Result :=GlobalUtils.StringReplaceU(Result, #13, '');
Result :=GlobalUtils ...