Re: [fpc-pascal] non visual timer win32

2010-10-19 Thread Graeme Geldenhuys
Op 2010-10-18 22:44, Justin Smyth het geskryf:
 Guys
  
 i have an app on win32 that runs a timer when a form is hidden , any
 ideas how i get a timer to work when the form is hidden ?


Timers (TTimer and FPTimer) are not related to forms, so they will run even
without a form instance.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net:8080/fpgui/

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] non visual timer win32

2010-10-19 Thread Felipe Monteiro de Carvalho
MyTimer := TTimer.Create(Application);
MyTimer.OnTimer := myHandler;

-- 
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] non visual timer win32

2010-10-19 Thread Graeme Geldenhuys
Op 2010-10-19 10:17, Felipe Monteiro de Carvalho het geskryf:
 MyTimer := TTimer.Create(Application);
 MyTimer.OnTimer := myHandler;
 

or even

MyTimer := TTimer.Create(nil);
MyTimer.OnTimer := myHandler;

...later when application terminates...

MyTimer.Free;



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net:8080/fpgui/

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal