PDF Viewer DLL?

Moderator: Rathinagiri

Post Reply
edk
Posts: 123
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 35 times
Been thanked: 62 times

Re: PDF Viewer DLL?

Post by edk » Thu Mar 23, 2017 2:09 pm

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.

User avatar
mol
Posts: 2774
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 105 times
Been thanked: 41 times
Contact:

Post by mol » Thu Mar 23, 2017 4:14 pm

I think Krzysztof is able to detect and repair this problem 😄

KDJ
Posts: 159
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 140 times

Post by KDJ » Thu Mar 23, 2017 9:02 pm

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. :cry:

KDJ
Posts: 159
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 140 times

Post by KDJ » Thu Mar 23, 2017 9:57 pm

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:
 
PdfView.zip
(7.43 KiB) Downloaded 33 times

But on a slow computer it can be uncomfortable.
You can turn off it by setting:
- in source code:

Code: Select all

  lOpenAtOnce := .F.
- while the program is running:
Main menu -> "Settings" -> "Open pdf at once"

---
Remark:
I changed "nAction" paramater in Sumatra_Zoom().

User avatar
Rathinagiri
Posts: 5128
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 113 times
Been thanked: 115 times
Contact:

Post by Rathinagiri » Fri Mar 24, 2017 4:11 am

Very nice work! I will use the code wherever possible! Thanks a lot!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

edk
Posts: 123
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 35 times
Been thanked: 62 times

Post by edk » Fri Mar 24, 2017 8:14 am

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. :cry:
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:
PdfView_alt_key__issue.7z
(1.31 MiB) Downloaded 24 times
Edward

KDJ
Posts: 159
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 140 times

Post by KDJ » Sun Mar 26, 2017 3:25 pm

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?

PdfView_1.zip
(7.45 KiB) Downloaded 30 times

edk
Posts: 123
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 35 times
Been thanked: 62 times

Post by edk » Mon Mar 27, 2017 11:26 am

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
Internet_route.png (18.35 KiB) Viewed 244 times
Strange, because the computer has Eset protection, not comodo.

KDJ
Posts: 159
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 140 times

Post by KDJ » Mon Mar 27, 2017 8:23 pm

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.

PdfView_test.zip
(15.38 KiB) Downloaded 18 times

edk
Posts: 123
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 35 times
Been thanked: 62 times

Post by edk » Mon Mar 27, 2017 9:50 pm

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.

Post Reply