Results 1 to 4 of 4

Thread: Graphics Clock Pinned to Desktop [VB5 & VB6]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member technorobbo's Avatar
    Join Date
    Dec 2008
    Location
    Chicago
    Posts
    864

    Graphics Clock Pinned to Desktop [VB5 & VB6]

    It Tells Time

    Choose between 2 skins:
    1. Classic Grandfather Clock Dial
    2. Mouse Pocketwatch


    Right Click for Settings Popup menu. Drag to reposition

    Techniques Employed:
    • Image Rotation with Plgblt
    • Dragging Forms
    • API Popup Menu - on borderless form!
    • Transparent Form to create Pinned Effect
    • Saving Settings to Registry
    • Custom Skin system added 8/15/09


    Last Upload 8/19/2009


    Hour Hand Mod

    The hour hand is programmed to always point directly at the current hour. It is my preference. If you would like a traditional moving hour hand that slowly transitions from one hour to another then replace this code
    Code:
    RotHand ((Hour(Now) Mod 12) * 7.98 / 12 - 3.99) + 0.01, HHandhdc, HHandMbmp
    with this code
    Code:
    RotHand ((60 * (Hour(Now) Mod 12) + Minute(Now)) * 7.98 / 720 - 3.99) + 0.01, HHandhdc, HHandMbmp
    Both versions are now included in the code with the mod REM'd out.

    Half Size Images:
    Attached Images Attached Images   
    Attached Files Attached Files
    Last edited by technorobbo; Aug 19th, 2009 at 08:11 PM.
    Have Fun,

    TR
    _____________________________
    Check out my Alpha DogFighter2D Game Demo and Source code. Direct Download:http://home.comcast.net/~technorobbo/Alpha.zip or Read about it in the forum:http://www.vbforums.com/showthread.php?t=551700. Now in 3D!!! http://home.comcast.net/~technorobbo/AlPha3D.zip or read about it in the forum: http://www.vbforums.com/showthread.php?goto=newpost&t=552560 and IChessChat3D internet chess game

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width