1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
class jLabel : public TLabel
{
private :
TTimer *Timer;
int FInterval;
int FCount;
int Counter;
protected:
void __fastcall SetInterval(int Value);
void __fastcall SetCount(int Value);
void __fastcall Blink(TObject *Sender);
public :
__fastcall jLabel(TComponent *AOwner);
__fastcall ~jLabel();
// Pour lancer le processus :
// - Avec les valeurs en cours
void __fastcall Start();
// - En fixant un texte
void __fastcall Start(AnsiString ACaption);
// - En modifiant tous les paramètres du processus
void __fastcall Start(AnsiString ACaption, int AInterval, int ACount);
// Pour arrêter le processus avant terme :
void __fastcall Stop();
// Les propriétés supplémentaires pour le processus
__property int Interval={read=FInterval, write=SetInterval};
__property int Count={read=FCount, write=SetCount};
}; |