progress bar during the start of an application

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

progress bar during the start of an application

Post by Otto »

Is there a possibility to show a progress bar during the start of an application.
If not do you think it could be done with a starter.exe with a timer which is in the foreground and kills itself after a certain time.
Thanks in advance,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
mmercado
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: progress bar during the start of an application

Post by mmercado »

Hello Otto:
Otto wrote:Is there a possibility to show a progress bar during the start of an application.
Try TestProg.prg in \FWPPC\Samples.

Best regards.

Manuel Mercado
manuelmercado at prodigy dot net dot mx
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: progress bar during the start of an application

Post by Otto »

Hello Manuel,
thank you for your answer. You are right.
But I don’t find a way to integrate the DIALOG.
If I use the NOWAIT clause the Dialog is not correctly painted.

Do you suggest to integrate a button into the dialog “Start program” or enter password and then jump into a function
which loads all the necessary values?

Code: Select all

function Main()
   local oDlgSome
   *----------------------------------------------------------

   if IsExeRunning( cFileName( HB_ArgV( 0 ) ) )
      MsgInfo1( "The application is already running" )
      return nil
   endif

  DEFINE DIALOG oDlgSome TITLE "Programmstart: WHBiene" ;
      SIZE 200, 200  
   ACTIVATE DIALOG oDlgSome CENTERED //NOWAIT
….
 
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Post Reply