bb.donnay-software.com

Donnay Software Web Forums
It is currently Wed May 27, 2020 9:52 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
PostPosted: Tue Mar 10, 2020 2:08 am 
Offline

Joined: Thu Jan 28, 2010 1:22 am
Posts: 863
Location: Sijsele, Belgium
Hi Jimmy,

Quote:
how would you do it with Acrobat


Acrobat has the loadfile() method, which is loading and refreshing without closing the window.
In the htmlviewer there is the navigate() method, which does the same.

_________________
Best regards,

Chris.
www.aboservice.be


Top
 Profile  
 
PostPosted: Wed Mar 11, 2020 4:49 pm 
Offline
User avatar

Joined: Wed Feb 24, 2010 3:44 pm
Posts: 1183
hi,

i found that harbour Code and i have test it with Xbase++ and Ot4XB and it work.
but that piece of Code does not present all what can be done when using SumatraPDF

you can start SumatraPDF as Stand-alone. in upper-left you find a Menu.
you can use multi Instance or "ReuseInstance"*** but that was not include in my harbour Code
*** https://www.sumatrapdfreader.org/settings.html

so i have to ask in harbour Forum how to use "ReuseInstance"

_________________
greetings by OHR
Jimmy


Top
 Profile  
 
PostPosted: Sat Mar 14, 2020 1:34 am 
Offline
User avatar

Joined: Wed Feb 24, 2010 3:44 pm
Posts: 1183
i have ask in harbour Forum and got the Answer that my "translation" of TerminateProcess() does not work ...

Original Version
Code:
//        TerminateProcess ( [ nProcessID ] , [ nExitCode ] )
HB_FUNC ( TERMINATEPROCESS )
{
   DWORD ProcessID = HB_ISNUM (1) ? (DWORD) hb_parnl(1) : GetCurrentProcessId();
   UINT  uExitCode = (UINT) hb_parnl (2);
   HANDLE hProcess = OpenProcess ( PROCESS_TERMINATE, FALSE, ProcessID );
   if ( hProcess != NULL )
   {   if ( TerminateProcess (hProcess, uExitCode) == FALSE )
           CloseHandle (hProcess);
   }
}

my Xbase++ Version
Code:
METHOD SumatraPDF:TerminateProcess( nPID )
LOCAL hProcess := @Kernel32:OpenProcess( PROCESS_TERMINATE, FALSE, nPID )

   IF !EMPTY(hProcess)
      @Kernel32:TerminateProcess( nPID )
      @Kernel32:CloseHandle(hProcess)
   ENDIF

RETURN NIL

i will work on it ...

_________________
greetings by OHR
Jimmy


Top
 Profile  
 
PostPosted: Sat Mar 14, 2020 11:00 am 
Offline

Joined: Tue Aug 31, 2010 9:01 pm
Posts: 120
Hi Jimmy

If we don't know the sources
That method doesn't help at all.

I hope to place the sources soon, as well as
a new, more robust version of MySQL (mariadb)
using the expando class

Best Regard
Hector Pezoa


Top
 Profile  
 
PostPosted: Sat Mar 14, 2020 5:49 pm 
Offline
User avatar

Joined: Wed Feb 24, 2010 3:44 pm
Posts: 1183
hi,

not sure if i understand you.
Source is available at https://github.com/sumatrapdfreader/sumatrapdf

but you are right, wrong Forum for Ot4Xb Question.
i will write it in Pablos Newsgroup and be back when have Solution

_________________
greetings by OHR
Jimmy


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group