Ver Mensaje Individual
  #2  
Antiguo 04-08-2004
Avatar de ruina
ruina ruina is offline
Miembro
 
Registrado: jun 2004
Posts: 196
Reputación: 20
ruina Va por buen camino
sip, con ApplicationEvents (en la paleta, pestaña aditional) tienes controlado el evento OnShowHint, el único problema que le veo es que no tienes un OnHideHint, la solución que se me ocurre es poner un timer con el HideTimeout para volver a mostrar la información en varios paneles. Ma o o meno seria:

Código Delphi [-]
procedure TForm1.ApplicationEvents1ShowHint(var HintStr: String;
  var CanShow: Boolean; var HintInfo: THintInfo);
begin
    StatusBar1.SimplePanel:=true;
    StatusBar1.SimpleText:=HintStr;
    Timer1.Enabled:=false;
    Timer1.Interval:= HintInfo.HideTimeout;
    Timer1.Enabled:=true;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
    StatusBar1.SimplePanel:=false;
    StatusBar1.Panels[0].Text:='feo';
    Timer1.Enabled:=false;
end;

Con el timer inicializado a false y el statusBar con paneles creados.
__________________
todo el mundo debe creer en algo... yo creo que voy a tomarme otra copa.
Responder Con Cita