Transparent clock with source

Developed or developing a new product in PureBasic? Tell the world about it.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Transparent clock with source

Post by Trond »

It's not as pretty as netmaestro's, but it's got source code.

Latest release: http://home.no.net/tsg1zzn/clock.zip
Last edited by Trond on Tue Aug 01, 2006 3:32 pm, edited 3 times in total.
oldBear
Enthusiast
Enthusiast
Posts: 121
Joined: Tue Jul 05, 2005 2:42 pm
Location: berrypatch

Post by oldBear »

Very Nice.

Thanks for sharing it.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

This is pretty cool. Thanks!
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Very cool Trond.
Did you forget to add set and getmenuitem state ?
Seems like there should be a check next to the selected behavior style. Anyways, really nice work :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Thanks, everyone. No, I didn't forget the checkmarks in the menu, I just didn't care.
Fred
Administrator
Administrator
Posts: 18225
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Hoho, Trond app isn't perfect ?! :shock: Kidding :wink:
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

Very nice Trond, thanks for the source too! 8)
-Beach
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Fred wrote:Hoho, Trond app isn't perfect ?! :shock: Kidding :wink:
Haha, I guess you would love to give him some bug reports! :P
I like logic, hence I dislike humans but love computers.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Very good job, trond, you're to be congratulated. I think it looks excellent. You could see if there's possibly something that can be done about the CPU usage, here it's a steady 3.2%, which for a desktop clock should be at or very near 0. But that's a relatively minor observation, overall great work.
BERESHEIT
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

I don't see anything. Its running in task manager but I don't see anything. This is on Win 2K Pro SP4 with GeForce card.

Can someone provide a screenshot so I know what I am looking for?

BTW, netmaestro's clock never worked for me either....
Image Image
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

@straker, is it possible that your desktop color depth is set to 16 bits? The api's used in these clocks will not work with less than 32bit desktops. Actually the latest version of VistaClock exits with a messagebox if it finds less than 32bit color depth.
BERESHEIT
User avatar
yoxola
Enthusiast
Enthusiast
Posts: 386
Joined: Sat Feb 25, 2006 4:23 pm

Post by yoxola »

Win2K here, doesn't work either, but worked on my laptop witn WinXP.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Heres a screenshot
Image

click on it for larger view
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
yoxola
Enthusiast
Enthusiast
Posts: 386
Joined: Sat Feb 25, 2006 4:23 pm

Post by yoxola »

Hmmm... strange, no crash, no mesage, just do nothing on 2K, must close it manually in task manager.
Last edited by yoxola on Fri Jul 28, 2006 7:24 pm, edited 1 time in total.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Fred wrote:Hoho, Trond app isn't perfect ?! :shock: Kidding :wink:
It's not even got a version number yet. Wait 'n' see. :wink:
netmaestro wrote:Very good job, trond, you're to be congratulated. I think it looks excellent. You could see if there's possibly something that can be done about the CPU usage, here it's a steady 3.2%, which for a desktop clock should be at or very near 0. But that's a relatively minor observation, overall great work.
I know, it uses WAY to much CPU. However, I don't know how to do much about it, alpha drawing simply IS slow.

Straker wrote:I don't see anything. Its running in task manager but I don't see anything. This is on Win 2K Pro SP4 with GeForce card.

Can someone provide a screenshot so I know what I am looking for?

BTW, netmaestro's clock never worked for me either....
Yes, as netmaestro said, the display depth must be at least 32 bits. It works on Windows 2000 here (in fact, the rotation of the hands looks much better, probably because of the graphics card).
Post Reply