Page 3 of 3

Posted: Mon Jul 31, 2006 5:52 pm
by Trond
Dano wrote:Very nice clock. I want it permanently on my dektop. The only thing I would change is to have the hour hand update a quarter of the way to the next hour every 15 minutes. At 9:59 it looks still like 9:00 until it hits 10:00.

Dan
Well, that was a design decision on my part. I could probably change it.

Posted: Mon Jul 31, 2006 7:49 pm
by Dano
Trond: Yes Please, if you could change that to look like a regular clock so I'm not guessing if it is one hour or the next that would be great.

Psychophanta: Yes I see yours does what I want. However when I click on UTC update it freezes the display. Might be because of our company firewall.

Posted: Mon Jul 31, 2006 9:38 pm
by Psychophanta
About the UTC problem, that's probably due to the used port, there is used with port number 13.
If so there could be done a function to see what are the ports available and then use the appropiate one.

Posted: Mon Jul 31, 2006 10:08 pm
by Dano
I was trying to change the clock hands to all black like the second hand so I can go really translucent and still see the hands. I brought the tiffs into a paint program and made them black but it is not doing what I think it should be doing. Can you guys enlighten me as to what is going on here?

Posted: Tue Aug 01, 2006 12:31 pm
by Trond
Well, what is it doing? You need a paint program with support for alpha transparency.

Posted: Tue Aug 01, 2006 3:34 pm
by Trond
The CPU usage has now been drastically reduced (only 2-3% here) and the hour hand updates every minute.

Posted: Tue Aug 01, 2006 3:42 pm
by Dano
That's better. Gimp works great and has alpha channel support. Now I have my black hands.


Trond nice job. Your latest version is much better.

Posted: Wed Aug 02, 2006 12:00 am
by Dare
Hi Trond, thanks for sharing this.

Posted: Wed Aug 26, 2009 9:22 pm
by Psychophanta
Looks like SetWorldTransform_() does not work or something in PB4.40b2 :roll:

Posted: Thu Aug 27, 2009 3:37 pm
by c4s
Psychophanta wrote:Looks like SetWorldTransform_() does not work or something in PB4.40b2 :roll:
Take a look at the PureBasic-Blog:
purebasic.fr/blog/?p=196 wrote:You can still mix API drawing functions with PB functions on the same output without problems. The only thing that changed here is that GDI functions that change the global state of the device context no longer affect the PB drawing functions like they used to because the PB functions do not actually used that device context. So a function like SetWorldTransform() will not cause DrawImage() to draw a rotated image anymore. However it should still work if you use the BitBlt() API.
;)

Posted: Thu Aug 27, 2009 7:25 pm
by Psychophanta
Thanks for helping, c4s.

Re: Transparent clock with source

Posted: Sun Sep 04, 2011 7:39 am
by ruland
I know this thread is old, but could someone post a working link to the source code, please?

Re: Transparent clock with source

Posted: Mon Oct 24, 2011 7:28 pm
by HAnil
Hi Trond,
is it possible to give new link for download ?
Thanks,