<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Label1 + Timer]]></title><description><![CDATA[<p>Hi<br />
Ich habe folgendes Problem, und zwar möchte ich das Label1 5 Minuten herunter zählt zbs. so 5:00, 4:59, 4:58 über Timer1 weiss jemand vieleicht wie ich das hinbekommen könnte, wäre echt net wenn mir jemand helfen kann<br />
danke schonmal im vorraus<br />
mfg christian</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/98349/label1-timer</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 01:44:30 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/98349.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Jan 2005 23:03:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Label1 + Timer on Tue, 18 Jan 2005 23:03:14 GMT]]></title><description><![CDATA[<p>Hi<br />
Ich habe folgendes Problem, und zwar möchte ich das Label1 5 Minuten herunter zählt zbs. so 5:00, 4:59, 4:58 über Timer1 weiss jemand vieleicht wie ich das hinbekommen könnte, wäre echt net wenn mir jemand helfen kann<br />
danke schonmal im vorraus<br />
mfg christian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/699870</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/699870</guid><dc:creator><![CDATA[bruce185]]></dc:creator><pubDate>Tue, 18 Jan 2005 23:03:14 GMT</pubDate></item><item><title><![CDATA[Reply to Label1 + Timer on Wed, 19 Jan 2005 02:20:01 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;vcl.h&gt;
#pragma hdrstop
#include &quot;Unit1.h&quot;
#include &quot;DateUtils.hpp&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
TDateTime zeit;

__fastcall TForm1::TForm1(TComponent* Owner)
   : TForm(Owner)
{
}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
   Timer1-&gt;Interval = 1000;
   Timer1-&gt;Enabled = true;
}
void __fastcall TForm1::FormCreate(TObject *Sender)
{
   zeit=StrToTime(&quot;00:05:00&quot;);
}
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
   TDateTime val=StrToTime(&quot;00:00:00&quot;);
   if(zeit&gt;=val)
   {
      Label1-&gt;Caption = zeit.TimeString().SubString(4,5);
      Label1-&gt;Refresh();
      zeit=IncSecond(zeit,-1);
   }
   else
   {
      Label1-&gt;Caption =&quot;Boooommm&quot;;
      Timer1-&gt;Enabled = false;
   }
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/699907</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/699907</guid><dc:creator><![CDATA[dktierfreund]]></dc:creator><pubDate>Wed, 19 Jan 2005 02:20:01 GMT</pubDate></item></channel></rss>