Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

refresh

Status
Not open for further replies.

mkzw0ot4m0nk

Programmer
Jul 19, 2002
29
US
hey im making a winamp plugin, how can i refresh a text field every 5sec? or have it click the button every 5sec. ty
 
hi,
Put a TTimer and a Label on a form, Set the propertie Interval to 5000 (=5 sec) and put the next code in the OnTimer event:

procedure TForm1.Timer1Timer(Sender: TObject);
begin
label1.Caption := DateTimeToStr(now);
end;

Set enabled to True.
Run the application.
Every 5 seconds the time and date will be displayed in label1.

Success,

Steph [Bigglasses]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top