traininggogl.blogg.se

Delphi thread as timer
Delphi thread as timer







delphi thread as timer

RegisterComponents('Standard', ) Ĭonstructor TPanelImage.Create(AOwner : TComponent) SysUtils, Classes, Controls, ExtCtrls,StdCtrls,Graphics,forms What books or web sites are you using to find your infomation? The major problem I am having is the highlighting, any ideas (to do with finding location of button).

Delphi thread as timer how to#

RE: how to get TTimer to trigger in a custom Component john230873 (Programmer) Procedure TImagePanel.Timer1Timer(Sender: TObject) Įnd.

delphi thread as timer

Ĭonstructor Create(AOwner: TComponent) override Ĭonstructor TImagePanel.Create(AOwner: TComponent) I have created and initialised the timer in the constructor (I haven't used the CreateWnd method before). The trick is that the Timer is declared as a field of TImagePanel. The following should show you what to do. Please forgive a first timer (lol) for missing the point. RegisterComponents('Samples', ) Ĭonstructor TImagePanel.Create (AOwner : TComponent) Įnd RE: how to get TTimer to trigger in a custom Component Heres my code so far how would I go about actioning the TTimerTimer procedure at run time.Ĭonstructor Create (AOwner : TComponent) override BUT how do I get it to trigger if I have it create its self at runtime. Question if I was to add a TTimer component to the main form I would double click on the TTimer for its trigger to be automactilly set up. Instead of having a timer in the main program I thought I would write it in the component. I have started to write a new component that I want to check its parents colour every 5 second to match it.









Delphi thread as timer