PDF Viewer DLL?

Moderator: Rathinagiri

Post Reply
User avatar
vagblad
Posts: 160
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece

Re: PDF Viewer DLL?

Post by vagblad »

I am posting my own test results which are more or so the same as edk's. Tested it on 2 OS.

PdfView_1
Windows Server 2012 x64 - Everything works ok on either panel
Windows 10 x64 - When the grid panel is focused everything works fine, when the Sumatra panel is focused title bar menu does not show and program hangs.

PdfView_2
Windows Server 2012 x64 - Everything works ok on either panel
Windows 10 x64 - Everything works ok on either panel

PdfView_3
Windows Server 2012 x64 - Title bar menu does not show when either panel is focused, program continues to work just fine.
Windows 10 x64 - Title bar menu does not show when either panel is focused, program continues to work just fine.

Thanks again KDJ for the prg.
Vagelis Prodromidis
Email: vagblad@gmail.com, Skype: vagblad
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PDF Viewer DLL?

Post by KDJ »

edk wrote: Mon Mar 27, 2017 9:50 pm PdfView_2
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,
vagblad wrote: Tue Mar 28, 2017 1:31 pm PdfView_2
Windows 10 x64 - Everything works ok on either panel

We received two conflicting test results for PdfView_2 on Win-10.
And I do not know what to do.

Maybe we should set focus to to Grid Files panel before initialization of the menu.
Please test PdfView_4:
PdfView_test.zip
(19.35 KiB) Downloaded 241 times

---
Edward

How works PdfView posted here: viewtopic.php?f=40&t=5112&p=50227#p50227
if you use mouse to activate menu?
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: PDF Viewer DLL?

Post by edk »

KDJ wrote: Tue Mar 28, 2017 8:23 pm Edward

How works PdfView posted here: viewtopic.php?f=40&t=5112&p=50227#p50227
if you use mouse to activate menu?
Without any problems ;)
User avatar
gfilatov
Posts: 1060
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: PDF Viewer DLL?

Post by gfilatov »

Hello Krzysztof.

Please take a look for the typo in the function SetFocusNextDlgTab().

There is the following line here

Code: Select all

SetFocus(GetNextDlgTabItem(PdfView.HANDLE, GetFocus()), lPrevious)
It should be

Code: Select all

SetFocus(GetNextDlgTabItem(PdfView.HANDLE, GetFocus(), lPrevious))
Hope that helps :idea:

And thanks a lot for your PdfView utility 8-)
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: PDF Viewer DLL?

Post by edk »

KDJ wrote: Tue Mar 28, 2017 8:23 pm
edk wrote: Mon Mar 27, 2017 9:50 pm PdfView_2
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,
vagblad wrote: Tue Mar 28, 2017 1:31 pm PdfView_2
Windows 10 x64 - Everything works ok on either panel

We received two conflicting test results for PdfView_2 on Win-10.
And I do not know what to do.
See attachment:
PdfView_2.7z
(1.06 MiB) Downloaded 212 times
KDJ wrote: Tue Mar 28, 2017 8:23 pm (...)
Maybe we should set focus to to Grid Files panel before initialization of the menu.
Please test PdfView_4:
PdfView_test.zip
Indeed, Grid Files gains focus, but then hangs.
See:
PdfView_4.7z
(1.17 MiB) Downloaded 216 times
Maybe it will be easier for you to test when you put Win10 on a VM.

Edward.
Last edited by edk on Wed Mar 29, 2017 7:51 am, edited 1 time in total.
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: PDF Viewer DLL?

Post by edk »

gfilatov wrote: Wed Mar 29, 2017 7:08 am Hello Krzysztof.

Please take a look for the typo in the function SetFocusNextDlgTab().

There is the following line here

Code: Select all

SetFocus(GetNextDlgTabItem(PdfView.HANDLE, GetFocus()), lPrevious)
It should be

Code: Select all

SetFocus(GetNextDlgTabItem(PdfView.HANDLE, GetFocus(), lPrevious))
Hope that helps :idea:

And thanks a lot for your PdfView utility 8-)
Hi Grigory, unfortunately that did not help, still the same issue.

Edward
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PDF Viewer DLL?

Post by KDJ »

gfilatov wrote: Wed Mar 29, 2017 7:08 am It should be

Code: Select all

SetFocus(GetNextDlgTabItem(PdfView.HANDLE, GetFocus(), lPrevious))
Hi Grigory

Oh yes, excellent observation. Thank you very much. I will fix it in the next version.
But it does not matter for menu activation.
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PDF Viewer DLL?

Post by KDJ »

Cześć Edward

Jeśli możesz, wykonaj jeszcze jeden test - PdfView_5.
W tej wersji TIMER jest wyłączony, więc na pasku statusu z prawej strony nie będzie wyświetlał numeru strony pdf.

System Win-10.
Uruchom PdfView_5.exe.
Otwórz plik pdf.
Ustaw focus w SumatraPanel.
Wciśnij i zwolnij LewyAlt/F10.
Jeśli się nie zawiesi, to OK.
Jeśli się zawiesi, to podaj mi ciąg liczb wyświetlonych na pasku statusu. Pierwsza liczba będzie w formacie hex (F100), następne dec.

PdfView_test.zip
(23.51 KiB) Downloaded 200 times
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: PDF Viewer DLL?

Post by edk »

Cześć Krzysztof.
Gdy się "zawiesi", zwraca mi liczby: F100,529,32,278,146,287,78,78,78,78,289,127,127 ... (ten ciąg "127,127" dopisuje się co ok. 1 sekundę)
PdfView_5_1.png
PdfView_5_1.png (15.15 KiB) Viewed 4906 times
PdfView_5_2.png
PdfView_5_2.png (53.09 KiB) Viewed 4906 times
Edward.
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PDF Viewer DLL?

Post by KDJ »

Edward

Teraz widzę, w którym momencie się zawiesza.
To już ostatni test: PdfView_6.
Wydaje mi się, że powinno działać.

PdfView_test.zip
(27.79 KiB) Downloaded 233 times
Post Reply