<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — How To Add Clock In Form]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=1589</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=1589&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How To Add Clock In Form.]]></description>
		<lastBuildDate>Sun, 26 May 2024 11:55:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50953#p50953</link>
			<description><![CDATA[<p>how can i make a digital clock code. please add a small example</p>]]></description>
			<author><![CDATA[null@example.com (bysalih)]]></author>
			<pubDate>Sun, 26 May 2024 11:55:27 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50953#p50953</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19392#p19392</link>
			<description><![CDATA[<p>Hi Dmitry,</p><br /><p>Thank you very much.............................<br />Great stuff as usual...... Appreciated very much........</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Mon, 13 Mar 2017 13:47:36 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19392#p19392</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19391#p19391</link>
			<description><![CDATA[<p>Hello.</p><br /><p>Fixed project.<br />Also I have added possibility to change offset of clock in minutes.</p>]]></description>
			<author><![CDATA[null@example.com (DriveSoft)]]></author>
			<pubDate>Mon, 13 Mar 2017 13:23:00 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19391#p19391</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19379#p19379</link>
			<description><![CDATA[<p>I put 1 analog clock for local but couldn&#039;t add another one that works in this case for Honolulu..</p><br /><p><a href="https://postimg.org/image/dlajatssn/"><span class="postimg"><img src="https://s15.postimg.org/lqsl8zh1n/zzzzz_Temp7.png" alt="https://s15.postimg.org/lqsl8zh1n/zzzzz_Temp7.png" /></span></a></p><br /><p>When adding second analog clock, I couldn&#039;t prevent handles repainting.</p><br /><p>Please see the attached sample project:</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Fri, 10 Mar 2017 19:52:23 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19379#p19379</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19355#p19355</link>
			<description><![CDATA[<p>Hi Derek,</p><br /><p>Thanks a lot for the sample project............................</p><br /><p>It&#039;s fine using PC clock as a base. It&#039;d be much more easier for a user if getting time is automated. That&#039;s why I was hoping to get time from the web. By the way I couldn&#039;t find how you displayed labels from 2 to 24 so that I can customize and add more clocks?<br /><strong><em>EDIT: I have found labels, you have used a blank characters for each label except label 1. Therefore customizing and adding more clocks resolved</em>.</strong></p><br /><p>The following makes all clocks live which I wanted:<br /></p><div class="codebox"><pre><code>var
   Timer: TTimer;

procedure formwtz_OnShow (Sender: string; Action: string);
begin
     Timer := TTimer.Create (nil);
     Timer.OnTimer := @OnTimer;
     Timer.Interval := 1000;
     Timer.Enabled := True;
end;

procedure OnTimer;
begin
  //Form1.Label1.Caption := FormatDateTime(&#039;c&#039;, Now);  //Shows date and time together
  formwtz.label25.Caption := FormatDateTime(&#039;ddd dd mmm yyyy&#039;, Now); // Shows date: Wed 01 Mar 2017 depending on comp date display settings
  //Form1.Label2.Caption := FormatDateTime(&#039;t:s&#039;, Now); //Shows clock only with hour minutes and seconds
  //formwtz.Label26.Caption := FormatDateTime(&#039;hh : mm : ss&#039;, Now); //Shows clock only with hour minutes and seconds
  formwtz.label26.caption := &#039;Local Time is:  &#039; +FormatDateTime(&#039;hh : mm : ss&#039;, Now);

  formwtz.label1.Caption  := sqlexecute(&#039;select city from ctz where labelno = &quot;01&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;01&quot;&#039;)/24));
  formwtz.label2.Caption  := sqlexecute(&#039;select city from ctz where labelno = &quot;02&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;02&quot;&#039;)/24));
  formwtz.label3.Caption  := sqlexecute(&#039;select city from ctz where labelno = &quot;03&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;03&quot;&#039;)/24));
  formwtz.label4.Caption  := sqlexecute(&#039;select city from ctz where labelno = &quot;04&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;04&quot;&#039;)/24));
  formwtz.label5.Caption  := sqlexecute(&#039;select city from ctz where labelno = &quot;05&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;05&quot;&#039;)/24));
  formwtz.label6.Caption  := sqlexecute(&#039;select city from ctz where labelno = &quot;06&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;06&quot;&#039;)/24));
  formwtz.label7.Caption  := sqlexecute(&#039;select city from ctz where labelno = &quot;07&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;07&quot;&#039;)/24));
  formwtz.label8.Caption  := sqlexecute(&#039;select city from ctz where labelno = &quot;08&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;08&quot;&#039;)/24));
  formwtz.label9.Caption  := sqlexecute(&#039;select city from ctz where labelno = &quot;09&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;09&quot;&#039;)/24));
  formwtz.label10.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;10&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;10&quot;&#039;)/24));
  formwtz.label11.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;11&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;11&quot;&#039;)/24));
  formwtz.label12.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;12&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;12&quot;&#039;)/24));
  formwtz.label13.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;13&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;13&quot;&#039;)/24));
  formwtz.label14.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;14&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;14&quot;&#039;)/24));
  formwtz.label15.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;15&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;15&quot;&#039;)/24));
  formwtz.label16.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;16&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;16&quot;&#039;)/24));
  formwtz.label17.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;17&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;17&quot;&#039;)/24));
  formwtz.label18.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;18&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;18&quot;&#039;)/24));
  formwtz.label19.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;19&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;19&quot;&#039;)/24));
  formwtz.label20.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;20&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;20&quot;&#039;)/24));
  formwtz.label21.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;21&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;21&quot;&#039;)/24));
  formwtz.label22.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;22&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;22&quot;&#039;)/24));
  formwtz.label23.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;23&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;23&quot;&#039;)/24));
  formwtz.label24.Caption := sqlexecute(&#039;select city from ctz where labelno = &quot;24&quot;&#039;)+&#039;:  &#039;+timetostr(time+(sqlexecute(&#039;select pm from ctz where labelno = &quot;24&quot;&#039;)/24));
end;

procedure formwtz_OnClose (Sender: string; Action: string);
begin
     Timer.Free;
end;</code></pre></div><br /><p>I have tried analog clocks version but couldn&#039;t........<br />Could you possible change 2 of the 24 clocks to analog clocks so that we can have combination of digital and analog clocks on same form please - Live version as in the code above?</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Thu, 09 Mar 2017 04:00:56 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19355#p19355</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19353#p19353</link>
			<description><![CDATA[<p>Hi Adam,<br />Not sure if I&#039;m misunderstanding you about the clock.&nbsp; Why do you need to go onto the internet to get specific location times - can&#039;t you just work it out as plus N hours or minus N hours offset from your PC&#039;s own clock?<br />Example is attached (for maximum flexibility, you can select your own locations (up to 24), the time zone offsets etc etc by clicking on the &#039;SETUP&#039; button).&nbsp; I appreciate it&#039;s just a digital clock (rather than the analogue one) but the principle is identical if you want to make use of it.<br />Regards,<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Wed, 08 Mar 2017 23:09:38 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19353#p19353</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19345#p19345</link>
			<description><![CDATA[<p>Hi Dmitry,</p><br /><p>Thank you very much...................<br />Great stuff...... Appreciated.</p><br /><p>Next step would would be to have multiple clocks for different locations around the world beside the local time. For this I guess app needs to connect to Internet to get specific location time.</p><br /><p>I hope I&#039;m not asking too much. You have been very kind and providing GREAT help and support.</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Wed, 08 Mar 2017 13:07:58 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19345#p19345</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19335#p19335</link>
			<description><![CDATA[<p>In the section const I have added some params to customize clock<br /></p><div class="codebox"><pre><code>const
  R = 70;    // radius of clock
  RN = 85;  // radius of numbers
  color_clock = clBlack;
  color_numbers = clBlack;
  numbers_font = &#039;Arial&#039;;
  numbers_size = 10;</code></pre></div><br /><p>Please download the example again<br /><a href="http://myvisualdatabase.com/forum/viewtopic.php?pid=19279#p19279">http://myvisualdatabase.com/forum/viewt … 279#p19279</a></p>]]></description>
			<author><![CDATA[null@example.com (DriveSoft)]]></author>
			<pubDate>Wed, 08 Mar 2017 10:13:53 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19335#p19335</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19327#p19327</link>
			<description><![CDATA[<div class="quotebox"><cite>AD1408 wrote:</cite><blockquote><p>... I couldn&#039;t find a way to customize newly added numbers such as their distance from minutes ellipse, changing font size, font color, using less numbers and using different fonts?</p></blockquote></div><br /><p>Hi Dmitry,<br />Are above complicated and requires too much of your time?</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Tue, 07 Mar 2017 13:06:55 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19327#p19327</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19290#p19290</link>
			<description><![CDATA[<p>Great stuff Dmitry!!!<br />Thank you very much.................</p><br /><p>You put the numbers outside the minutes ellipse, that&#039;s nice... I couldn&#039;t find a way to customize newly added numbers such as their distance from minutes ellipse, changing font size, font color, using less numbers and using different fonts?</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Fri, 03 Mar 2017 14:17:14 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19290#p19290</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19287#p19287</link>
			<description><![CDATA[<div class="quotebox"><cite>AD1408 wrote:</cite><blockquote><p>Thanks a lot Dmitry.............</p><br /><p>Script is beyond me in most parts. How can I change clock face, size, use numbers such as 9-3 12-6 or IX-III XII-VI etc. instead of o? And resizing pens length according to clock face?</p></blockquote></div><p>Please download the example again, from my previous post.</p><br /><p>line 2 in script to change clock size<br /></p><div class="codebox"><pre><code>  R = 75 ;    // radius of clock  </code></pre></div>]]></description>
			<author><![CDATA[null@example.com (DriveSoft)]]></author>
			<pubDate>Fri, 03 Mar 2017 11:47:54 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19287#p19287</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19281#p19281</link>
			<description><![CDATA[<p>Thanks a lot Dmitry.............</p><br /><p>Script is beyond me in most parts. How can I change clock face, size, use numbers such as 9-3 12-6 or IX-III XII-VI etc. instead of o? And resizing pens length according to clock face?</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Thu, 02 Mar 2017 14:18:37 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19281#p19281</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19279#p19279</link>
			<description><![CDATA[<p><strong>AD1408</strong></p><br /><p>Please download latest beta version<br /><a href="https://www.dropbox.com/s/xf20ksdbdgj6wff/setup%203.21b.zip?dl=0">https://www.dropbox.com/s/xf20ksdbdgj6w … b.zip?dl=0</a></p><br /><p>Then you can use this example to draw analog clock</p>]]></description>
			<author><![CDATA[null@example.com (DriveSoft)]]></author>
			<pubDate>Thu, 02 Mar 2017 13:20:23 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19279#p19279</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=19272#p19272</link>
			<description><![CDATA[<p>I was having a look at Dmitry&#039;s clock sample app. It showed date and time together. Played with it a bit as a learning exercise to show date and time separately. Ended up with this digital clock:<br /><a href="https://postimg.org/image/p6flljk3v/"><span class="postimg"><img src="https://s17.postimg.org/5btjzf4wf/zzzzz_Temp6.png" alt="https://s17.postimg.org/5btjzf4wf/zzzzz_Temp6.png" /></span></a></p><br /><p>I guess making an analog clock is not that easy. Perhaps somebody can take on the challenge to make a nice looking analog clock?</p>]]></description>
			<author><![CDATA[null@example.com (AD1408)]]></author>
			<pubDate>Wed, 01 Mar 2017 23:04:05 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=19272#p19272</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Add Clock In Form]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=9120#p9120</link>
			<description><![CDATA[<p>Please download an example:<br /><a href="http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&amp;item=220&amp;download=1">http://myvisualdatabase.com/forum/misc. … download=1</a></p>]]></description>
			<author><![CDATA[null@example.com (DriveSoft)]]></author>
			<pubDate>Wed, 05 Aug 2015 09:27:46 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=9120#p9120</guid>
		</item>
	</channel>
</rss>
