Page 6 of 17
Re: PDF Viewer DLL?
Posted: Thu Mar 23, 2017 2:09 pm
by edk
mol wrote: βThu Mar 23, 2017 1:01 pm
Great job! Thank you Krzysztof!
My first run hangs up application, too.
But, after reset computer, it worked OK.
Marek, unfortunately after restarting my computer I still have the same issue.
Try the following steps:
1. Run PdfView.exe
2. Press Enter, it will load "Hmg-help.pdf".
3. Press TAB to go to SumatraPanel (this allow to navigate through the pdf document with cursors).
4. Press left ALT, then release ALT key.
Of course there are words of appreciation for Krzysztof for an outstanding job.
Edward.
Re: PDF Viewer DLL?
Posted: Thu Mar 23, 2017 4:14 pm
by mol
I think Krzysztof is able to detect and repair this problem

Re: PDF Viewer DLL?
Posted: Thu Mar 23, 2017 9:02 pm
by KDJ
Thank you all colleagues for your interest.
edk wrote: βThu Mar 23, 2017 10:08 am
There is a small bug:
Open any PDF file, then set focus to "SumatraPanel" (press Tab key or click on SumatraPanel), then press left Alt key. The program will freeze.
Edward
I have not reproduced such behavior.
I tested PdfView 32-bit with SumatraPDF 32-bit on:
- Win-XP 32-bit,
- Win-7 64-bit,
and for me all works properly.
I do not know what the cause is, that for you it does not work.

Re: PDF Viewer DLL?
Posted: Thu Mar 23, 2017 9:57 pm
by KDJ
Pablo CΓ©sar wrote: βWed Mar 22, 2017 9:38 pm
May I offer my little tip ? Or to give my opinion regarding GRID Files:
We would change
ONDBLCLICK by
ONCHANGE.
Pablo
Try this version:
Β
But on a slow computer it can be uncomfortable.
You can turn off it by setting:
- in source code:
- while the program is running:
Main menu -> "Settings" -> "Open pdf at once"
---
Remark:
I changed "nAction" paramater in Sumatra_Zoom().
Re: PDF Viewer DLL?
Posted: Fri Mar 24, 2017 4:11 am
by Rathinagiri
Very nice work! I will use the code wherever possible! Thanks a lot!
Re: PDF Viewer DLL?
Posted: Fri Mar 24, 2017 8:14 am
by edk
KDJ wrote: βThu Mar 23, 2017 9:02 pm
(...)
Edward
I have not reproduced such behavior.
I tested PdfView 32-bit with SumatraPDF 32-bit on:
- Win-XP 32-bit,
- Win-7 64-bit,
and for me all works properly.
I do not know what the cause is, that for you it does not work.
Hello Krzysztof.
I tested the program on Windows XP and this issue does not occur.
On Windows 10 32-bit and 64-bit machines, it hangs.
When I kill the "SumatraPDF" process, it returns control over PdfView.
It looks as if pressing the Alt key activates both menus: PdfView and SumatraPDF. Because the SumatraPDF menu is hidden, it can not be controlled.
Interestingly, if Sumatra Panel is focused, menu calls such as Alt-F or Alt-P do not freeze the program, also it does not activate the PDFView menu. There is no reaction to these keys.
If Grid Files is focused then you can activate the PDFView menu with Alt-F, Alt-P, etc.
Here is recorded screen:
Edward
Re: PDF Viewer DLL?
Posted: Sun Mar 26, 2017 3:25 pm
by KDJ
Hi Edward
Can you try test version (below) on Win-10?
In this, the main menu is detached.
Set focus to SumatraPnel and press and release LeftAlt or F10, next press Enter or down arrow.
Is the system (window) menu appears?
Re: PDF Viewer DLL?
Posted: Mon Mar 27, 2017 11:26 am
by edk
Hi Krzysztof, the same issue

The system menu does not appear. The Start button and WinKey are "dead"
I tested the application with my client, who has win8, works fine, but when starting PdfView.exe, FireWall detect strange network traffic:

- Internet_route.png (18.35 KiB) Viewed 5301 times
Strange, because the computer has Eset protection, not comodo.
Re: PDF Viewer DLL?
Posted: Mon Mar 27, 2017 8:23 pm
by KDJ
edk wrote: βMon Mar 27, 2017 11:26 am
I tested the application with my client, who has win8, works fine, but when starting PdfView.exe, FireWall detect strange network traffic:
---
Strange, because the computer has Eset protection, not comodo.
Probably some bug in Eset Security.
---
Edward
Can you test PdfView_2 and PdfView_3 on Win-10?
In PdfView_2 is disabled service of WM_INITMENU and WM_EXITMENULOOP.
In PdfView_3 is disabled system menu.
Re: PDF Viewer DLL?
Posted: Mon Mar 27, 2017 9:50 pm
by edk
Krzysztof.
PdfView_2
Focused Files Grid: LeftAlt / F10 - title bar menu appear. I can navigate through menu with cursors and mouse.
Focused SumatraPanel: LeftAlt / F10 - title bar menu does not appear. Not working Windows Menu Start (by Start button and WinKEy), I can't navigate through PDF with cursor keys or mouse,
BUT:
Tab key is working, I can go back to Files Grid, cursor keys and mouse still not working (I can't change selected file),
Esc key is working on both: Files Grid and SumatraPanel, release program.
PdfView_3
Focused Files Grid or SumatraPanel: LeftAlt / F10 - title bar menu does not appear. It looks like there is no reaction to LeftAlt and F10 keys. The program is still working properly.
Erratum to PdfView_1:
edk wrote: βMon Mar 27, 2017 11:26 am
Hi Krzysztof, the same issue

The system menu does not appear.
On Files Grid: LeftAlt / F10 - title bar menu appear. I can navigate through menu with cursors and mouse.
On SumatraPanel: LeftAlt / F10 - title bar menu does not appear. Any key and mouse is not working.