Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #3  
Antiguo 25-07-2019
Avatar de Maniches
Maniches Maniches is offline
Miembro
 
Registrado: nov 2012
Ubicación: Lima - Perú
Posts: 67
Poder: 12
Maniches Va por buen camino
No quise publicar el código por que es comun encontrarlo en internet. igual lo comparto:

Código de Formulario Principal:

Código Delphi [-]
    sbMainTransaction: TStatusBar;
    pbMain: TProgressBar;
    tmrMain: TTimer;
    .
procedure TForm.FormCreate(Sender: TObject);
begin
  sbMainTransaction.Panels[6].Style := psOwnerDraw;
  pbMain.Parent := sbMainTransaction;
  pbMain.Position:= 0;
  pbMain.Max:= 20000;
end;

procedure TForm.sbMainTransactionDrawPanel(StatusBar: TStatusBar;
  Panel: TStatusPanel; const Rect: TRect);
begin
  if Panel = StatusBar.Panels[6] then
  with pbMain do begin
    Top := Rect.Top;
    Left := Rect.Left;
    Width := Rect.Right - Rect.Left - 15;
    Height := Rect.Bottom - Rect.Top;
  end;
end;

procedure TForm.tmrMainTimer(Sender: TObject);
var
 vIdleTime : Cardinal;
begin
     vIdleTime := GetTickCount - TimerInicio;
     pbMain.Position:= pbMain.Position + 1;
     lblSeq.Caption:= IntToStr(pbMain.Position);
     if(vIdleTime >= 20000) then
     begin
       ShowMessage('Tiempo límite');
       Application.Terminate;
     end;
end;

procedure TForm.FormShow(Sender: TObject);
begin
  tmrMain.Enabled := True;
end;

Formulario Nuevo (Hereda de Form. Principal)

Código Delphi [-]
procedure TFormNew.FormShow(Sender: TObject);
begin
    inherited;
end;

PUSE UNA ETIQUETA (lblSeq) PARA VERIFICAR SI ESTA INCREMENTANDO LA POSICIÓN DEL PROGRESS Y SU ESTA INCREMENTANDO. LO QUE NO SE ESTA VISUALIZANDO EN EL FORMULARIO QUE HEREDA ES EL EFECTO DEL PROGRESS QUE PINTE LA BARRA EN BASE AL INCREMENTO.

QUE PODRÍA ESTAR FALTANDO?
__________________
Maniches
maniches@outlook.com
Responder Con Cita
 



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
Actualizar un campo vacio con el valor de otro jafera Firebird e Interbase 4 03-07-2013 19:34:19
Seleccionar primer registro en la Clausula WHERE para Actualizar Valor. Adrian Murua MySQL 3 28-05-2012 22:52:14
DBGrid - Actualizar valor de la tabla detalle. juliannemiro Varios 12 10-02-2012 04:04:54
Actualizar un valor en un generador desde un Sp muli Firebird e Interbase 16 11-06-2008 14:56:05
Problema al Actualizar Valor Double caramelillo MySQL 4 18-10-2006 23:36:38


La franja horaria es GMT +2. Ahora son las 20:55:51.


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