Search found 7 matches

by luc
Mon Jan 24, 2022 10:28 am
Forum: ScaleRichView
Topic: Lazarus: Wheelscroll not handled by editor
Replies: 6
Views: 26356

Re: Lazarus: Wheelscroll not handled by editor

You are right, the wheelscroll is working with the demo but not when I use a panel as parent for all the demo components (I had to use additional panel as I need to add some more side panels in the form holding SRV). The wheescroll is working for the thumbnail panel though. Nothing really annoying s...
by luc
Wed Jan 19, 2022 3:01 pm
Forum: ScaleRichView
Topic: Lazarus: Wheelscroll not handled by editor
Replies: 6
Views: 26356

Re: Lazarus: Wheelscroll not handled by editor

Just to give back some code to handle the ctrl+mousewheel to zoom in and out: procedure TFormTextEditor.SRichViewEditMouseWheel(Sender: TObject; Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean); begin if (ssCtrl in Shift) then begin SRichViewEdit.ViewProperty.ZoomPerc...
by luc
Wed Jan 19, 2022 12:34 pm
Forum: ScaleRichView
Topic: Lazarus: Wheelscroll not handled by editor
Replies: 6
Views: 26356

Re: Lazarus: Wheelscroll not handled by editor

Thanks Stan for your help, I did test your code (deleting TVirtualStringTree) but the Form Event is not fired when the mouse is on SRVE. Anyway, I ended up with this simple code and it works fine for me: procedure TFormTextEditor.SRichViewEdit1MouseWheel(Sender: TObject; Shift: TShiftState; WheelDel...
by luc
Tue Jan 18, 2022 9:34 am
Forum: ScaleRichView
Topic: Lazarus: Wheelscroll not handled by editor
Replies: 6
Views: 26356

Lazarus: Wheelscroll not handled by editor

AFAIK ScaleRichView editor doesn't handle the Mouse WheelScroll event, nor the Ctrl+WheeScroll event for zooming.
Tested with the ActionTests demo, without changing any properties to the TSRichViewEdit.
Is there any options to turn on or is it an Lazarus specific issue?
by luc
Tue Jan 18, 2022 9:26 am
Forum: Support
Topic: TScaleRichView: Program crash with Lazarus
Replies: 8
Views: 6117

Re: TScaleRichView: Program crash with Lazarus

Thanks for the fix, I installed the v11.0.2 Indeed, the problem is solved with the original *.docx file but SRV is still crashing with the same file exported as *.rvf or *.rtf with: index(-1) out of bounds message. I was not able to locate the error in the source code since the lazarus debugger does...
by luc
Thu Jan 13, 2022 10:37 am
Forum: Support
Topic: TScaleRichView: Program crash with Lazarus
Replies: 8
Views: 6117

Re: TScaleRichView: Program crash with Lazarus

Thanks for your fast support, I applied the patched *.pas, no more crash on the first file load but I still have problems when loading a file (same file) several times, using: menu/file open. The document layout is not correctly displayed the second time (appears to be the same problem as the one wi...
by luc
Wed Jan 12, 2022 9:42 am
Forum: Support
Topic: TScaleRichView: Program crash with Lazarus
Replies: 8
Views: 6117

TScaleRichView: Program crash with Lazarus

Hi, I started to use TRichView and TScaleRichView with Lazarus2.2.0 (rev lazarus_2_2_0) FPC 3.2.2 x86_64-win64-win32/win64, Installation was fine but unfortunately Demo ActionTestUni crashes every time I tried to import a somewhat basic *.docx file. The same file is correctly imported in the compile...