Hello,
Introduction:
Over the last few months I've quietly been familiarizing myself with DesktopX until I felt I'd reached a point where I at least had some decent understanding, Being an internet systems engineer and network engineer I tend to have a knack for reverse engineering things to gain understanding. Now I think I'm up to snuff enough to join you folks in your discussions and not frustrate you, or seem like an idiot.
I'd like to also say up front - many kudo's and thanks to RomanDA, sViz, & Martin for their wonderful tutorials, widgets, objects etc, (.dxpack's) that I dissected forwards and backwards, while scratching a trough into my hairline! (huh, what the heck, why would they put that there.....how does that work...????) Without your wonderful examples I would have been unable to accomplish the goals I have in mind, or to learn as much as I have already. Keep up the good work!
Now on to my question for sViz:
I pretty much cut my scripting teeth trying to understand your analog clock example. (and Martin's Calendar) Being completely unfamilar with VB, it took some "and what if I change this to this" with lots of DesktopX crashes (welcome to x64) to get a grasp on it. (I'm an engineer not a doctor! LOL - I don't design software, I design networks, so programming with VB is virgin territory for me.)
Anyway, in your script you have equations for the hour hand, minute hand and second hand, and I understand why, but here's my question:
the equation - h * 30 for the hour hand, always keeps the hour hand stuck on the current hour until the minute hand finally registers past it's 60th minute. (this makes the clock look like it's displaying 1:45 going on 2 PM, when it's really 2:45 going on 3 PM because the hour hand stays directly over the 2, and does not move half way in between the 2 and the 3 like a real analog clock. so up until 2:59, the hour hand stays directly above the 2, making it appear to be almost 2 oclock when it's really almost 3 oclock. (I hope I'm being clear enough on this)
(I've already tried changing 30 to higher numbers but that makes the hand always in between the hours on the face of the clock.)
My question is, how can this be corrected so the hour hand shows on top of the current hour, then as the hour progesses moves closer to the next hour like a real clock?
Thanks in advance!
Doc