Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #4  
Antiguo 16-03-2013
teecweb teecweb is offline
Miembro
NULL
 
Registrado: feb 2013
Posts: 64
Poder: 14
teecweb Va por buen camino
holas..me podrias eplicar esta parte "{ Variable global actualizada por el procedimiento que realiza el trabajo. }
PasoActual: INTEGER;" ...aqui te muestro mi procedimiento y ala vez este proc llama a otro proc y ese proc a otro proc :..
este es el codigo que llama al progreesbar..cuando esta en el next de Welcome se deberia ejecutar el progreesbar y a la vez el procedimiento que demora en ejecutar
Código Delphi [-]
function NextButtonClick(CurPageID: Integer): Boolean; 
var 
  ResultCode: Integer; 
  MyProgChecked: Boolean;
  MyProg: Boolean;
  MyProg2: Boolean;
  MyProgtexto: String;
  resultadomsg: Boolean;
   I: Integer;
begin 

 MyProg :=True;

   case CurPageID of 
    wpSelectDir: 
   begin
    MyProgChecked :=DirExists(WizardDirValue);
        if MyProgChecked then 
        begin
            resultadomsg :=MsgBox('Folder:' #13#13 ' ''' + WizardDirValue + ''' ' #13#13 'There, you want to install it anyway?', mbConfirmation, MB_YESNO) = idYes;
               if resultadomsg = False then
                  begin
                    MyProg := False;
                 end;
                 
                 //MyProg := False; 
         end;   
    end;
     wpWelcome:
     begin
       CreateTheWizardPages;
       ProgressPage := CreateOutputProgressPage('My App','');
       ProgressPage.SetText('Starting installation...', '');
       ProgressPage.SetProgress(0, 0);
       ProgressPage.Show;
       try
         for I := 0 to 10 do begin
           ProgressPage.SetProgress(I, 10);
           Sleep(100);
           end;
          finally
            ProgressPage.Hide;

        end;
     end;
    end;//fin del case
     Result := MyProg; 
end;
este el codigo del procedimiento CreateTheWizardPages y este llama a otro proc llamado BuscarArchivos
Código Delphi [-]
procedure CreateTheWizardPages; 
  var 

  Edit: TNewEdit;
  listado: TStrings;
  inicio: Integer;
  scale : Integer;
  scale1:Integer;
  j:Integer;
  n: integer;
  DataDir: String;
 

begin
  { TButton and others }
  listado := TStringList.Create;
   Page := CreateCustomPage(wpWelcome, 'List of files in the system',  
  'Want to remove any previous versions?, If you want to remove any previous version Callcenter, please select an item.');
    
  
  Buttona := TNewButton.Create(Page);
  Buttona.Width := ScaleX(240);
  Buttona.Height := ScaleY(23);
  Buttona.Caption := 'Uninstall the selected path';
  Buttona.Parent := Page.Surface;
  Buttona.Visible := true;
  Buttona.OnClick := @ButtonOnClicka;

BuscarArchivos(ExpandConstant('{pf}'+ '\'), 'CallCenter.exe',  listado); 
 
            scale :=8;
            CheckListBox1 := TNewCheckListBox.Create(Page);
           j :=5; 
                scale :=scale+ (j+15);
                CheckListBox1 := TNewCheckListBox.Create(Page);//TNewCheckListBox.Create(WizardForm.ScriptDlgPanel);
                CheckListBox1.Top := Buttona.Top + Buttona.Height + ScaleY(scale);
                CheckListBox1.Width := 410;
                CheckListBox1.Height :=180;
                CheckListBox1.Parent := Page.Surface;
               // CheckListBox1.OnClick:=@uninstaller;

            for inicio := 0 to listado.Count - 1 do
           //    for inicio := 0 to 5 do
             begin
                CheckListBox1.AddCheckBox(listado[inicio], 'Path', 0, False, True, True, True, nil);
             end;
               listado.Free;

end;

Por favor me podria explicar como el numero de pasos..gracias por sus respuestas
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Inno Setup Io Varios 6 08-08-2007 18:27:00
inno setup 5 Cosgaya Varios 0 10-01-2006 13:09:38
Inno Setup Ini? marceloalegre Varios 2 07-12-2005 20:49:17
Inno Setup Menu hlp, chm JXJ Varios 6 10-06-2005 18:18:09
Inno Setup tarco35 Varios 0 09-04-2005 16:48:01


La franja horaria es GMT +2. Ahora son las 17:59:02.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi