Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #3  
Antiguo 26-08-2005
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.141
Poder: 36
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Esto puede observarse en la ayuda de Delphi acerca de la propiedad "Notify" de los "TMediaPlayer":

Cita:
Empezado por Ayuda de Delphi - OnNotify, Mode, Notify example
The following code declares an array of strings named ModeStr, indexed by the TMPModes type. The Caption of a form displays the string describing the current mode of the device.

Note: before running this example, initialize the Notify property of TMediaPlayer1 to true.

Código Delphi [-]
 const
   ModeStr: array[TMPModes] of string = ('Not ready', 'Stopped', 
     'Playing', 'Recording', 'Seeking', 'Paused', 'Open');
 
 procedure TForm1.MediaPlayer1Notify(Sender: TObject);
 begin
   with Sender as TMediaPlayer do
   begin
     Form1.Caption := ModeStr[Mode];
     { Note we must reset the Notify property to True }
     { so that we are notified the next time the }
     { mode changes }
     Notify := True;
   end;
 end;
__________________
David Esperalta
www.decsoftutils.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


La franja horaria es GMT +2. Ahora son las 22:22:42.


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